How to deal with android BUILD_PREBUILT?

if i have a third part subscription signed with their key.

I did it beforehand with our device, in ics, this should be done with BUILD_PREBUILT, the apk needs to be signed with our key, but when the user gets the device, how can they update the apk with the latest version of the third part provided? (the certificates don't match).

Thanks in advance.

+3


source to share


1 answer


You have the option not to dump apk when using BUILD_PREBUILT by settingLOCAL_CERTIFICATE := PRESIGNED

Here is a complete example of a makefile for this use:



LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := MyApp
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_MODULE_CLASS := APPS
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_MODULE_TAGS := optional
# tell dexopt not to try resigning the apks
LOCAL_CERTIFICATE := PRESIGNED

include $(BUILD_PREBUILT)

      

+4


source







All Articles