summaryrefslogtreecommitdiffstats
path: root/tools/releasetools/ota_from_target_files
diff options
context:
space:
mode:
authorBrint E. Kriebel <bekit@cyngn.com>2015-01-08 14:36:45 -0800
committerAdnan Begovic <adnan@cyngn.com>2015-10-06 18:04:02 -0700
commitf5839e68470e9d7dc4e6f251b8f75783625aa6d3 (patch)
tree89c053df1daa7f2bf02fffda282cc1c612a7725b /tools/releasetools/ota_from_target_files
parent8237ed7c2da901f7b9b4a10f4ae95e1bd01ab206 (diff)
downloadbuild-f5839e68470e9d7dc4e6f251b8f75783625aa6d3.zip
build-f5839e68470e9d7dc4e6f251b8f75783625aa6d3.tar.gz
build-f5839e68470e9d7dc4e6f251b8f75783625aa6d3.tar.bz2
releasetools: Store the build.prop file in the OTA zip
This file is often used to read information about the update contained in the OTA. Place it in the update so it can be used by scripts. The file is not added to the updater-script, so it will not be placed onto the actual system. Change-Id: I88044796cbe8f199ca02df2840fd944cba2c73fa
Diffstat (limited to 'tools/releasetools/ota_from_target_files')
-rwxr-xr-xtools/releasetools/ota_from_target_files3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/releasetools/ota_from_target_files b/tools/releasetools/ota_from_target_files
index a8274ca..3f2c8d2 100755
--- a/tools/releasetools/ota_from_target_files
+++ b/tools/releasetools/ota_from_target_files
@@ -736,6 +736,9 @@ endif;
script.AddToZip(input_zip, output_zip, input_path=OPTIONS.updater_binary)
WriteMetadata(metadata, output_zip)
+ common.ZipWriteStr(output_zip, "system/build.prop",
+ ""+input_zip.read("SYSTEM/build.prop"))
+
common.ZipWriteStr(output_zip, "META-INF/org/cyanogenmod/releasekey",
""+input_zip.read("META/releasekey.txt"))