gpt4 book ai didi

android - 无法在 Root过的 Android 手机上运行 'adb root'

转载 作者:IT王子 更新时间:2023-10-28 23:56:47 27 4
gpt4 key购买 nike

root 设备后,我需要运行 adb rootadb shell,这样我才能访问我的应用程序数据库。当尝试运行 adb root 时,我不断收到“adbd cannot run as root in production builds”。为什么是这样?唯一的另一种选择是使用 Android 模拟器进行测试,但我们都知道模拟器有多糟糕(不是真正可行的开发解决方案)。

最佳答案

我终于知道如何做到这一点了!基本上你需要先运行 adb shell,然后在 shell 中运行 su,这会将 shell 切换为以 root 身份运行!

$: adb shell
$: su

我仍然遇到的一个问题是没有安装 sqlite3,因此无法识别该命令。

关于android - 无法在 Root过的 Android 手机上运行 'adb root',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18369144/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com