Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Set coffi to force run in single thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
hluwa committed Jun 21, 2021
1 parent 326cd10 commit 0f66385
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/PrivacyDog.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,16 @@ private static void setupSoot(String taskPath) throws IOException {
Options.v().set_ignore_resolution_errors(true);
Options.v().set_no_bodies_for_excluded(true);
Options.v().set_whole_program(false);
Options.v().set_coffi(true);
Options.v().set_throw_analysis(Options.throw_analysis_dalvik);
Options.v().set_soot_classpath(Scene.defaultJavaClassPath());
Options.v().setPhaseOption("cg", "all-reachable:true");
Options.v().setPhaseOption("jb.dae", "enabled:false");
Options.v().setPhaseOption("jb.uce", "enabled:false");
Options.v().setPhaseOption("jj.dae", "enabled:false");
Options.v().setPhaseOption("jj.uce", "enabled:false");
Options.v().setPhaseOption("jtp.dae", "enabled:false");
Options.v().setPhaseOption("jtp.uce", "enabled:false");
if (taskPath.endsWith(".apk") || taskPath.endsWith(".dex")) {
Options.v().set_src_prec(Options.src_prec_apk);
Options.v().set_process_multiple_dex(true);
Expand Down Expand Up @@ -94,7 +97,6 @@ public static boolean isCodeFile(File file) {
}

public static void main(String[] args) {

CommandLineParser parser = new DefaultParser();
org.apache.commons.cli.Options options = new org.apache.commons.cli.Options();

Expand Down

0 comments on commit 0f66385

Please sign in to comment.