[Android Software/Hacking General [Developers Only]] DrPhant0m:
I attempted to use both versions of the script (2 & 3) to sign a very large (~4GB) zip file containing a ton of apps. I actually created the zip in Titanium Backup (there's a function for this, and an option to use ZipSigner as well... but ZipSigner fails and empties the file out to 1kb or so). I also tried using ZIPme by JRummy and it fails as well.

I'm running Win7 x64 and I've got 16GB of RAM. the error I keep getting is Exception in thread "main" java.lang.OutOfMemoryError: Java heap space, and I've changed the java heap in the *.cmd file to 5000mb, 8000mb, and 16000mb all with the same results.

See below for CODE snippets of the failure, as well as a /JavaInfo for good measure in diagnosis.

Any help? Thanks!

Failures

#### using target folder

____ OK: signed files will be written to "D:\Desktop\sign-em-anywhere_3.0.160204\Output\"
#### CHECKING JAVA ....

#### parsing commandline again
.... processing sequentially: "D:\Desktop\sign-em-anywhere_3.0.160204\Input\unsigned32516update.zip"
____ 1 files provided by commandline

#### Checking files
.... Checking "D:\Desktop\sign-em-anywhere_3.0.160204\Input\unsigned32516update.zip" now...
.... OK: File found: "D:\Desktop\sign-em-anywhere_3.0.160204\Input\unsigned32516update.zip"
____ 1 GOOD: "D:\Desktop\sign-em-anywhere_3.0.160204\Input\unsigned32516update.zip"
____ SUCCESS: all file from commandline could be taken

#### Prozessing filelist
.... processing: D:\Desktop\sign-em-anywhere_3.0.160204\Input\unsigned32516update.zip
.... Signing "D:\Desktop\sign-em-anywhere_3.0.160204\Input\unsigned32516update.zip"....
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.io.ByteArrayOutputStream.grow(Unknown Source)
at java.io.ByteArrayOutputStream.ensureCapacity(Unknown Source)
at java.io.ByteArrayOutputStream.write(Unknown Source)
at java.util.zip.DeflaterOutputStream.deflate(Unknown Source)
at java.util.zip.DeflaterOutputStream.write(Unknown Source)
at java.util.zip.ZipOutputStream.write(Unknown Source)
at com.android.signapk.SignApk.copyFiles(SignApk.java:422)
at com.android.signapk.SignApk.main(SignApk.java:490)
____ ERROR: Java.exe did probably fail. CHECK THE LINES ABOVE FOR ERRORS
Press any key to continue . . .

Checking Java Version:

Enter option(s): /javainfo
Now calling: C:\sign-em-anywhere_3.0.160204\sign-em-anywhere.cmd /javainfo
#### CHECKING JAVA ....

#### USING JAVA DIRECTOCTORY: C:\Program Files\Java\jdk1.8.0_77\bin

#### Trying to query version...

java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

#### trying to query extended parameters...

-Xmixed mixed mode execution (default)
-Xint interpreted mode execution only
-Xbootclasspath:<directories and zip/jar files separated by ;>
set search path for bootstrap classes and resources
-Xbootclasspath/a:<directories and zip/jar files separated by ;>
append to end of bootstrap class path
-Xbootclasspath/p:<directories and zip/jar files separated by ;>
prepend in front of bootstrap class path
-Xdiag show additional diagnostic messages
-Xnoclassgc disable class garbage collection
-Xincgc enable incremental garbage collection
-Xloggc:<file> log GC status to a file with time stamps
-Xbatch disable background compilation
-Xms<size> set initial Java heap size
-Xmx<size> set maximum Java heap size
-Xss<size> set java thread stack size
-Xprof output cpu profiling data
-Xfuture enable strictest checks, anticipating future default
-Xrs reduce use of OS signals by Java/VM (see documentation)
-Xcheck:jni perform additional checks for JNI functions
-Xshare:off do not attempt to use shared class data
-Xshare:auto use shared class data if possible (default)
-Xshare:on require using shared class data, otherwise fail.
-XshowSettings show all settings and continue
-XshowSettings:all
show all settings and continue
-XshowSettings:vm show all vm related settings and continue
-XshowSettings:properties
show all property settings and continue
-XshowSettings:locale
show all locale related settings and continue

The -X options are non-standard and subject to change without notice.

(c) the.gangster 2016 [_build_3.0.160204_]
clickermode ended
Press any key to continue . . .