假设现在我们自己想手工添加一个shell命令mycommand,只要在system/core/toolbox/目录下面新建一个mycommand.c文件,并在里面实现一个mycommand_main函数,然后在system/core/toolbox/Android.mk中添加mycommand.c即可。Android.mk会自动把它编译进toolbox程序,并在编译生成的Android系统/system/bin目录下为这个命令生成一个指向toolbox的连接。
自己拿busybox的程式碼來編譯並且安裝到 Android系統裡
http://blog.csdn.net/liaoshengjiong/article/details/3957725
https://gforge.ti.com/gf/project/omapandroid/wiki/?pagename=Installing+Busybox+command+line+tools
http://www.omappedia.com/wiki/Android_Installing_Busybox_Command_Line_Tools
沒有留言:
張貼留言