[Soot-list] Instrumenting Android library classes

Steven Arzt Steven.Arzt at cased.de
Thu Sep 18 08:46:52 EDT 2014


Hi Peter,

 

You need an android.jar file containing the full implementation, the stub file from the Android SDK won’t do as it only contains method stubs and no real code. I’d recommend that you open the android.jar file in a decompiler such as JD GUI and look what you get – Soot can’t instrument what’s not there.

 

Alternatively, you can also go for the java source code files of the Android Open Source Project (AOSP).

 

Where did you get the dx’ed file from?

 

Best regards,

  Steven

 

Von: soot-list-bounces at CS.McGill.CA [mailto:soot-list-bounces at CS.McGill.CA] Im Auftrag von Peter Kim
Gesendet: Donnerstag, 18. September 2014 14:44
An: soot-list at cs.mcgill.ca
Betreff: [Soot-list] Instrumenting Android library classes

 

Hello,

 

Could a Soot expert please explain how to instrument Android library classes? I am trying to instrument a class within an android.* library package but it is not being picked up by Soot. It seems like Soot is trying to do the instrumentation using class files in android.jar, which I have been told actually does not contain all the classes and for many classes only contains the signatures, not method bodies. But if the instrumentation is done against jimple constructed from dx format, then I'm not sure why Soot is not able to instrument library classes since they must all be available in entirety in dx format.

 

Thank you.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20140918/0b6bef89/attachment.html 


More information about the Soot-list mailing list