[Guide] All about BusyBox

Search This thread

fotak-x

Senior Member
May 17, 2012
3,274
687
Varaždin /dev/null
BusyBox


BusyBox info

Owner Erik Andersen

BusyBox is maintained by developer Denys Vlasenko

It's licensed under the GNU GENERAL PUBLIC LICENSE version 2 (GNU GPLv2)

5 December 1999 one of the oldest BusyBox version was relesed (0.38)

Newest version BusyBox 1.21.0 (21.1.2013)


What is BusyBox

Busybox is set of programs which allow users to have Unix/Linux utilities in single small executable file,

busybox multi-platform and it is made for linux based operating systems (Androd,FreeBSD...), to install busybox you must use linux kernel 2.4.*

You can find BusyBox in not only android devices but also in internet modems,wirles acces points...etc

Supported architectures are ARM, CRIS, H8/300, x86, ia64, x86_64, m68k, MIPS, PowerPC, S390, SH3/4/5, Sparc, v850e,


Usage

BusyBox directory /system/xbin or /system/bin folder

But you dont have to execute cd /system/xbin to start using busybox,just type command that you like (Works only if busybox is symlinked)


Installation through ADB


Requirements
  • Rooted device
  • ADB
  • USB debugging enabled

1.Place busybox binary in root of ADB folder on your PC

2.Start ADB and connect your device with PC (USB)
Code:
adb push busybox /data/local/busybox

adb shell

su

cd /data/local

chmod 755 busybox

./busybox

/data/local/busybox cp /data/local/busybox /system/xbin

/data/local/busybox cp /data/local/busybox /system/bin

cd /system/xbin

busybox --install .

reboot

Or install app from market,and install busybox Click here if you are noob


Commands

To see commands on your device type "busybox" in terminal emulator

Syntax

Code:
busybox <applet> [arguments]

Input:

Code:
busybox

Output:

Code:
[SIZE="1"][, [[, acpid, addgroup, adduser, adjtimex, ar, arp, arping, ash,
        awk, basename, beep, blkid, brctl, bunzip2, bzcat, bzip2, cal, cat,
        catv, chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot,
        chrt, chvt, cksum, clear, cmp, comm, cp, cpio, crond, crontab,
        cryptpw, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod,
        devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname,
        dos2unix, dpkg, du, dumpkmap, dumpleases, echo, ed, egrep, eject,
        env, envdir, envuidgid, expand, expr, fakeidentd, false, fbset,
        fbsplash, fdflush, fdformat, fdisk, fgrep, find, findfs, flash_lock,
        flash_unlock, fold, free, freeramdisk, fsck, fsck.minix, fsync,
        ftpd, ftpget, ftpput, fuser, getopt, getty, grep, gunzip, gzip, hd,
        hdparm, head, hexdump, hostid, hostname, httpd, hush, hwclock, id,
        ifconfig, ifdown, ifenslave, ifplugd, ifup, inetd, init, inotifyd,
        insmod, install, ionice, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink,
        iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd,
        last, length, less, linux32, linux64, linuxrc, ln, loadfont,
        loadkmap, logger, login, logname, logread, losetup, lpd, lpq, lpr,
        ls, lsattr, lsmod, lzmacat, lzop, lzopcat, makemime, man, md5sum,
        mdev, mesg, microcom, mkdir, mkdosfs, mkfifo, mkfs.minix, mkfs.vfat,
        mknod, mkpasswd, mkswap, mktemp, modprobe, more, mount, mountpoint,
        mt, mv, nameif, nc, netstat, nice, nmeter, nohup, nslookup, od,
        openvt, passwd, patch, pgrep, pidof, ping, ping6, pipe_progress,
        pivot_root, pkill, popmaildir, printenv, printf, ps, pscan, pwd,
        raidautorun, rdate, rdev, readlink, readprofile, realpath,
        reformime, renice, reset, resize, rm, rmdir, rmmod, route, rpm,
        rpm2cpio, rtcwake, run-parts, runlevel, runsv, runsvdir, rx, script,
        scriptreplay, sed, sendmail, seq, setarch, setconsole, setfont,
        setkeycodes, setlogcons, setsid, setuidgid, sh, sha1sum, sha256sum,
        sha512sum, showkey, slattach, sleep, softlimit, sort, split,
        start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv,
        svlogd, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac,
        tail, tar, taskset, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd,
        time, timeout, top, touch, tr, traceroute, true, tty, ttysize,
        udhcpc, udhcpd, udpsvd, umount, uname, uncompress, unexpand, uniq,
        unix2dos, unlzma, unlzop, unzip, uptime, usleep, uudecode, uuencode,
        vconfig, vi, vlock, volname, watch, watchdog, wc, wget, which, who,
        whoami, xargs, yes, zcat, zcip[/SIZE]


BusyBox emulator in web browser

Need some time to load but its good for learning

--->HERE<---


Screenshot
fotak-x 2013
busybox_screenshot.png




Thank me if this was usefull and if you like you can donate to me ;)

DO NOT copy/paste this guide to other forums without permission
and if you want to paste this guide to other website...dont even ask for permission because answer is NO

 
Last edited:

Fortun

Senior Member
Jun 6, 2012
314
218
You must have mentioned that updating busybox causes brick on stock kernel:eek::eek:

Wrong.

There's at least one ROM in which you can update BusyBox without any problems: MiniCM6. And this holds true for any ROMs based on it, such as AtiFroyo.

So, the problem is not with the kernel.
 
  • Like
Reactions: Gogeta

Gogeta

Senior Member
Oct 9, 2012
6,547
810
28
Gingertown
Wrong.

There's at least one ROM in which you can update BusyBox without any problems: MiniCM6. And this holds true for any ROMs based on it, such as AtiFroyo.

So, the problem is not with the kernel.

I got a brick with gdx v029 once while updating busybox on stock kernel:eek:

sent from.......
images
 

zebraapple

Member
May 5, 2013
31
3
Sydney
I learned from here what busybox is, but as for usage, it's rather unclear to me. Can someone please tell me how busybox would help me running other apps on a rooted android phone using 4.1.2? What do I do with it after I installed it?
 

zebraapple

Member
May 5, 2013
31
3
Sydney
It contains Linux level commands like su,chmod,insmod, etc....located in system /bin....
These commands are used by roms & apps (background processing);)

Sent from my E15i using Tapatalk 2
I did do a very tiny bit of unix at my student time (ancient history), so is there any point of me installing busybox to my phone running 4.1.2?
I have rooted the phone, but I didn't flash it, and it's working fine so far. (My first "smart" phone, I bought a month ago).:D
 

fotak-x

Senior Member
May 17, 2012
3,274
687
Varaždin /dev/null
I did do a very tiny bit of unix at my student time (ancient history), so is there any point of me installing busybox to my phone running 4.1.2?
I have rooted the phone, but I didn't flash it, and it's working fine so far. (My first "smart" phone, I bought a month ago).:D

well busybox is already installed on your phone
open terminal and type "busybox"
every android device should have busybox installed ;)
 
  • Like
Reactions: zebraapple

bsoplinger

Senior Member
Jan 17, 2011
1,477
338
I found this thread and even though the box with the list of commands shows it, the current version of busybox seems to be missing the beep command. Any idea why or how I can get that fixed?
 

Groot

Senior Member
Mar 7, 2013
4,337
1,298
28
Bacolod
try updating your bbox, but it's risky so try to flash a kernel that has a bbox pre-installed
 

Top Liked Posts

  • There are no posts matching your filters.
  • 31
    BusyBox


    BusyBox info

    Owner Erik Andersen

    BusyBox is maintained by developer Denys Vlasenko

    It's licensed under the GNU GENERAL PUBLIC LICENSE version 2 (GNU GPLv2)

    5 December 1999 one of the oldest BusyBox version was relesed (0.38)

    Newest version BusyBox 1.21.0 (21.1.2013)


    What is BusyBox

    Busybox is set of programs which allow users to have Unix/Linux utilities in single small executable file,

    busybox multi-platform and it is made for linux based operating systems (Androd,FreeBSD...), to install busybox you must use linux kernel 2.4.*

    You can find BusyBox in not only android devices but also in internet modems,wirles acces points...etc

    Supported architectures are ARM, CRIS, H8/300, x86, ia64, x86_64, m68k, MIPS, PowerPC, S390, SH3/4/5, Sparc, v850e,


    Usage

    BusyBox directory /system/xbin or /system/bin folder

    But you dont have to execute cd /system/xbin to start using busybox,just type command that you like (Works only if busybox is symlinked)


    Installation through ADB


    Requirements
    • Rooted device
    • ADB
    • USB debugging enabled

    1.Place busybox binary in root of ADB folder on your PC

    2.Start ADB and connect your device with PC (USB)
    Code:
    adb push busybox /data/local/busybox
    
    adb shell
    
    su
    
    cd /data/local
    
    chmod 755 busybox
    
    ./busybox
    
    /data/local/busybox cp /data/local/busybox /system/xbin
    
    /data/local/busybox cp /data/local/busybox /system/bin
    
    cd /system/xbin
    
    busybox --install .
    
    reboot

    Or install app from market,and install busybox Click here if you are noob


    Commands

    To see commands on your device type "busybox" in terminal emulator

    Syntax

    Code:
    busybox <applet> [arguments]

    Input:

    Code:
    busybox

    Output:

    Code:
    [SIZE="1"][, [[, acpid, addgroup, adduser, adjtimex, ar, arp, arping, ash,
            awk, basename, beep, blkid, brctl, bunzip2, bzcat, bzip2, cal, cat,
            catv, chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot,
            chrt, chvt, cksum, clear, cmp, comm, cp, cpio, crond, crontab,
            cryptpw, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod,
            devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname,
            dos2unix, dpkg, du, dumpkmap, dumpleases, echo, ed, egrep, eject,
            env, envdir, envuidgid, expand, expr, fakeidentd, false, fbset,
            fbsplash, fdflush, fdformat, fdisk, fgrep, find, findfs, flash_lock,
            flash_unlock, fold, free, freeramdisk, fsck, fsck.minix, fsync,
            ftpd, ftpget, ftpput, fuser, getopt, getty, grep, gunzip, gzip, hd,
            hdparm, head, hexdump, hostid, hostname, httpd, hush, hwclock, id,
            ifconfig, ifdown, ifenslave, ifplugd, ifup, inetd, init, inotifyd,
            insmod, install, ionice, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink,
            iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd,
            last, length, less, linux32, linux64, linuxrc, ln, loadfont,
            loadkmap, logger, login, logname, logread, losetup, lpd, lpq, lpr,
            ls, lsattr, lsmod, lzmacat, lzop, lzopcat, makemime, man, md5sum,
            mdev, mesg, microcom, mkdir, mkdosfs, mkfifo, mkfs.minix, mkfs.vfat,
            mknod, mkpasswd, mkswap, mktemp, modprobe, more, mount, mountpoint,
            mt, mv, nameif, nc, netstat, nice, nmeter, nohup, nslookup, od,
            openvt, passwd, patch, pgrep, pidof, ping, ping6, pipe_progress,
            pivot_root, pkill, popmaildir, printenv, printf, ps, pscan, pwd,
            raidautorun, rdate, rdev, readlink, readprofile, realpath,
            reformime, renice, reset, resize, rm, rmdir, rmmod, route, rpm,
            rpm2cpio, rtcwake, run-parts, runlevel, runsv, runsvdir, rx, script,
            scriptreplay, sed, sendmail, seq, setarch, setconsole, setfont,
            setkeycodes, setlogcons, setsid, setuidgid, sh, sha1sum, sha256sum,
            sha512sum, showkey, slattach, sleep, softlimit, sort, split,
            start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv,
            svlogd, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac,
            tail, tar, taskset, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd,
            time, timeout, top, touch, tr, traceroute, true, tty, ttysize,
            udhcpc, udhcpd, udpsvd, umount, uname, uncompress, unexpand, uniq,
            unix2dos, unlzma, unlzop, unzip, uptime, usleep, uudecode, uuencode,
            vconfig, vi, vlock, volname, watch, watchdog, wc, wget, which, who,
            whoami, xargs, yes, zcat, zcip[/SIZE]


    BusyBox emulator in web browser

    Need some time to load but its good for learning

    --->HERE<---


    Screenshot
    fotak-x 2013
    busybox_screenshot.png




    Thank me if this was usefull and if you like you can donate to me ;)

    DO NOT copy/paste this guide to other forums without permission
    and if you want to paste this guide to other website...dont even ask for permission because answer is NO

    2
    Seriously, what does busybox do? What does it do to help running apps in a rooted android phone?

    Many thanks.

    It contains Linux level commands like su,chmod,insmod, etc....located in system /bin....
    These commands are used by roms & apps (background processing);)

    Sent from my E15i using Tapatalk 2
    1
    Nice.

    Sent from my E15i using Tapatalk 2
    1
    Check in Terminal Emulator by typing busybox. It should display a few lines of info on what commands can be used and blah blah. Installing busybox should be a crucial part in the rooting process. At least it is for both the X8 and the Nexus 7.