How to Install BusyBox on Rooted Android Phone

by Jeffry on December 21, 2009

BusyBox is a single multicall binary that packages the functionality of most widely used standard Unix tools. Follow the simple steps below to install BusyBox on rooted Android device.

busybox

BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides replacements for most of the utilities you usually find in GNU fileutils, shellutils, etc. BusyBox provides a fairly complete environment for any small or embedded system.

BusyBox binary highlights
chown, chgrp: change permission ownership.
awk, sed: languages to both process & transform text
grep: a text search utility
du: shows disk usage
vi: a shell based text editor
pidof: return the pid of a running process
less: text reader with back and forward nav
tail: trail the end of a file for activity
gunzip, gzip, tar, bzip2: archival compression software
clear: clear screen
crontab, crond: task scheduling
diff: compare files
httpd: a light webserver
telnet: basic TCP remote login
xargs: use the output of a command as the arguments for another
su: masquerade as another system user
wget: retrieves content from a web server
which: identifies the location of an executable

How to  Install BusyBox on rooted Android device

Step #1 Download BusyBox 1.15.3 built for your phone. Unzip it and place the busybox file in your SDK/tools dir

Step #2 Reboot your android device normally and plug in to your PC.
Step #3 Open the command prompt/console and cd to the SDK/tools dir. At the prompt:

[shell]
adb shell
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
exit
adb push busybox /data/local
adb shell
cd /system
ls –al
[/shell]

You’re pushing busybox to the phone rather than the SD card as the SD card is mounted noexec.
if the dir /system/xbin is not there:

[shell]
/data/local/busybox mkdir /system/xbin
[/shell]

 
then use busybox to install busybox

[shell]
cd /data/local
chmod busybox 755
/data/local/busybox cp /data/local/busybox /system/xbin/busybox
cd /system/xbin
chmod busybox 755
./busybox –install -s /system/xbin
rm /data/local/busybox
[/shell]

Yes you’re chmod’ing busybox twice. This is to make sure the permissions work in the /system/xbin folder as well.

Then exit and reboot:

[shell]
reboot
[/shell]

Blog Widget by LinkWithin
  • Asd

    It’s adb push busybox /data/local/busybox

  • amanthinkingofrooting

    fuck busy box…….lol     do it on your linux computer

  • Lino Banfi

    > That zip file contains a tar file of the busybox source, not a compiled executable.

    +1

  • Sanko

    fuck it. WINDOWS MOBILE 6,5.

  • Sdasdasd

    you fucken moron, you havent even tested this have you, thanks asshole

  • Arpy Vanyan

    adb push busybox /data/local
    won’t work. after cd /data/local and chmod says “Unable to cmod busybox: No such file or derectory”
    what to do?

    • Arpy Vanyan

      ok I got it. it should be
      adb push busybox /data/local/busybox

      Now there’s another problem. after /data/local/busybox cp /data/local/busybox /system/xbin/busybox
      says permition denied….

  • Lazyboi_125

    is it suppose to take a while to push the files? im stuck on busybox/examples/mdev.conf

  • Palmetto_x

    Sounds like your phone is not rooted

  • Shadowlord

    I am trying to downloud busybox. In command prompt I am at the step where yo type su and I am getting “Permission denied” where did I screw up

  • Shadowlord

    I am trying to downloud busybox. In command prompt I am at the step where yo type su and I am getting "Permission denied" where did I screw up

    • Palmetto_x

      Sounds like your phone is not rooted

  • http://amedee.be Amedee

    Wrong syntax:chmod busybox 755Right syntax:chmod 755 busybox

  • david

    Yeah man, that's source code, not a binary file. Edit your steps or people (like me) will end up loading source files into the phones internal memory.

  • Kieran

    That zip file contains a tar file of the busybox source, not a compiled executable.

Previous post:

Next post:

Gadgets DNA | About us |  Copyright Policy |  Privacy Policy |  Disclaimer |  Subscribe us |  Contact us |  RSS Feed |  Sitemap