全編譯系統(tǒng)USER版本命令如下:
jiebao@build:~/newDir/HT380K/MTK6755_DEV$ source ./build/envsetup.sh
jiebao@build:~/newDir/HT380K/MTK6755_DEV$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. aosp_deb-userdebug
8. aosp_flo-userdebug
9. full_fugu-userdebug
10. aosp_fugu-userdebug
11. mini_emulator_arm64-userdebug
12. m_e_arm-userdebug
13. mini_emulator_mips-userdebug
14. mini_emulator_x86_64-userdebug
15. mini_emulator_x86-userdebug
16. aosp_flounder-userdebug
17. full_jhz6755_66c_m-eng
18. full_jhz6755_66c_m-user
19. full_jhz6755_66c_m-userdebug
20. full_jhz6755_66g_m-eng
21. full_jhz6755_66g_m-user
22. full_jhz6755_66g_m-userdebug
23. full_jhz6755_66gt_m-eng
24. full_jhz6755_66gt_m-user
25. full_jhz6755_66gt_m-userdebug
26. full_jhz6755_66_m-eng
27. full_jhz6755_66_m-user
28. full_jhz6755_66_m-userdebug
29. full_jhz6755_66t_m-eng
30. full_jhz6755_66t_m-user
31. full_jhz6755_66t_m-userdebug
32. full_pop464g-eng
33. full_pop464g-user
34. full_pop464g-userdebug
35. full_shine_plus-eng
36. full_shine_plus-user
37. full_shine_plus-userdebug
38. aosp_hammerhead-userdebug
39. aosp_hammerhead_fp-userdebug
40. aosp_shamu-userdebug
41. dax1_grouper_sw-userdebug
42. dax1_hammerhead_hw-userdebug
43. dax1_hammerhead_sw-userdebug
44. dax1_manta_sw-userdebug
Which would you like? [aosp_arm-eng] 33
is it a mmitest build?
1. true
2. false
Which would you like? [false] 2
need user2eng ?
1. true
2. false
Which would you like? [false] 1
dualsim is support ?
1. true
2. false
Which would you like? [true] 1
jiebao@build:~/newDir/HT380K/MTK6755_DEV$ make //開始編譯
單編譯模塊
cd packages/apps/Settings/
mm -B
或者
source ./build/envsetup.sh
mmm packages/apps/Settings/
zhangfeng@build:~/MTK6755/packages/apps/Settings grep -rn "shotcut key" ./
./res/values/strings.xml:7452: <string name="hot_key">shotcut keys settings </string>
./res/values/strings.xml:7453: <string name="hot_key_prompt">F1,F2shotcut keys setting</string>
zhangfeng@build:~/MTK6755/packages/apps/Settings vim ./res/values/strings.xml +7452 vim命令編輯該文件并定位到第7452行缨称。按i 進入insert模式修改文件,按esc 退出insert模式,在按:,輸入wq保存退出
zhangfeng@build:~/MTK6755/packages/apps/Settings$ 輸入ls查看有沒有Android.mk文件,有的話輸入 mm -B 強制編譯
Z:\MTK6755\out\target\product\pop464g\system\priv-app\Settings>adb root
adbd is already running as root
Z:\MTK6755\out\target\product\pop464g\system\priv-app\Settings>adb remount 重新裝載Android文件系統(tǒng)
remount succeeded
Z:\MTK6755\out\target\product\pop464g\system\priv-app\Settings>adb push Z:\MTK67
55\out\target\product\pop464g\system\priv-app\Settings\Settings.apk /system/priv
-app/Settings/ 把編譯好的包羡洁,推送到文件夾里
Install: out/target/product/pop464g/system/framework/framework.jar
看Install !!Hㄏ恕!N诙省汹想!在源碼路徑下去找到out/target/product/pop464g/system/framework.jar
然后推到 /system/framework/ (system開始,jar或apk前)
2135 KB/s (16511318 bytes in 7.551s)
Z:\MTK6755\out\target\product\pop464g\system\priv-app\Settings>
Z:\MTK6755\out\target\product\pop464g\system\priv-app\Settings>
Z:\MTK6755\out\target\product\pop464g\system\priv-app\Settings>
Z:\MTK6755\out\target\product\pop464g\system\priv-app\Settings>adb reboot 重啟系統(tǒng)
Z:\MTK6755\out\target\product\pop464g\system\priv-app\Settings>