From 1af866c2394a6efdf8a77cc2476bce7272498895 Mon Sep 17 00:00:00 2001 From: Pavel Valenta Date: Wed, 18 Apr 2012 01:06:51 +0800 Subject: [PATCH] Increase Java VM maximum heap size to 1024MB I got "java.lang.OutOfMemoryError: Java heap space" error when I'm building own Kang (galaxys2 for example) with Gapps included. Increase maximum heap size to 1024MB will solve it. --- tools/squisher | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/squisher b/tools/squisher index ce5e9161..c6640c52 100755 --- a/tools/squisher +++ b/tools/squisher @@ -155,7 +155,7 @@ printf "Zipping package..." echo printf "Signing package..." SECURITYDIR=$ANDROID_BUILD_TOP/build/target/product/security -java -Xmx512m \ +java -Xmx1024m \ -jar $ANDROID_BUILD_TOP/out/host/$OUT_TARGET_HOST/framework/signapk.jar \ -w $SECURITYDIR/testkey.x509.pem $SECURITYDIR/testkey.pk8 \ $REPACK/update.zip $OUTFILE