OSDN Git Service

releasetools: Don't extract BOOTABLE_IMAGES when signing target files
authorBrint E. Kriebel <bekit@cyngn.com>
Wed, 10 Feb 2016 23:54:05 +0000 (15:54 -0800)
committerMichael Bestas <mikeioannina@gmail.com>
Fri, 6 Jan 2017 23:37:36 +0000 (01:37 +0200)
boot and recovery images need to be re-created during the signing
process to ensure that the proper keys are embedded in the images. Don't
extract the BOOTABLE_IMAGES path if it exists in the source target files
to avoid re-using the prebuilt versions.

Change-Id: Icdf61367efc2364f89c7ab1c61a81536431aea2e
Ticket: CYNGNOS-1994

tools/releasetools/sign_target_files_apks.py

index 8c293e2..a1b18c0 100755 (executable)
@@ -211,6 +211,9 @@ def ProcessTargetFiles(input_tf_zip, output_tf_zip, misc_info,
     if info.filename.startswith("IMAGES/"):
       continue
 
+    if info.filename.startswith("BOOTABLE_IMAGES/"):
+      continue
+
     data = input_tf_zip.read(info.filename)
     out_info = copy.copy(info)