toolbox
busybox より単純なコマンドをサポートしている。恐らく Android の標準機能だと思われる。
busybox と違い、これが直接実行されることは無い。既に幾つかのコマンドがシンボリックリンクとして作成されている。
busybox と違い、これが直接実行されることは無い。既に幾つかのコマンドがシンボリックリンクとして作成されている。
lrwxr-xr-x root shell 2011-01-05 15:14 rm -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 cmp -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 sendevent -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 renice -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 setconsole -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 ps -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 sleep -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 netstat -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 getevent -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 vmstat -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 ln -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 insmod -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 stop -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 cat -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 mv -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 getprop -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 nandread -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 smd -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 mount -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 mkdir -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 watchprops -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 dd -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 dmesg -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 setprop -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 rmdir -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 notify -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 log -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 date -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 route -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 wipe -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 ls -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 top -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 reboot -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 chown -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 hd -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 chmod -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 id -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 start -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 kill -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 printenv -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 df -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 schedtop -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 ifconfig -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 sync -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 lsmod -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 iftop -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 umount -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 newfs_msdos -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 rmmod -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 ionice -> toolbox lrwxr-xr-x root shell 2011-01-05 15:14 ioctl -> toolbox
busybox
toolbox の足りない部分を補うような存在。
busybox で幾つかのコマンドを補完できる。例えば、
busybox で幾つかのコマンドを補完できる。例えば、
# busybox less /dev/log/system # logcat | busybox grep ^D
つまり以下の形式でコマンドを実行する。
# busybox [コマンド名] [コマンドの引数]
ヘルプを実行すると busybox がサポートするコマンド一覧を確認できる。"Currently defined functions" で、コマンドのリストを確認できる。人が使うものから、シェルスクリプトで実行される事を想定したもの、telnet(telnetd) や ftp (ftpd)サーバまで色々ある。
P10AN01 には既に busybox がインストールされているので、別途インストールする必要は無い。
コマンドを頻繁に実行する場合は、ln でシンボリックリンクを作成して実行することも出来る。
# cd /system/busybox # ln -s busybox grep # ls -l | grep grep lrwxrwxrwx root root 2011-01-25 10:49 grep -> busybox -rwxr-xr-x root shell 5508 2011-01-05 15:14 bugreport
busybox のヘルプ
# busybox BusyBox v1.16.0 (2010-02-04 15:34:50 CST) multi-call binary. Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko and others. Licensed under GPLv2. See source distribution for full notice. Usage: busybox [function] [arguments]... 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: [, [[, 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, 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, fgrep, find, findfs, fold, free, freeramdisk, fsck, fsck.minix, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, gunzip, gzip, halt, hd, hdparm, head, hexdump, hostid, hostname, httpd, hush, hwclock, id, ifconfig, ifdown, ifenslave, ifplugd, ifup, inetd, init, 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, makedevs, makemime, man, md5sum, mdev, mesg, microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modprobe, more, mount, mountpoint, msh, mt, mv, nameif, nc, netstat, nice, nmeter, nohup, nslookup, od, openvt, passwd, patch, pgrep, pidof, ping, ping6, pipe_progress, pivot_root, pkill, popmaildir, poweroff, printenv, printf, ps, pscan, pwd, raidautorun, rdate, rdev, readahead, readlink, readprofile, realpath, reboot, reformime, renice, reset, resize, rm, rmdir, rmmod, route, 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, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd, time, timeout, top, touch, tr, traceroute, true, tty, ttysize, tunctl, tune2fs, udhcpc, udhcpd, udpsvd, umount, uname, uncompress, unexpand, uniq, unix2dos, unlzma, unlzop, unzip, uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, volname, wall, watch, watchdog, wc, wget, which, who, whoami, xargs, yes, zcat, zcip