Commit 93fc589c authored by Andrew Grieve's avatar Andrew Grieve Committed by Commit Bot

Android: Fix native libraries not being store compressed

Was broken by b2706770 where the
zipfile.ZIP_DEFLATED was removed from when creating the ZipFile
object.

Rather than add it back, this fixes the problem by being explicit about
compression for every file added.

Bug: 1049461
Change-Id: I670d733792b5cf4af5fb7821fcc7efe9a670e33e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2040954
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Peter Wen <wnwen@chromium.org>
Reviewed-by: default avatarPeter Wen <wnwen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738949}
parent 1f5a4e58
......@@ -226,7 +226,7 @@ def _AddNativeLibraries(out_apk, native_libs, android_abi, uncompress,
for path in native_libs:
basename = os.path.basename(path)
compress = None
compress = True
if uncompress and os.path.splitext(basename)[1] == '.so':
# Trichrome
if has_crazy_linker and has_monochrome:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment