From ddf0c379bea4bf55c6e605a6a4020630651084a8 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Sat, 20 Jun 2020 18:03:46 +0800 Subject: [PATCH] Fix build --- build.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index 8d52d9125..68f6acb1b 100755 --- a/build.py +++ b/build.py @@ -355,8 +355,8 @@ def build_apk(args, module): tmp = f.name # AAPT2 optimization - execv([aapt2, 'optimize', '-o', tmp, '--enable-resource-obfuscation', - '--enable-resource-path-shortening', source]) + execv([aapt2, 'optimize', '-o', tmp, '--collapse-resource-names', + '--shorten-resource-paths', source]) # Recompress everything just to piss people off with zipfile.ZipFile(source, 'w', compression=zipfile.ZIP_DEFLATED) as zout: @@ -368,7 +368,9 @@ def build_apk(args, module): execv([zipalign, '-f', '4', source, target]) # Sign APK - execv([apksigner, 'sign', '--v1-signer-name', 'CERT', + execv([apksigner, 'sign', + '--v4-signing-enabled', 'false', + '--v1-signer-name', 'CERT', '--ks', config['keyStore'], '--ks-pass', f'pass:{config["keyStorePass"]}', '--ks-key-alias', config['keyAlias'],