Android6.0 system source code compilation commands

1. System source code reorganization and single compilation

    Reorganization: 1. source init_648.sh 

              2、source build/envsetup.sh 

              3、lunch 13

              4. mm MPinyinIME or mmm device/mstar/common/apps/MPinyinIME/ or enter the directory mm -B

   Execute the above commands in sequence, which is a single compilation, and execute it in the root directory.

Second, modify the system environment variables

are

reboot

printenv BASE_CODE

setenv BASE_CODE HHT_B7C000F1L80000000000_MSD648_V1.2.7_20180129.084305_502b5df (the value you want to modify)

saveenv

reset

Execute the above commands one by one to modify the value of the environment variable.

3. The app source code is compiled under the system source code
1、repo init -b 648
2、repo sync
3、repo forall -c "git checkout  master" && repo forall -c "git reset --hard origin/master" && repo  sync  && repo  manifest  -r  -o sourcecode_list

4、./build_fhd.sh 

Execute the above commands in sequence.   

Fourth, compile Google Pinyin input method

When you compile the input method, two files will be generated:

apk is located in system\app\

so is located in system\lib64


apk install directly

so library adb push to the big screen system\lib64\

5. Others

Upgrade version control: am broadcast -a com.hht.upgrade.files

Open usb lock: am broadcast -a com.hht.disable.usblock

Open the factory menu: am start mstar.factorymenu.ui/mstar.tvsetting.factory.ui.designmenu.DesignMenuActivity


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325850402&siteId=291194637