From 4f09900e676f7343643ada3797c3597f9c363015 Mon Sep 17 00:00:00 2001 From: Tianjie Xu Date: Thu, 11 Aug 2016 18:04:27 -0700 Subject: [PATCH] Replace META/care_map.txt when signing target files Do not copy the "META/care_map.txt" from the source zipfile when signing the target files with sign_target_files_apks. Because we'll generate a new care_map after rebuilding the system/vendor images; and we'll write the new "META/care_map.txt" to the signed-target-file. Change-Id: I6919cfdf8314a4084b5f612a9c89469f391486a4 Test: Run sign_target_files_apks locally, and the entry is updated. Bug: 30812253 --- tools/releasetools/sign_target_files_apks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/releasetools/sign_target_files_apks.py b/tools/releasetools/sign_target_files_apks.py index 14ee963ead..0f20f826af 100755 --- a/tools/releasetools/sign_target_files_apks.py +++ b/tools/releasetools/sign_target_files_apks.py @@ -279,6 +279,10 @@ def ProcessTargetFiles(input_tf_zip, output_tf_zip, misc_info, info.filename == "BOOT/cmdline"): pass + # Skip the care_map as we will regenerate the system/vendor images. + elif (info.filename == "META/care_map.txt"): + pass + # Copy BOOT/, RECOVERY/, META/, ROOT/ to rebuild recovery patch. This case # must come AFTER other matching rules. elif (info.filename.startswith("BOOT/") or