[Soot-list] Instrumenting OSGi bundles

Eric Bodden eric.bodden at ec-spride.de
Mon Feb 6 10:45:44 EST 2012


Hi.

You don't really want to enable whole-program mode, so get rid of this
line here:

		Options.v().set_whole_program(true);

That means you can also drop this line:

> Scene.v().setMainClass(appclass);

> Just another question: in order to instrument the osgi classes that I need,
> I have to add a lot of .jar files to the class path, which I don't want to
> instrument. For that reason, I defined a list of packages to be excluded (as
> shown in the code above). However, it seems not to be working, as soot still
> analyzes them and put some instrumented classes in the sootoutput folder. Am
> I missing something or doing anything wrong?

That may also have to do with the fact that you currently have the
whole-program mode enabled. But I am not 100% sure on this one.

Eric


More information about the Soot-list mailing list