summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBrint E. Kriebel <bekit@cyngn.com>2016-02-10 15:54:05 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-02-10 15:59:47 -0800
commit391562eb1166e2badbb236920cf15782551cec0e (patch)
treef3f9442cb293bd89e59b994eadd841016df53d8c /tools
parent50e34c90a68abd5bd1a457b4c5006fde71644132 (diff)
downloadbuild-391562eb1166e2badbb236920cf15782551cec0e.zip
build-391562eb1166e2badbb236920cf15782551cec0e.tar.gz
build-391562eb1166e2badbb236920cf15782551cec0e.tar.bz2
releasetools: Don't extract BOOTABLE_IMAGES when signing target files
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
Diffstat (limited to 'tools')
-rwxr-xr-xtools/releasetools/sign_target_files_apks.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/releasetools/sign_target_files_apks.py b/tools/releasetools/sign_target_files_apks.py
index 632c36f..ed7a4b7 100755
--- a/tools/releasetools/sign_target_files_apks.py
+++ b/tools/releasetools/sign_target_files_apks.py
@@ -178,6 +178,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)