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. ElasticSearch 2 (6) - 插件安装Head、Kopf与Bigdesk

    ElasticSearch 2 (6) - 插件安装Head.Kopf与Bigdesk 摘要 安装Elasticsearch插件Head.Kopf与Bigdesk 版本 elasticsearch版本 ...

  2. Jetty安装

    下载jetty http://www.eclipse.org/jetty/  看好jdk 版本 安装 解压压缩包到指定目录,且将其目录路径定义为${JETTY_HOME} 进入${JETTY_HOME ...

  3. 【C语言入门教程】5.1 函数说明 与 返回值

    C 语言是结构化语言,它的主要结构成分是函数.函数被作为一种构件,用以完成程序中的某个具体功能.函数允许一个程序的各个任务被分别定义和编码,使程序模块化.本章介绍 C 语言函数的设计,如何用函数分解程 ...

  4. Mac Pro 安装 Sublime Text 2.0.2,个性化设置,主题 和 插件 收藏

    1.到官网下载安装包 http://www.sublimetext.com/2 2.附注册码一枚 ----- BEGIN LICENSE ----- Andrew Weber Single User ...

  5. mysql explain 中key_len的计算

    今天丁原问我mysql执行计划中的key_len是怎么计算得到的,当时还没有注意,在高性能的那本书讲到过这个值的计算,但是自己看执行计划的时候一直都没有太在意这个值,更不用说深讨这个值的计算了: ke ...

  6. [原创]C 语言select函数

    参考链接:http://www.cnblogs.com/GameDeveloper/p/3406565.html 注意点: select() 只是执行一次的超时检测.重新进行select要重新设置“超 ...

  7. Javascript高级程序设计——this、闭包、函数表达式

    在javascript中函数声明会被提升,而函数表达式不会被提升.当函数执行时,会创建一个执行环境和相应的作用域链,然后利用arguments和其他的命名参数的值来初始化函数的活动对象,作用域链链中所 ...

  8. 转一篇简易易懂的android回调的实现--->(转的)

    回调机制在 Android 监听用户界面操作中的体现   本文讨论以下两个内容: 1. 回调函数 2. 回调机制在 Android框架 监听用户界面操作中的作用 一 回调函数 回调函数就是一个通过函数 ...

  9. VirtualBox CentOS安装增强功能与设置共享文件夹

    如果安装的是CentOS minimal版无网络的可以看这篇文章. 一.安装依赖环境 依次执行如下命令 yum install update yum install kernel-headers yu ...

  10. 【VBA】批量插入图片

    解决如下问题: 需要批量导入图片到Excel 图片放在一个文件夹中 图片有严格的顺序关系,即按照:共通名_编号的方式命名. 图片格式统一,即均为同一格式. 有两种方式可以插入图片到Excel中,其一为 ...