Use the android make command

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.