diff options
author | Tao Bao <tbao@google.com> | 2015-09-12 23:07:41 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-09-12 23:07:41 +0000 |
commit | fbecca3143e8046b416791f8c51aff353bec58b1 (patch) | |
tree | bc309323bbc9db7c6136da69af101b5304291732 /tools | |
parent | 8eb3ac18adb4e8e44b1b984eb0b40f6b20adeae8 (diff) | |
parent | e35d00d019aaff92b5e20b86d9c3b8222c0c946a (diff) | |
download | build-fbecca3143e8046b416791f8c51aff353bec58b1.zip build-fbecca3143e8046b416791f8c51aff353bec58b1.tar.gz build-fbecca3143e8046b416791f8c51aff353bec58b1.tar.bz2 |
am e35d00d0: am 265d9aeb: releasetools: Update the fingerprint when signing.
* commit 'e35d00d019aaff92b5e20b86d9c3b8222c0c946a':
releasetools: Update the fingerprint when signing.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/releasetools/sign_target_files_apks.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/releasetools/sign_target_files_apks.py b/tools/releasetools/sign_target_files_apks.py index ec49112..60d62c2 100755 --- a/tools/releasetools/sign_target_files_apks.py +++ b/tools/releasetools/sign_target_files_apks.py @@ -203,11 +203,13 @@ def ProcessTargetFiles(input_tf_zip, output_tf_zip, misc_info, common.ZipWriteStr(output_tf_zip, out_info, data) elif info.filename in ("SYSTEM/build.prop", "VENDOR/build.prop", + "BOOT/RAMDISK/default.prop", "RECOVERY/RAMDISK/default.prop"): print "rewriting %s:" % (info.filename,) new_data = RewriteProps(data, misc_info) common.ZipWriteStr(output_tf_zip, out_info, new_data) - if info.filename == "RECOVERY/RAMDISK/default.prop": + if info.filename in ("BOOT/RAMDISK/default.prop", + "RECOVERY/RAMDISK/default.prop"): write_to_temp(info.filename, info.external_attr, new_data) elif info.filename.endswith("mac_permissions.xml"): print "rewriting %s with new keys." % (info.filename,) @@ -310,6 +312,10 @@ def RewriteProps(data, misc_info): pieces = value.split("/") pieces[-1] = EditTags(pieces[-1]) value = "/".join(pieces) + elif key == "ro.bootimage.build.fingerprint": + pieces = value.split("/") + pieces[-1] = EditTags(pieces[-1]) + value = "/".join(pieces) elif key == "ro.build.description": pieces = value.split(" ") assert len(pieces) == 5 |