adb shell su 有效,但 adb root 无效

新手上路,请多包涵

我将解锁的 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 许可协议

阅读 3.4k
1 个回答

Windows 命令中的根访问权限: adb shell su

在此处输入图像描述

MacOS 命令中的 Root 访问权限: ./adb shell su

原文由 Tahmid Bin Rashid 发布,翻译遵循 CC BY-SA 4.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题