[Soot-list] Android instrumentation: No main class given. Inferred [..] as main class.

Bodden, Eric eric.bodden at sit.fraunhofer.de
Tue May 12 02:45:05 EDT 2015


Hi Jose.

Is there any reason for why you enable whole-program mode (using -w)? This instructs Soot to compute a call-graph and all, which takes up a lot of memory. For pure instrumentation this should be unnecessary.

Cheers,
Eric



> On 11.05.2015, at 17:43, José Leal Domingues Neto <dominguesn at gmail.com> wrote:
> 
> Hello everyone,
> 
> I'm trying to modify an android apk and everything was working fine until now. I suppose that the apk has grown too big (actually is not that much), and now I'm receive a Java Heap space error or a GC error even after giving more memory to soot:
> - Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
> 
> I suppose that Soot is trying to analyse *everything* inside the app, which uses a lot of Libs. How can I avoid this? I've tried setting the entry point (http://www.bodden.de/2012/07/26/soot-custom-entry-points/) of the jtp transformation, but it still gives me the same error.
> 
> Furthermore, I now noticed that its inferring a main-class from a lib I'm using: "No main class given. Inferred org.apache.commons.math3.util.FastMath' as main class.", how can I set this correctly? Is the error related?
> 
> This is my command-line: java -Xmx1024M -Xms1024M -XX:PermSize=2048m -XX:MaxPermSize=2048m -cp "~/TestingSoot/lib/*:../../*:."  AndroidInstrument -pp -android-jars /home/neto/adt-bundle-linux-x86_64-20140702/sdk/platforms/android-20 -process-dir ~/ClientSide/bin/ClientMain-debug.apk -allow-phantom-refs -w
> 
> Thank you for your help,
> José
> _______________________________________________
> Soot-list mailing list
> Soot-list at CS.McGill.CA
> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list

--
Prof. Eric Bodden, Ph.D., http://sse.ec-spride.de/ http://bodden.de/
Head of Secure Software Engineering at Fraunhofer SIT, TU Darmstadt and EC SPRIDE
Tel: +49 6151 16-75422    Fax: +49 6151 869-127
Room B5.11, Fraunhofer SIT, Rheinstraße 75, 64295 Darmstadt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20150512/a02c5a9c/attachment.bin 


More information about the Soot-list mailing list