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