diff --git a/Android.mk b/Android.mk index 87cfe6107..0121b6e57 100644 --- a/Android.mk +++ b/Android.mk @@ -179,7 +179,8 @@ ALL_MAC_PERMS_FILES := $(call build_policy, $(LOCAL_MODULE)) $(LOCAL_BUILT_MODULE) : $(mac_perms_keys.tmp) $(HOST_OUT_EXECUTABLES)/insertkeys.py $(ALL_MAC_PERMS_FILES) @mkdir -p $(dir $@) - $(hide) $(HOST_OUT_EXECUTABLES)/insertkeys.py -t $(TARGET_BUILD_VARIANT) -c $(TOP) $< -o $@ $(ALL_MAC_PERMS_FILES) + $(hide) DEFAULT_SYSTEM_DEV_CERTIFICATE="$(dir $(DEFAULT_SYSTEM_DEV_CERTIFICATE))" \ + $(HOST_OUT_EXECUTABLES)/insertkeys.py -t $(TARGET_BUILD_VARIANT) -c $(TOP) $< -o $@ $(ALL_MAC_PERMS_FILES) mac_perms_keys.tmp := ################################## diff --git a/keys.conf b/keys.conf index c00289790..7a307b5de 100644 --- a/keys.conf +++ b/keys.conf @@ -9,17 +9,17 @@ # [@PLATFORM] -ALL : build/target/product/security/platform.x509.pem +ALL : $DEFAULT_SYSTEM_DEV_CERTIFICATE/platform.x509.pem [@MEDIA] -ALL : build/target/product/security/media.x509.pem +ALL : $DEFAULT_SYSTEM_DEV_CERTIFICATE/media.x509.pem [@SHARED] -ALL : build/target/product/security/shared.x509.pem +ALL : $DEFAULT_SYSTEM_DEV_CERTIFICATE/shared.x509.pem # Example of ALL TARGET_BUILD_VARIANTS [@RELEASE] -ENG : build/target/product/security/testkey.x509.pem -USER : build/target/product/security/testkey.x509.pem -USERDEBUG : build/target/product/security/testkey.x509.pem +ENG : $DEFAULT_SYSTEM_DEV_CERTIFICATE/testkey.x509.pem +USER : $DEFAULT_SYSTEM_DEV_CERTIFICATE/testkey.x509.pem +USERDEBUG : $DEFAULT_SYSTEM_DEV_CERTIFICATE/testkey.x509.pem