Compiling a module in the Android source code separately

Source: Internet
Author: User

As we all know, it takes a long time to compile a firmware. Sometimes only to change a module of the system of a certain function, such as modifying the system setting source of some places, then there is no need to compile the whole system again, then need to use the module compilation (if the system has been compiled once).

The following is an example of compiling an apk from the source of the A20 platform.

For example, to modify the HDMI resolution output in the system settings, let it have only a few output options.

1, enter android\device\softwinner\common\packages This directory, find tvdsettings This folder, this is A20 custom system Setup source code.

2, find Displaysetting.java This class, modify it can be implemented, the specific details of the changes here is not more said, very simple. Note the changes and remember to save.

This completes the function, and the next step is to compile the apk. The compile steps are as follows:

Go to the Android directory and enter the following command:

1) Source build/envsetup.sh start compilation preparation

2) Lunch 16 selection Project

3) Enter the Android\device\softwinner\common\packages\tvdsettings directory, enter:mm

Final apk in this directory: \android\out\target\product\sugar-ref001\system\app



Compiling a module in the Android source code separately

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.