diff options
author | Justin Harrison <astyrrian@google.com> | 2015-02-13 18:47:51 +0000 |
---|---|---|
committer | Justin Harrison <astyrrian@google.com> | 2015-02-13 18:47:51 +0000 |
commit | 2de68bbbf49473c09d434a75e669345392e03240 (patch) | |
tree | 9af5d8cc6c2c64193cf650e755d95f3fdf381e3e /tools/releasetools/ota_from_target_files | |
parent | cd082d4bfe917b2e6b97436839cbbbc67c733c83 (diff) | |
download | build-2de68bbbf49473c09d434a75e669345392e03240.zip build-2de68bbbf49473c09d434a75e669345392e03240.tar.gz build-2de68bbbf49473c09d434a75e669345392e03240.tar.bz2 |
Revert "Allow system images larger than 2GiB."
This reverts commit cd082d4bfe917b2e6b97436839cbbbc67c733c83.
Change-Id: Ie63e1ba70d907d2849164871bc7ec71c245f7af9
Diffstat (limited to 'tools/releasetools/ota_from_target_files')
-rwxr-xr-x | tools/releasetools/ota_from_target_files | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/releasetools/ota_from_target_files b/tools/releasetools/ota_from_target_files index 6517bf3..945f11a 100755 --- a/tools/releasetools/ota_from_target_files +++ b/tools/releasetools/ota_from_target_files @@ -646,8 +646,10 @@ endif; WriteMetadata(metadata, output_zip) -def WritePolicyConfig(file_name, output_zip): - common.ZipWrite(output_zip, file_name, os.path.basename(file_name)) +def WritePolicyConfig(file_context, output_zip): + f = open(file_context, 'r'); + basename = os.path.basename(file_context) + common.ZipWriteStr(output_zip, basename, f.read()) def WriteMetadata(metadata, output_zip): |