am 265d9aeb
: releasetools: Update the fingerprint when signing.
* commit '265d9aeb622c5829787b16b903f028cacaa99c18': releasetools: Update the fingerprint when signing.
This commit is contained in:
@@ -203,11 +203,13 @@ def ProcessTargetFiles(input_tf_zip, output_tf_zip, misc_info,
|
|||||||
common.ZipWriteStr(output_tf_zip, out_info, data)
|
common.ZipWriteStr(output_tf_zip, out_info, data)
|
||||||
elif info.filename in ("SYSTEM/build.prop",
|
elif info.filename in ("SYSTEM/build.prop",
|
||||||
"VENDOR/build.prop",
|
"VENDOR/build.prop",
|
||||||
|
"BOOT/RAMDISK/default.prop",
|
||||||
"RECOVERY/RAMDISK/default.prop"):
|
"RECOVERY/RAMDISK/default.prop"):
|
||||||
print "rewriting %s:" % (info.filename,)
|
print "rewriting %s:" % (info.filename,)
|
||||||
new_data = RewriteProps(data, misc_info)
|
new_data = RewriteProps(data, misc_info)
|
||||||
common.ZipWriteStr(output_tf_zip, out_info, new_data)
|
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)
|
write_to_temp(info.filename, info.external_attr, new_data)
|
||||||
elif info.filename.endswith("mac_permissions.xml"):
|
elif info.filename.endswith("mac_permissions.xml"):
|
||||||
print "rewriting %s with new keys." % (info.filename,)
|
print "rewriting %s with new keys." % (info.filename,)
|
||||||
@@ -310,6 +312,10 @@ def RewriteProps(data, misc_info):
|
|||||||
pieces = value.split("/")
|
pieces = value.split("/")
|
||||||
pieces[-1] = EditTags(pieces[-1])
|
pieces[-1] = EditTags(pieces[-1])
|
||||||
value = "/".join(pieces)
|
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":
|
elif key == "ro.build.description":
|
||||||
pieces = value.split(" ")
|
pieces = value.split(" ")
|
||||||
assert len(pieces) == 5
|
assert len(pieces) == 5
|
||||||
|
Reference in New Issue
Block a user