<div dir="ltr"><div><div><div><div><div>Hi,<br></div>I am completely new to soot instrumentation. I am playing with soot for android. I was wondering how can I add code to method entry points, for example say there is a method named onClick, i want to add the following code there,<br></div>MyStaticCLass.myFunc(param 1, param 2);<br><br><br></div>And finally I want to change the super classes of some classes. For example if there are classes that extend Activity super class I want them to extend MyActivity instead.<br><br></div>I had followed Eric Bodden&#39;s instrumentation tutorial. <br><a href="http://www.bodden.de/2013/01/08/soot-android-instrumentation/">http://www.bodden.de/2013/01/08/soot-android-instrumentation/</a><br><br><br>But if I change the onDraw to onClick or onCreate nothing happens, that is no HELLO is printed inside onCreate. I believe it only puts Hello after the invoke code not inside that particular method.<br></div>SO, I was thinking can you guys show me a simple example with such instrumentation?<br clear="all"><div><div><div><div><div><div><div><div><div class="gmail_signature">--<br>Regards,<br>Tanzirul Azim <br><br></div></div>
</div></div></div></div></div></div></div></div>