pushing busybox into android emulator

Sid Ramadoss picture Sid Ramadoss · Mar 17, 2011 · Viewed 12.8k times · Source

I've downloaded the source for mips android and have done a "make" and got the emulator running. I want to push the busybox into the emulator. I've downloaded the static compiled busybox binary. Under which directory should I place this and what should I do to push the busybox into the emulator?

Answer

Ahmed Hassan picture Ahmed Hassan · Aug 24, 2011
  1. Root your emulator
  2. Download this
  3. Extract it then move \system\lib\su and \system\app\superuser.apk to your adb directory.
  4. Run adb and then enter the following:
adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system  
adb push su /system/xbin/su  
adb shell chmod 06755 /system  
adb shell chmod 06755 /system/xbin/su
adb install superuser.apk
  1. Then download busybox from here
  2. Move it to your adb directory
  3. run adb and then enter:
adb shell mkdir /data/busybox
adb push busybox /data/busybox
adb shell
su
cd /data/busybox
chmod 775 busybox
./busybox --install
busybox