From 5d5c33aba60e2fea9eacedd3bc93250f3acbf008 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Tue, 25 Jul 2023 06:29:11 -0400 Subject: [PATCH] fix: adjust helper files to include system property sets (#3215) --- scripts/linux/apktool | 2 +- scripts/osx/apktool | 2 +- scripts/windows/apktool.bat | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/linux/apktool b/scripts/linux/apktool index cbfc1b71..efbe419f 100755 --- a/scripts/linux/apktool +++ b/scripts/linux/apktool @@ -53,7 +53,7 @@ javaOpts="" # line and adjust the value accordingly. Use "java -X" for a list of options # you can pass here. # -javaOpts="-Xmx512M -Dfile.encoding=utf-8" +javaOpts="-Xmx512M -Dfile.encoding=utf-8 -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true" # Alternatively, this will extract any parameter "-Jxxx" from the command line # and pass them to Java (instead of to dx). This makes it possible for you to diff --git a/scripts/osx/apktool b/scripts/osx/apktool index 1aedb822..0d226244 100755 --- a/scripts/osx/apktool +++ b/scripts/osx/apktool @@ -53,7 +53,7 @@ javaOpts="" # line and adjust the value accordingly. Use "java -X" for a list of options # you can pass here. # -javaOpts="-Xmx512M -Dfile.encoding=utf-8" +javaOpts="-Xmx512M -Dfile.encoding=utf-8 -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true" # Alternatively, this will extract any parameter "-Jxxx" from the command line # and pass them to Java (instead of to dx). This makes it possible for you to diff --git a/scripts/windows/apktool.bat b/scripts/windows/apktool.bat index f0d14869..06cbd383 100755 --- a/scripts/windows/apktool.bat +++ b/scripts/windows/apktool.bat @@ -36,7 +36,7 @@ if "%ATTR:~0,1%"=="-" if "%~x1"==".apk" ( ) :load -"%java_exe%" -jar -Duser.language=en -Dfile.encoding=UTF8 "%~dp0%BASENAME%%max%.jar" %fastCommand% %* +"%java_exe%" -jar -Duser.language=en -Dfile.encoding=UTF8 -Djdk.util.zip.disableZip64ExtraFieldValidation=true -Djdk.nio.zipfs.allowDotZipEntry=true "%~dp0%BASENAME%%max%.jar" %fastCommand% %* rem Pause when ran non interactively for /f "tokens=2" %%# in ("%cmdcmdline%") do if /i "%%#" equ "/c" pause