What is the difference between the different values of the variable LOCAL_CERTIFICATE ?
I know of two values platform and shared. What are the other possible values in Android build system ? How does it effect our application's behavior.
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := abc
LOCAL_CERTIFICATE := shared
LOCAL_JNI_STATIC_LIBRARIES := abcjni
LOCAL_PROGUARD_ENABLED := disabled
include $(BUILD_PACKAGE)
include $(call all-makefiles-under,$(LOCAL_PATH))
Besides the value platform
and shared
, there are other two values called media
and releasekey
. The following list illustrate their differences which was copy from Android build system from here.
Those are the signatures used by Android security system to ensure the core component and the framework of the system's security is under the control of manufacture.
The link about Android build system I gave above is not official, but it's a good material for references.
Update:
You can also set LOCAL_CERTIFICATE
to be PRESIGNED
, which tells the signing script that this APKs are already signed and should not be signed again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With