OSDN Git Service

Replace META/care_map.txt when signing target files
authorTianjie Xu <xunchang@google.com>
Fri, 12 Aug 2016 01:04:27 +0000 (18:04 -0700)
committerTianjie Xu <xunchang@google.com>
Fri, 12 Aug 2016 01:04:27 +0000 (18:04 -0700)
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

index 14ee963..0f20f82 100755 (executable)
@@ -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