From aec36405609c2f8aaed3675551ce5d3004fd5b29 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 14 Dec 2017 11:20:27 -0800 Subject: [PATCH] Add Soong modules to apkcerts Bug: 70669383 Test: m apkcerts-list contains framework-res Change-Id: I00c5c5d9e7311bbe4f16bf48407dd0efa242c7aa --- core/soong_app_prebuilt.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/soong_app_prebuilt.mk b/core/soong_app_prebuilt.mk index 0b8fa4d0a1..e94c0190a3 100644 --- a/core/soong_app_prebuilt.mk +++ b/core/soong_app_prebuilt.mk @@ -43,6 +43,12 @@ $(built_odex): $(LOCAL_SOONG_DEX_JAR) $(call dexpreopt-one-file,$<,$@) endif +PACKAGES := $(PACKAGES) $(LOCAL_MODULE) +ifdef LOCAL_CERTIFICATE + PACKAGES.$(LOCAL_MODULE).PRIVATE_KEY := $(LOCAL_CERTIFICATE) + PACKAGES.$(LOCAL_MODULE).CERTIFICATE := $(patsubst %.x509.pem,%.pk8,$(LOCAL_CERTIFICATE)) +endif + ifndef LOCAL_IS_HOST_MODULE ifeq ($(LOCAL_SDK_VERSION),system_current) my_link_type := java:system