From 1de1788ddac8fef6fbe99961c6e8452742edb008 Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Wed, 26 Oct 2022 12:29:10 -0700 Subject: [PATCH] Enable zip64 support in build image script Images are getting bigger each year, we need zip64 support to store >4GB files in .zip archive. Test: th Bug: 255683436 Change-Id: I9adbefa5ec72e357b02e46d6e629c054d466ddd7 --- tools/releasetools/img_from_target_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/releasetools/img_from_target_files.py b/tools/releasetools/img_from_target_files.py index 76da89c865..f8bdd81ce6 100755 --- a/tools/releasetools/img_from_target_files.py +++ b/tools/releasetools/img_from_target_files.py @@ -173,7 +173,7 @@ def RebuildAndWriteSuperImages(input_file, output_file): logger.info('Writing super.img to archive...') with zipfile.ZipFile( output_file, 'a', compression=zipfile.ZIP_DEFLATED, - allowZip64=not OPTIONS.sparse_userimages) as output_zip: + allowZip64=True) as output_zip: common.ZipWrite(output_zip, super_file, 'super.img')