toolbox是Android 自带的提供shell命令的软件。有点类似于busybox,但功能上好像弱很多。
其源码可以从Android source code 中system/core/toolbox目录下找到。

Android source code编译完成后,toolbox被添加入rootfs中类似:/system/bin目录下,用来提供必要的shell命令。但使用下来,觉得toolbox实在是功能非常有限。tools.h中通常只有以下一些命令:

(ls)(mount)(cat)(ps)(kill)(ln)(insmod)(rmmod)(lsmod)(ifconfig)(setconsole)(rm)(mkdir)(rmdir)(reboot)(getevent)(sendevent)(date)(wipe)(sync)(umount)(start)(stop)(notify)(cmp)(dmesg)(route)(hd)(dd)(df)(getprop)(setprop)(watchprops)(log)(sleep)(renice)(printenv)(smd)(chmod)(chown)(newfs_msdos)(netstat)(ioctl)(mv)(schedtop)(top)(iftop)(id)(vmstat)(nandread)(ionice)
且Android自带的shell 也没有tab补齐,按上键找之前的命令的功能。用起来实在不爽。

shell@hammerhead:/ $ ls -al /system/bin | grep toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 cat -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 chcon -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 chmod -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 chown -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 clear -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 cmp -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 cp -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 date -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 dd -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 df -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 dmesg -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 du -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 getenforce -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 getevent -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 getprop -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 getsebool -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 grep -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 hd -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 id -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 ifconfig -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 iftop -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 insmod -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 ioctl -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 ionice -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 kill -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 ln -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 load_policy -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 log -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 ls -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 lsmod -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 lsof -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 md5 -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 mkdir -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 mkswap -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 mount -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 mv -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 nandread -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 netstat -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 newfs_msdos -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 notify -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 printenv -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 ps -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 readlink -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 renice -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 restorecon -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 rm -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 rmdir -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 rmmod -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 route -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 runcon -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 schedtop -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 sendevent -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 setconsole -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 setenforce -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 setprop -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 setsebool -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 sleep -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 smd -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 start -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 stop -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 swapoff -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 swapon -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 sync -> toolbox
-rwxr-xr-x root shell 139040 2014-06-13 07:06 toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 top -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 touch -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 umount -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 uptime -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 vmstat -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 watchprops -> toolbox
lrwxr-xr-x root shell 2014-06-13 07:38 wipe -> toolbox

但我们可以添加busybox于其中。解决以上所有问题。

[Android Pro] Android下toolbox简介的更多相关文章

  1. [Android Pro] android 4.4 Android原生权限管理:AppOps

    reference : http://m.blog.csdn.net/blog/langzxz/45308199 reference : http://blog.csdn.net/hyhyl1990/ ...

  2. [Android Pro] Android 4.3 NotificationListenerService使用详解

    reference to : http://blog.csdn.net/yihongyuelan/article/details/40977323 概况 Android在4.3的版本中(即API 18 ...

  3. [Android Pro] Android开发实践:自定义ViewGroup的onLayout()分析

    reference to : http://www.linuxidc.com/Linux/2014-12/110165.htm 前一篇文章主要讲了自定义View为什么要重载onMeasure()方法( ...

  4. [Android Pro] Android开发实践:为什么要继承onMeasure()

    reference to : http://www.linuxidc.com/Linux/2014-12/110164.htm Android开 发中偶尔会用到自定义View,一般情况下,自定义Vie ...

  5. [Android Pro] Android 4.1 使用 Accessibility实现免Root自动批量安装功能

    reference to  :  http://www.infoq.com/cn/articles/android-accessibility-installing?utm_campaign=info ...

  6. [Android Pro] Android的Animation之LayoutAnimation使用方法

    用于为一个里面的控件,或者是一个里面的控件设置动画效果,可以在文件中设置,亦可以在代码中设置. 一种直接在XML文件中设置 1.  在res/anim文件夹下新建一个XML文件,名为list_anim ...

  7. [Android Pro] Android签名与认证详细分析之二(CERT.RSA剖析)

    转载自: http://www.thinksaas.cn/group/topic/335449/ http://blog.csdn.net/u010571535/article/details/899 ...

  8. [Android Pro] android 杀死进程的方法

    1: 杀死自己进程的方法 android.os.Process.killProcess(Process.myPid()); 2:杀死别人进程的方法(不能杀死自己) -------a: activity ...

  9. [Android Pro] Android权限设置android.permission完整列表

    android.permission.ACCESS_CHECKIN_PROPERTIES允许读写访问"properties”表在checkin数据库中,改值可以修改上传( Allows re ...

  10. [Android Pro] android中permission_group与permisson区别、作用

    转载:http://blog.csdn.net/feng88724/article/details/6409313 其实Android在定义 permission 时, 为每个Permission都进 ...

随机推荐

  1. 【C语言入门教程】7.5 枚举

    在实际应用中,有的变量只有几种可能取值.如人的性别只有两种可能取值,星期只有七种可能取值.在 C 语言中对这样取值比较特殊的变量可以定义为枚举类型.所谓枚举是指将变量的值一一列举出来,变量只限于列举出 ...

  2. InnoDB锁机制分析

    InnoDB锁机制常常困扰大家,不同的条件下往往表现出不同的锁竞争,在实际工作中经常要分析各种锁超时.死锁的问题.本文通过不同条件下的实验,利用InnoDB系统给出的各种信息,分析了锁的工作机制.通过 ...

  3. CentOS 6.5 zabbix 3.0.4 监控MySQL性能

    安装mysql [root@test3 /]# yum -y install mysql mysql-server 初始化数据库 [root@test3 /]# /etc/init.d/mysqld ...

  4. FZU2127

    FZU2127:养鸡场 Problem Description Jason买来了n米长的竹篱笆,打算将n米长的竹篱笆所实用来围成一个三角形的养鸡场.为方便起见.养鸡场三条边的长度都为正整数. 同一时候 ...

  5. 揭露QPS增高后的秘密

    导读 很多人在实际的开发中害怕系统的QPS增高,因为觉得QPS太高会导致系统挂掉;基于这种心理会想着尽量的降低系统的请求量,甚至有人会将很多处理放置到服务中来处理,这样外部发一起请求,服务就把所有的业 ...

  6. 跟着百度学PHP[4]OOP面对对象编程-13-魔术方法__set(),__get(),__isset(),__unset()

    __set() 在对象访问私有成员的时候自动被调用,达到了给你看,但是不能给你修改的效果!(在对象访问一个私有的成员的时候就会自动的调用该魔术方法) __get() 方法用于获取私有属性值.(在设置私 ...

  7. python 端口扫描仪

    思路:使用socket进行连接测试,即客户端连接服务器. 核心代码如下: from socket import * def try_port(ip,port,protocol = SOCK_STREA ...

  8. Sort Transformed Array

    Given a sorted array of integers nums and integer values a, b and c. Apply a function of the form f( ...

  9. 【转】Nginx服务器的反向代理proxy_pass配置方法讲解

    [转]Nginx服务器的反向代理proxy_pass配置方法讲解 转自:http://www.jb51.net/article/78746.htm 就普通的反向代理来讲Nginx的配置还是比较简单的, ...

  10. iOS 关于UIWindow的理解

    Every iOS app has a window that handles the presentation of the app’s user interface. Although the w ...