aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao2019-01-11 14:37:35 -0600
committerTao Bao2019-01-11 14:39:31 -0600
commit33bf268e0b031d140a8aa14c3e333d29522a7b20 (patch)
tree894d99451d87f5059a464eb96871eda5c53454ec /tools/releasetools
parent2e77d4ee2c0f8f8a7fa815823b6563bbe37670db (diff)
downloadplatform-build-33bf268e0b031d140a8aa14c3e333d29522a7b20.tar.gz
platform-build-33bf268e0b031d140a8aa14c3e333d29522a7b20.tar.xz
platform-build-33bf268e0b031d140a8aa14c3e333d29522a7b20.zip
releasetools: Skip copying split super images while signing.
Bug: 122608028 Test: Run sign_target_files_apks.py on a target-files zip that has split super images (e.g. OTA/super_system.img). Change-Id: Iaf7263790961a897ea3f339f5af6b18cf253b946
Diffstat (limited to 'tools/releasetools')
-rwxr-xr-xtools/releasetools/sign_target_files_apks.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/releasetools/sign_target_files_apks.py b/tools/releasetools/sign_target_files_apks.py
index de3ead61c..a07f67fd4 100755
--- a/tools/releasetools/sign_target_files_apks.py
+++ b/tools/releasetools/sign_target_files_apks.py
@@ -309,6 +309,10 @@ def ProcessTargetFiles(input_tf_zip, output_tf_zip, misc_info,
309 if filename.startswith("IMAGES/"): 309 if filename.startswith("IMAGES/"):
310 continue 310 continue
311 311
312 # Skip split super images, which will be re-generated during signing.
313 if filename.startswith("OTA/") and filename.endswith(".img"):
314 continue
315
312 data = input_tf_zip.read(filename) 316 data = input_tf_zip.read(filename)
313 out_info = copy.copy(info) 317 out_info = copy.copy(info)
314 (is_apk, is_compressed, should_be_skipped) = GetApkFileInfo( 318 (is_apk, is_compressed, should_be_skipped) = GetApkFileInfo(