将一些apk文件预编译到系统中,从而不用每次跟新系统后在安装应用。
mydroid$ gedit device/ti/nexttab/device.mk
增加文件:
# ***Tommy: Prebuild all APK to /system/app for use GooglePlay ***
#增加google play应用,需要如下apk文件才能使用google play。
PRODUCT_COPY_FILES += \
device/ti/nexttab/google_paly/Gmail.apk:system/app/Gmail.apk \
device/ti/nexttab/google_paly/GoogleLoginService.apk:system/app/GoogleLoginService.apk \
device/ti/nexttab/google_paly/GoogleBackupTransport.apk:system/app/GoogleBackupTransport.apk \
device/ti/nexttab/google_paly/GoogleMarket.apk:system/app/GoogleMarket.apk \
device/ti/nexttab/google_paly/GoogleContactsSyncAdapter.apk:system/app/GoogleContactsSyncAdapter.apk \
device/ti/nexttab/google_paly/GoogleServicesFramework.apk:system/app/GoogleServicesFramework.apk \
device/ti/nexttab/google_paly/GoogleFeedback.apk:system/app/GoogleFeedback.apk
编译错误:
build/core/Makefile:25: *** Prebuilt apk found in PRODUCT_COPY_FILES: device/ti/nexttab/google_paly/Gmail.apk:system/app/Gmail.apk, use BUILD_PREBUILT instead!. Stop.
解决:
gedit build/core/Makefile
#Tommy Delete 删除如下代码
#define check-product-copy-files
#$(if $(filter %.apk, $(1)),$(error \
# Prebuilt apk found in PRODUCT_COPY_FILES: $(1), use BUILD_PREBUILT #instead!))
#endef
编译OK
烧写系统后,便可使用系统中应用了。但是有些应用不能用这种方法安装,如果用这种方式,生成的应用打不开。
阅读(10639) | 评论(0) | 转发(0) |