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. Swift2.1 语法指南——泛型

    原档:https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programmi ...

  2. Junit基础整理

    项目引进Junit包 对待测试类新建testcase testcase类分为:@RunWith() -----@RunWith(suite.class)测试套件类打包测试 -----@RunWith( ...

  3. jQuery Ajax无刷新操作一般处理程序 ashx

    //前台实例代码 aspx文件 <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="ser ...

  4. 简单实现div遮罩

    顾名思义,div遮罩就是将网页上的一部分用div遮盖起来,防止用户误点,因此div遮罩的一个用途就是将table设置为不可编辑. 作者通过查找资料,并进行简单的测试,最终完成了以下几段简单代码,来实现 ...

  5. Java Io(数据输入输出流)

    Java Io 字节流中的DataInputStream 和 DataOutputStream,使用流更加方便,是流的一个扩展,更方便读取int, long,字符等类型数据. 事例代码如下: pack ...

  6. 通过Unity3d创建二维码(利用zxing2.2)

    http://blog.csdn.net/liulala16/article/details/14521979 2013-11-08 14:53 1965人阅读 评论(3) 收藏 举报 首先 下载ZX ...

  7. VSSより、指定したファイルを取得するマクロ(パス入り)

    Option Explicit'VSSのiniファイルの場所Private SRCSAFE_INI As String'VSS接続のユーザIDPrivate USER_ID As String'VSS ...

  8. C++关键字:mutable(转)

    参考:http://blog.csdn.net/hxz_qlh/article/details/14475573 修饰成员变量,在const成员函数中可修改它,在C++中还从未用过这个关键字.

  9. Database、User、Schema、Tables、Col、Row

    可以把Database看作是一个大仓库,仓库分了很多很多的房间,Schema就是其中的房间,一个Schema代表一个房间,Table可以看作是每个Schema中的床,Table(床)就被放入每个房间中 ...

  10. 【leetcode】Convert Sorted Array to Binary Search Tree

    Convert Sorted Array to Binary Search Tree Given an array where elements are sorted in ascending ord ...