Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetupApplication app = new SetupApplication
- (androidPlatformPath, appPath + '/' + file.getName());
- app.calculateSourcesSinksEntrypoints(new HashSet<AndroidMethod>(), new HashSet<AndroidMethod>());
- soot.G.reset();
- Options.v().set_src_prec(Options.src_prec_apk);
- Options.v().set_process_dir(Collections.singletonList(appPath + '/' + file.getName()));
- Options.v().set_android_jars(androidPlatformPath);
- Options.v().set_whole_program(true);
- Options.v().set_allow_phantom_refs(true);
- Options.v().set_output_format(Options.output_format_class);
- Options.v().setPhaseOption("cg.spark", "on");
- Scene.v().loadNecessaryClasses();
- SootMethod dummyMain = app.getEntryPointCreator().createDummyMain();
- Options.v().set_main_class(dummyMain.getSignature());
- Scene.v().setEntryPoints(Collections.singletonList(dummyMain));
- PackManager.v().runPacks();
- icfg = new JimpleBasedInterproceduralCFG();
- Iterator<Unit> icfgIterator = icfg.getCallsFromWithin(dummyMain).iterator();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement