无法在一个植根Android手机上运行“亚行根” [英] Unable to run 'adb root' on a rooted Android phone

查看:260
本文介绍了无法在一个植根Android手机上运行“亚行根”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

生根我的设备后,我需要运行亚行根然后亚行外壳这样我就可以再访问我的应用程序的数据库。当试图运行亚行根我不断收到adbd不能以root身份运行的产品构建。为什么是这样?唯一的其他选择是使用Android模拟器进行测试,但我们都知道有多么可怕仿真器(不是一个真正的可行的发展解决方案)。

After rooting my device, I need to run adb root and then adb shell so I could then access my applications database. When trying to run adb root I keep getting "adbd cannot run as root in production builds". Why is this? The only other option is to use the Android emulator for testing, but we all know how terrible the emulator is (not really a viable development solution).

推荐答案

我终于找到了如何做到这一点!基本上你需要运行亚行外壳第一,然后当你在shell中运行,将切换外壳以root身份运行!

I finally found out how to do this! Basically you need to run adb shell first and then while you're in the shell run su, which will switch the shell to run as root!

$: adb shell
$: su

有一个问题我还有的是,sqlite3的未安装因此命令无法识别。

The one problem I still have is that sqlite3 is not installed so the command is not recognized.

这篇关于无法在一个植根Android手机上运行“亚行根”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆