[Soot-list] How to inject a class to Android app via Soot?

Wontae Choi wtchoi at berkeley.edu
Fri Oct 9 21:22:26 EDT 2015


Hi all,

I am trying to instrument Android application using Soot. Is there a good way to inject content of class files (or Jar file) into the target application? I’ve written a module providing static methods performing actual tasks, and want to invoke those methods from the application via instrumentation.

So far, I’ve tried followings:
   - Adding the module's jar file to the soot class path
   - Invoking Scene,v().addBasicClass(“<fully qualified classname>”, SootClass.BODIES) to load the module.
   - Instrument the application to invoke the desired method in the module.

It seems that this configuration does not inject the actual module classes into the application, and I am getting following error message during the execution of the instrumented application:

   java.lang.NoClassDefFoundError: <fully qualified class name>

Can somebody explain what am I missing?

Best,
Wontae Choi


More information about the Soot-list mailing list