我将解锁的 Galaxy S3 (SGH-T999) 植根
现在,我正在尝试从 Windows 命令提示符 运行 adb root
但是,我收到了 adbd cannot run as root in production builds
错误。所以,我检查的第一件事是我的手机是否真的被植根了?
所以我尝试了以下方法:
打开命令提示符
$adb devices // lists my device
$adb shell //goes to shell
$su // opens a 'SuperSu' prompt on my phone and I 'Grant' permission
# // Before following the rooting instructions, I was getting 'no su command found' in the previous step. So, I believe my phone is ROOTED. **Correct me if I'm wrong.**
但是,当我执行 adb root
时,我得到 adbd cannot run as root in production builds
错误。所以,我想,除了上面所做的之外,我可能还需要做一些额外的事情。我尝试了以下 SO 问题中的所有解决方案:
以上都不适合我。他们所做的只是在 SHELL 内部授予 ROOT 访问权限。我想要 adb root
工作,这样我就可以在不进入 shell 的情况下执行各种 adb 命令。
原文由 rumit patel 发布,翻译遵循 CC BY-SA 4.0 许可协议
Windows 命令中的根访问权限:
adb shell su
MacOS 命令中的 Root 访问权限:
./adb shell su