Is it possible to gain root and/or install BusyBox on the Android Emulator?

核能气质少年 提交于 2019-12-08 09:45:19

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/4368127/is-it-possible-to-gain-root-and-or-install-busybox-on-the-android-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!