[Soot-list] Excluding support classes in an APK file

Mian Wan mianwan at usc.edu
Mon Apr 24 14:42:52 EDT 2017


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