aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu2016-08-03 21:21:52 -0500
committerTianjie Xu2016-08-24 14:50:35 -0500
commitb48589af571ec760bf1a57aa2dcd7ec031b7427e (patch)
tree25b3ea121a66c21e803c6812ab3ad05dd9e83c17 /tools/releasetools/sign_target_files_apks.py
parentaba93cf736b927dc5312f233535360fcc92603e2 (diff)
downloadplatform-build-b48589af571ec760bf1a57aa2dcd7ec031b7427e.tar.gz
platform-build-b48589af571ec760bf1a57aa2dcd7ec031b7427e.tar.xz
platform-build-b48589af571ec760bf1a57aa2dcd7ec031b7427e.zip
Don't regenerate userdata.img when signing
The userdata.img and cache.img entries are not useful in signed builds; because fastboot doesn't look at these two entries in the *img.zip when flashing a device. And they aren't used elsewhere. Therefore, skip building the image files for them when signing the target files with sign_target_files_apks. Also, add an option "--is_signing" to avoid adding these two images when we call add_img_to_target_files. Change-Id: I39ba91a86d9a856d7d01771f6d1403dbf21f2011 Test: Run sign_target_files_apks on a target file and userdata/cache.img doesn't not generate. Bug: 30642470
Diffstat (limited to 'tools/releasetools/sign_target_files_apks.py')
-rwxr-xr-xtools/releasetools/sign_target_files_apks.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/releasetools/sign_target_files_apks.py b/tools/releasetools/sign_target_files_apks.py
index 0f20f826a..6d68be185 100755
--- a/tools/releasetools/sign_target_files_apks.py
+++ b/tools/releasetools/sign_target_files_apks.py
@@ -713,7 +713,9 @@ def main(argv):
713 common.ZipClose(input_zip) 713 common.ZipClose(input_zip)
714 common.ZipClose(output_zip) 714 common.ZipClose(output_zip)
715 715
716 add_img_to_target_files.AddImagesToTargetFiles(args[1]) 716 # Skip building userdata.img and cache.img when signing the target files.
717 new_args = ["--is_signing", args[1]]
718 add_img_to_target_files.main(new_args)
717 719
718 print "done." 720 print "done."
719 721