[Soot-list] Excluding support classes in an APK file
Mian Wan
mianwan at usc.edu
Mon Apr 24 20:28:20 EDT 2017
Hi Steven,
It works on Ubuntu 16.04, but it doesn’t work on my Mac OS + jdk 1.8.0_121. I’m not sure why.
Thanks for your help,
Mian
> On Apr 24, 2017, at 11:42 AM, Mian Wan <mianwan at usc.edu> wrote:
>
> Yes, I tried with the newest nightly build. By using the isExcluded method, it turned out no classes are excluded.
>
> Pack pack = PackManager.v().getPack(“wjtp");
> pack.add(new Transform(“wjtp.new", new SceneTransformer() {
> @Override
> protected void internalTransform(String phaseName, Map options) {
> Scene scene = Scene.v();
> HashSet<SootClass> appClasses = new HashSet<>();
> int numClasses = 0;
>
> for (SootClass c : scene.getClasses()) {
> numClasses++;
> if (c.isApplicationClass()) {
> if (c.getName().startsWith("android"))
> if (scene.isExcluded(c))
> System.out.println(c.getName() + "->" + scene.isExcluded(c));
> appClasses.add(c);
> }
> }
> System.out.print("All classes: " + numClasses);
> System.out.print(" App: " + appClasses.size());
> }
> }));
>
> // invoke Soot
> soot.Main.main(sootArgs);
>
>
>
>> On Apr 24, 2017, at 11:25 AM, Arzt, Steven <steven.arzt at sit.fraunhofer.de> wrote:
>>
>> isExcluded()
>
More information about the Soot-list
mailing list