OSDN Git Service

Don't regenerate userdata.img when signing
authorTianjie Xu <xunchang@google.com>
Thu, 4 Aug 2016 02:21:52 +0000 (19:21 -0700)
committerTianjie Xu <xunchang@google.com>
Wed, 24 Aug 2016 19:50:35 +0000 (12:50 -0700)
commitb48589af571ec760bf1a57aa2dcd7ec031b7427e
tree25b3ea121a66c21e803c6812ab3ad05dd9e83c17
parentaba93cf736b927dc5312f233535360fcc92603e2
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
tools/releasetools/add_img_to_target_files.py
tools/releasetools/sign_target_files_apks.py