OSDN Git Service

releasetools: Update the path to /default.prop for A/B devices.
authorTao Bao <tbao@google.com>
Thu, 11 Aug 2016 18:00:58 +0000 (11:00 -0700)
committerTao Bao <tbao@google.com>
Thu, 11 Aug 2016 20:40:59 +0000 (13:40 -0700)
commit145cb2eaef6abbc990d7c6917acbe81c4f651321
treee709f2c2ce3603d3ab01ac87cc2d0be6db796d59
parent9b9520018b8d1eb185f6ecebf102cb6765763390
releasetools: Update the path to /default.prop for A/B devices.

On A/B devices (i.e. system_root_image="true"), /default.prop is
packaged at ROOT/default.prop (as opposed to BOOT/RAMDISK/default.prop
for non-A/B devices). Update the path so that we handle properties like
ro.bootimage.build.fingerprint properly.

The one for recovery is not affected, which stays at
BOOT/RAMDISK/default.prop for A/B devices and gets updated correctly.

Bug: 30811237
Test: Verify the property in the generated signed-TF.zip.
Change-Id: Id201a042d7ea988a64f89c6d04f43326a9851e27
(cherry picked from commit 28e2fa1726f3434417e2f0d5f1a810cbd657a5e3)
tools/releasetools/sign_target_files_apks.py