diff options
author | Brint E. Kriebel <bekit@cyngn.com> | 2016-02-10 15:54:05 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-02-10 15:59:47 -0800 |
commit | 391562eb1166e2badbb236920cf15782551cec0e (patch) | |
tree | f3f9442cb293bd89e59b994eadd841016df53d8c /tools | |
parent | 50e34c90a68abd5bd1a457b4c5006fde71644132 (diff) | |
download | build-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-x | tools/releasetools/sign_target_files_apks.py | 3 |
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) |