If the android source is in the android21 folder (that is, the Directory of the MAKEFILE file), run CD android21,
Then you can execute the following command;
1. Make settings
Generate the settings.apk File
2. Make Snod
Equivalent to make droid
This command generates a new system image system. IMG, which is much faster than make but unstable (sometimes unavailable)
Copy the system image to the SDK
CP out/target/product/generic/system. img/
Out/host/linux-x86/SDK/android-sdk_eng.justin_linux-x86/tools/lib/images/
Delete data from a program:
Out/host/linux-x86/SDK/android-sdk_eng.justin_linux-x86/tools/emulator-wipe-Data
3. Make
After the image is compiled successfully, it will be in the directory~/android/src/out/target/product/generic
To generate some image files.
Ramdisk. IMG system. IMG userdata. img
4. Make SDK
Note: If you need to build the SDK, you need to install the sun-java5-jdk instead of the sun-java6-jdk
After the SDK is compiled successfully ~ /Android/src/out/host/linux-x86/SDK/
Generate SDK file directories and packages:
Android-sdk_eng.justin_linux-x86
Android-sdk_eng.justin_linux-x86.zip
And in ~ /Android/src/out/target/product/generic (generic is the default product name) to package all the image files:
Generic-img-eng.justin.zip