<div dir="ltr">Hi Eric,<br><div><br></div><div>Thank you for the answer. WIthout the -w options I receive the following:</div><div><br></div><div><div>Exception in thread &quot;main&quot; java.lang.RuntimeException: This operation requires resolving level SIGNATURES but android.animation.PropertyValuesHolder is at resolving level HIERARCHY</div><div>If you are extending Soot, try to add the following call before calling soot.Main.main(..):</div><div>Scene.v().addBasicClass(android.animation.PropertyValuesHolder,SIGNATURES);</div><div>Otherwise, try whole-program mode (-w).</div></div><div><br></div><div>If I add the above, it keeps complaining about other classes.</div><div><br></div><div>Best,</div><div>José</div></div><br><div class="gmail_quote">Bodden, Eric &lt;<a href="mailto:eric.bodden@sit.fraunhofer.de">eric.bodden@sit.fraunhofer.de</a>&gt; schrieb am Di., 12. Mai 2015 um 03:45 Uhr:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jose.<br>
<br>
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.<br>
<br>
Cheers,<br>
Eric<br>
<br>
<br>
<br>
&gt; On 11.05.2015, at 17:43, José Leal Domingues Neto &lt;<a href="mailto:dominguesn@gmail.com" target="_blank">dominguesn@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hello everyone,<br>
&gt;<br>
&gt; I&#39;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&#39;m receive a Java Heap space error or a GC error even after giving more memory to soot:<br>
&gt; - Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded<br>
&gt;<br>
&gt; I suppose that Soot is trying to analyse *everything* inside the app, which uses a lot of Libs. How can I avoid this? I&#39;ve tried setting the entry point (<a href="http://www.bodden.de/2012/07/26/soot-custom-entry-points/" target="_blank">http://www.bodden.de/2012/07/26/soot-custom-entry-points/</a>) of the jtp transformation, but it still gives me the same error.<br>
&gt;<br>
&gt; Furthermore, I now noticed that its inferring a main-class from a lib I&#39;m using: &quot;No main class given. Inferred org.apache.commons.math3.util.FastMath&#39; as main class.&quot;, how can I set this correctly? Is the error related?<br>
&gt;<br>
&gt; This is my command-line: java -Xmx1024M -Xms1024M -XX:PermSize=2048m -XX:MaxPermSize=2048m -cp &quot;~/TestingSoot/lib/*:../../*:.&quot;  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<br>
&gt;<br>
&gt; Thank you for your help,<br>
&gt; José<br>
&gt; _______________________________________________<br>
&gt; Soot-list mailing list<br>
&gt; <a href="mailto:Soot-list@CS.McGill.CA" target="_blank">Soot-list@CS.McGill.CA</a><br>
&gt; <a href="https://mailman.CS.McGill.CA/mailman/listinfo/soot-list" target="_blank">https://mailman.CS.McGill.CA/mailman/listinfo/soot-list</a><br>
<br>
--<br>
Prof. Eric Bodden, Ph.D., <a href="http://sse.ec-spride.de/" target="_blank">http://sse.ec-spride.de/</a> <a href="http://bodden.de/" target="_blank">http://bodden.de/</a><br>
Head of Secure Software Engineering at Fraunhofer SIT, TU Darmstadt and EC SPRIDE<br>
Tel: +49 6151 16-75422    Fax: +49 6151 869-127<br>
Room B5.11, Fraunhofer SIT, Rheinstraße 75, 64295 Darmstadt<br>
<br>
</blockquote></div>