Remove all ZIP64LIMIT hack

In the old days, we hacked values of ZIP64LIMIT to get around size
limitations of non-zip64 supported zip files. Now that we switched to
python3 + zip64, there's no point in keeping those hacks.

Test: th
Bug: 255683436
Change-Id: I913db33dad5503736c68a7a1f1321aa952019f60
This commit is contained in:
Kelvin Zhang
2022-10-26 12:49:03 -07:00
parent 1de1788dda
commit 37a4290909
9 changed files with 67 additions and 101 deletions

View File

@@ -901,7 +901,7 @@ def WriteOtacerts(output_zip, filename, keys):
certs_zip = zipfile.ZipFile(temp_file, "w", allowZip64=True)
for k in keys:
common.ZipWrite(certs_zip, k)
common.ZipClose(certs_zip)
certs_zip.close()
common.ZipWriteStr(output_zip, filename, temp_file.getvalue())
@@ -1529,8 +1529,8 @@ def main(argv):
platform_api_level, codename_to_api_level_map,
compressed_extension)
common.ZipClose(input_zip)
common.ZipClose(output_zip)
input_zip.close()
output_zip.close()
if OPTIONS.vendor_partitions and OPTIONS.vendor_otatools:
BuildVendorPartitions(args[1])