From f92f7f046a07b79ce768692c7500cc74f733aa55 Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Fri, 14 Apr 2023 21:32:54 +0000 Subject: Revert "Remove all ZIP64LIMIT hack" This reverts commit 37a4290909717577731bc53c8f4ccd72c4d4d5d5. Reason for revert: b/278156419 Change-Id: I67ea667619a9623be849d911993010ef0f0bfd88 --- tools/releasetools/apex_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/releasetools/apex_utils.py') diff --git a/tools/releasetools/apex_utils.py b/tools/releasetools/apex_utils.py index 22992e8b1b..d7b0ba259b 100644 --- a/tools/releasetools/apex_utils.py +++ b/tools/releasetools/apex_utils.py @@ -415,7 +415,7 @@ def SignUncompressedApex(avbtool, apex_file, payload_key, container_key, apex_zip = zipfile.ZipFile(apex_file, 'a', allowZip64=True) common.ZipWrite(apex_zip, payload_file, arcname=APEX_PAYLOAD_IMAGE) common.ZipWrite(apex_zip, payload_public_key, arcname=APEX_PUBKEY) - apex_zip.close() + common.ZipClose(apex_zip) # 3. Sign the APEX container with container_key. signed_apex = common.MakeTempFile(prefix='apex-container-', suffix='.apex') -- cgit v1.2.3-59-g8ed1b