How to install Busybox on a simulator?

1)      Download Busybox image from http://www.busybox.net/downloads/binaries/1.21.1/

2)      Because the /system partition is read-only by default.

#remounts the /system and /vendor (if present) partitions on the device read-write

adb remount

3)      adb push busybox-armv71 /system/xbin/busybox

4)      adb shell

cd /system/xbin/

chmod 755 ./busybox

5)      Then, you can run busybox.

1|root@generic:/system/xbin # busybox

busybox

BusyBox v1.21.1 (2013-07-08 10:26:30 CDT) multi-call binary.

BusyBox is copyrighted by many authors between 1998-2012.

Licensed under GPLv2. See source distribution for detailed

copyright notices.

 

Usage: busybox [function [arguments]...]

   or: busybox --list[-full]

   or: busybox --install [-s] [DIR]

   or: function [arguments]...

 

        BusyBox is a multi-call binary that combines many common Unix

        utilities into a single executable.  Most people will create a

        link to busybox for each function they wish to use and BusyBox

        will act like whatever it was invoked as.

 

Currently defined functions:

        [, [[, acpid, add-shell, addgroup, adduser, adjtimex, arp, arping, ash,

        awk, base64, basename, beep, blkid, blockdev, bootchartd, brctl,

        bunzip2, bzcat, bzip2, cal, cat, catv, chat, chattr, chgrp, chmod,

        chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, comm,

        conspy, cp, cpio, crond, crontab, cryptpw, cttyhack, cut, date, dc, dd,

        deallocvt, delgroup, deluser, depmod, devmem, df, dhcprelay, diff,

        dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap,

        dumpleases, echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake,

        expand, expr, fakeidentd, false, fbset, fbsplash, fdflush, fdformat,

        fdisk, fgconsole, fgrep, find, findfs, flock, fold, free, freeramdisk,

        fsck, fsck.minix, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty,

        grep, groups, gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid,

        hostname, httpd, hush, hwclock, id, ifconfig, ifdown, ifenslave,

        ifplugd, ifup, inetd, init, insmod, install, ionice, iostat, ip,

        ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel,

        kbd_mode, kill, killall, killall5, klogd, last, less, linux32, linux64,

        linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread,

        losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat,

        lzma, lzop, lzopcat, makedevs, makemime, man, md5sum, mdev, mesg,

        microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, mkfs.minix,

        mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo, modprobe, more,

        mount, mountpoint, mpstat, mt, mv, nameif, nanddump, nandwrite,

        nbd-client, nc, netstat, nice, nmeter, nohup, nslookup, ntpd, od,

        openvt, passwd, patch, pgrep, pidof, ping, ping6, pipe_progress,

        pivot_root, pkill, pmap, popmaildir, poweroff, powertop, printenv,

        printf, ps, pscan, pstree, pwd, pwdx, raidautorun, rdate, rdev,

        readahead, readlink, readprofile, realpath, reboot, reformime,

        remove-shell, renice, reset, resize, rev, rm, rmdir, rmmod, route, rpm,

        rpm2cpio, rtcwake, run-parts, runlevel, runsv, runsvdir, rx, script,

        scriptreplay, sed, sendmail, seq, setarch, setconsole, setfont,

        setkeycodes, setlogcons, setserial, setsid, setuidgid, sh, sha1sum,

        sha256sum, sha3sum, sha512sum, showkey, slattach, sleep, smemcap,

        softlimit, sort, split, start-stop-daemon, stat, strings, stty, su,

        sulogin, sum, sv, svlogd, swapoff, swapon, switch_root, sync, sysctl,

        syslogd, tac, tail, tar, tcpsvd, tee, telnet, telnetd, test, tftp,

        tftpd, time, timeout, top, touch, tr, traceroute, traceroute6, true,

        tty, ttysize, tunctl, udhcpc, udhcpd, udpsvd, umount, uname, unexpand,

        uniq, unix2dos, unlzma, unlzop, unxz, unzip, uptime, users, usleep,

        uudecode, uuencode, vconfig, vi, vlock, volname, wall, watch, watchdog,

        wc, wget, which, who, whoami, whois, xargs, xz, xzcat, yes, zcat, zcip

6)      Then, run a Busybox command.

root@generic:/ # busybox ps -T | busybox more

busybox ps -T | busybox more

PID   USER     TIME   COMMAND

    1 0          0:00 /init

    2 0          0:00 [kthreadd]

    3 0          0:00 [ksoftirqd/0]

    5 0          0:00 [kworker/u:0]

    6 0          0:00 [khelper]

    7 0          0:00 [sync_supers]

    8 0          0:00 [bdi-default]

    9 0          0:00 [kblockd]

   10 0          0:00 [rpciod]

   11 0          0:03 [kworker/0:1]

   12 0          0:00 [kswapd0]

   13 0          0:00 [fsnotify_mark]

   14 0          0:00 [crypto]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值