Android车机DIY开发之软件篇(八)单独编译
1.CarLauncher单独编译
CarLauncher源码位于 packages/apps/Car/Launcher
用Eclipse ADT 谷歌定制版编译而成,.mk .bp编译
Android13目录如下:
alientek@alientek:~/packages/apps/Car$ ls
Calendar LatinIME MessengerPrebuilt Settings
Cluster ***Launcher*** Notification SettingsIntelligence
DebuggingRestrictionController LinkViewer Provision systemlibs
DialerPrebuilt LocalMediaPlayer Radio SystemUI
Hvac MediaPrebuilt RotaryController SystemUpdater
SubLime或者Android Studio打开编译同步Launcher可以看到代码:
AndroidManifest.xml 是车载launch入口
android:name=“.CarLauncher”
CarLauncher.java
####1.在根目录执行,再进Launcher执行
source build/envsetup.sh
cd packages/apps/Car/Launcher
~/packages/apps/Car/Launcher$ mm
####2.在根目录全编
source build/envsetup.sh
lunch
74
make -j5
####3.启动模拟器
2.Framework单独编译
####1.在根目录执行,再进Launcher执行
source build/envsetup.sh
cd frameworks/base
~/frameworks/base$ mm
####2.在根目录全编
source build/envsetup.sh
lunch
74
make -j5
####3.启动模拟器