是否可以在 Android 模拟器上获得 root 权限和/或安装 BusyBox?
如果我的模拟器上能有 BusyBox 这把“瑞士军刀”就好了。拥有完全的 root 访问权限也很好。有人有这样做的经验吗?我对qemu不熟悉;这可能吗?
更新:模拟器默认具有root权限(通过adb shell
命令访问)。有谁知道我可以在哪里轻松获得预构建的 busybox 二进制文件?
It'd be nice to have the "Swiss Army knife" of BusyBox on my emulator. It would also be nice to have full root access. Does anyone have any experience doing this? I'm not familiar with qemu; is this even possible?
Update: The emulator has root by default (accessed via the adb shell
command). Does anyone know where I can easily obtain a pre-built busybox binary?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
模拟器未设置为安全模式,因此它的 adb shell 应该是 root shell。
busybox 有多个 Android 版本,例如,Cyanogen 的 Android 替代版本使用它来增强工具箱(这是 Android 在非 GPL 许可下对同一概念的有限重新实现)。您应该能够从cyanogen存储库中获取它并从源代码构建它,或者可能只从相同的android版本cyanogen update.zip中提取二进制文件就可以了(它可能位于更新内的压缩文件系统中)不过)
也有一些来自先驱者的文章,他们在最初的 G1 版本上发现了意外的 root shell,并安装了相当多的 Debian Arm。
The emulator is not set to secure mode, so it's adb shell should be a root shell.
There are several android builds of busybox, for example cyanogen alternative versions of Android use it to augment toolbox (which is Android's own limited re-implementation of the same concept under a non-gpl license). You should be able to get it from the cyanogen repositories and build it from source, or it's possible that just extracting the binaries from a same-android-version cyanogen update.zip would work (it may be in a compressed file system inside the update though)
There were also some writeups from pioneers who discovered the accidental root shell on the original G1 release and installed quite a bit of debian arm.