无
分类: Android平台
2013-08-27 16:49:26
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
烧写系统后,便可使用系统中应用了。但是有些应用不能用这种方法安装,如果用这种方式,生成的应用打不开。
http://blog.chinaunix.net/uid-20780196-id-3202490.html
编译的时候内置APK,也可以称为导入APK,分两种:
include
$(CLEAR_VARS)
LOCAL_MODULE
:= Superuser.apk
LOCAL_MODULE_TAGS
:= eng debug
LOCAL_MODULE_CLASS
:= EXECUTABLE
LOCAL_MODULE_PATH
:= $(TARGET_OUT_APPS)
LOCAL_SRC_FILES
:= $(LOCAL_MODULE)
include
$(BUILD_PREBUILT)