diff options
author | Ricardo Cerqueira <cyanogenmod@cerqueira.org> | 2014-05-07 17:28:49 +0100 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-06 16:32:35 -0700 |
commit | 2370b42aa540719e562985e4c603d3ed7bce5e62 (patch) | |
tree | e11eec2775c76f20f1c138e21b25df916f7f4846 /tools/releasetools/ota_from_target_files | |
parent | d8eb47ddd8a1231e057a64b5f571bca2cbfd3f71 (diff) | |
download | build-2370b42aa540719e562985e4c603d3ed7bce5e62.zip build-2370b42aa540719e562985e4c603d3ed7bce5e62.tar.gz build-2370b42aa540719e562985e4c603d3ed7bce5e62.tar.bz2 |
Store the base64 release key in the OTA zips
This can be directly grepped in pre-existing package.xml tables
to make sure we're not trying to update to a differently signed
build
Change-Id: I7528a8e7c484ea9209cd665b9263328ae834586a
Diffstat (limited to 'tools/releasetools/ota_from_target_files')
-rwxr-xr-x | tools/releasetools/ota_from_target_files | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/releasetools/ota_from_target_files b/tools/releasetools/ota_from_target_files index 1662a1a..3201587 100755 --- a/tools/releasetools/ota_from_target_files +++ b/tools/releasetools/ota_from_target_files @@ -696,6 +696,8 @@ endif; script.AddToZip(input_zip, output_zip, input_path=OPTIONS.updater_binary) WriteMetadata(metadata, output_zip) + common.ZipWriteStr(output_zip, "META-INF/org/cyanogenmod/releasekey", + ""+input_zip.read("META/releasekey.txt")) def WritePolicyConfig(file_name, output_zip): common.ZipWrite(output_zip, file_name, os.path.basename(file_name)) @@ -1506,7 +1508,6 @@ endif; WriteMetadata(metadata, output_zip) - def main(argv): def option_handler(o, a): |