Tuesday, September 27, 2011

Andriod Toolbox

Android comes with a user space utility called Toolbox which is not busybox. It is at system/core/toolbox. But with very limited features.

For using the busybox,

1) Git clone from http://git.busybox.net/busybox/
2) To cross compile with arm tool-chain and building it as static, used the following command.
$ make -j32 CROSS_COMPILE=/projects/mob_tools/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi- -I/projects/mob_tools/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/libc/usr/include/ CFLAGS=--static
3) for installing the busybox,

Building Individual Components in Android

Run

source build/envsetup.sh

Then you can use mm command to compile any Android.mk individually

For example to compile the android Toolbox.

cd system/core/toolbox.

mm