From 4e34ce054c54dede6f6c6f19a918317fdae462f8 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Fri, 15 Dec 2017 13:20:27 -0800 Subject: [PATCH] Fix swapped certificate and private key in soong apps The .x509.pem file should be in CERTIFICATE, and the .pk8 file in PRIVATE_KEY. Bug: 70669383 Test: examine apkcerts.txt Change-Id: I480f19be2efbbd72ea23ebd681f312b94accfd7a --- core/soong_app_prebuilt.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/soong_app_prebuilt.mk b/core/soong_app_prebuilt.mk index a49f8358c..633ef0c37 100644 --- a/core/soong_app_prebuilt.mk +++ b/core/soong_app_prebuilt.mk @@ -63,8 +63,8 @@ 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)) + PACKAGES.$(LOCAL_MODULE).CERTIFICATE := $(LOCAL_CERTIFICATE) + PACKAGES.$(LOCAL_MODULE).PRIVATE_KEY := $(patsubst %.x509.pem,%.pk8,$(LOCAL_CERTIFICATE)) endif ifndef LOCAL_IS_HOST_MODULE