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