From bcc8d8a2d43b9243e188ed711a9e71efd79fa685 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Mon, 18 Feb 2019 15:21:19 +0900 Subject: [PATCH] Install apexkeys.txt into the target-files package The file contains information about apex-to-keys mappings. Bug: 124406181 Test: m dist and check if META/apexkeys.txt file exist in the target-files package. Change-Id: If8da917a8b4d4e8326614b34067c14ed0df59cb3 --- core/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/Makefile b/core/Makefile index b3e9d37b2f..97cb752141 100644 --- a/core/Makefile +++ b/core/Makefile @@ -690,8 +690,10 @@ apkcerts-list: $(APKCERTS_FILE) ifneq (,$(TARGET_BUILD_APPS)) $(call dist-for-goals, apps_only, $(APKCERTS_FILE):apkcerts.txt) + $(call dist-for-goals, apps_only, $(SOONG_APEX_KEYS_FILE):apexkeys.txt) endif + # ----------------------------------------------------------------- # build system stats BUILD_SYSTEM_STATS := $(PRODUCT_OUT)/build_system_stats.txt @@ -3650,6 +3652,7 @@ $(BUILT_TARGET_FILES_PACKAGE): \ $(LPMAKE) \ $(SELINUX_FC) \ $(APKCERTS_FILE) \ + $(SOONG_APEX_KEYS_FILE) \ $(SOONG_ZIP) \ $(HOST_OUT_EXECUTABLES)/fs_config \ $(HOST_OUT_EXECUTABLES)/imgdiff \ @@ -3783,6 +3786,7 @@ endif @# build them. $(hide) mkdir -p $(zip_root)/META $(hide) cp $(APKCERTS_FILE) $(zip_root)/META/apkcerts.txt + $(hide) cp $(SOONG_APEX_KEYS_FILE) $(zip_root)/META/apexkeys.txt ifneq ($(tool_extension),) $(hide) cp $(PRIVATE_TOOL_EXTENSION) $(zip_root)/META/ endif