Compiling Android specific modules

Source: Internet
Author: User

After compiling the complete Android in the front, you can now start compiling the specified module


CD ~/android


Perform
. ./build/envsetup.sh


Have the following command
-Croot:changes directory to the top of the tree.


-M:makes from the top of the tree.
-Mm:builds all of the modules in the current directory.
-Mmm:builds all of the modules in the supplied directories.
-Cgrep:greps on all local C + + files.
-Jgrep:greps on all local Java files.
-Resgrep:greps on all local res/*.xml files.
-Godir:go to the directory containing a file.



Use the MMM command to compile the specified module, such as an email application:
Mmm packages/apps/email/

Once the compilation is complete, you can see the email.apk file in the Out/target/product/generic/system/app directory.

Three. After compiling the module, we also need to repackage the system.img file so that we can see our program when we run the system.img on the simulator.
~/android$ make Snod


Then run the virtual machine
SOURCE build/envsetup.sh
Lunch Full-eng
Emulator

Compiling Android specific modules

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.