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:

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

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:

/data/local/busybox mkdir /system/xbin

 
then use busybox to install busybox

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

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:

reboot
Blog Widget by LinkWithin

Related posts:

  1. Root your Nexus S 4G Android Phone Easily!
  2. Google Blocking Movie Rental Service on Rooted Android Devices
  3. Geohot to Jailbreak, Root Sony Ericsson XPERIA Play Android Phone
  4. Netflix Android App Hacked to Work on any Android Device
  5. PDF Patcher 2: Fixes iOS 4.3.3 JailbreakMe 3.0 Vulnerability, Install Now!
  • 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


    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….

  • 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?

  • 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

  • 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

  • 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