1. 向system.img中添加第三方package
#1 将第三方package拷贝到 android/packages/apps/目录下
#2 修改 android/build/target/product/generic_no_telephony.mk
-
PRODUCT_PACKAGES := \
-
DeskClock \
-
Calculator \
-
MapClient \
-
PbapClient \
-
Calendar \
-
Camera2 \
-
Email2 \
-
CertInstaller \
-
Email \
-
Exchange2 \
-
FusedLocation \
-
Gallery2 \
-
InputDevices \
-
Keyguard \
-
LatinIME \
-
Launcher2 \
-
Music \
-
MusicFX \
-
OneTimeInitializer \
-
PrintSpooler \
-
Provision \
-
QuickSearchBox \
-
Settings \
-
SystemUI \
-
TeleService \
-
CalendarProvider \
-
bluetooth-health \
-
hostapd \
-
wpa_supplicant.conf \
-
WallpaperCropper \
-
BoxService #<=== your apk module name
2. 添加第三方apk到system.img
修改
android/build/target/product/generic_no_telephony.mk,
-
PRODUCT_PACKAGES += \
-
audio.primary.default \
-
audio_policy.default \
-
local_time.default \
-
power.default \
-
libbt-client-api \
-
com.broadcom.bt \
-
com.broadcom.bt.xml \
-
com.dsi.ant.antradio_library \
-
com.dsi.ant.antradio_library.xml \
-
AntHalService \
-
ANTRadioService
-
-
PRODUCT_PACKAGES += \
-
local_time.default
-
-
PRODUCT_COPY_FILES := \
-
frameworks/av/media/libeffects/data/audio_effects.conf:system/etc/audio_effects.conf <==== 将指定目录的apk拷贝到system.img的某个目录
阅读(2343) | 评论(0) | 转发(0) |