Skip to content

Commit

Permalink
Add: sootIROutput option implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
1bitbool committed Jul 24, 2023
1 parent 6f8f088 commit e2616b4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CrashTracker/src/main/java/com/iscas/crashtracker/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public static void startAnalyze() {
log.info("Analyzing " + MyConfig.getInstance().getAppName() + " Finish...\n");
log.info(MyConfig.getInstance().getClient() + " time = " + (endTime - startTime) / 1000 + " seconds");
log.info("Success! Please see files in the result folder "+ MyConfig.getInstance().getResultFolder());

if (MyConfig.getInstance().getOutputIR()) {
new IROutputClient().start();
}
}

/**
Expand Down Expand Up @@ -177,6 +181,9 @@ private static void analyzeArgs(CommandLine mCmd) {
MyConfig.getInstance().setExceptionFolderPath(mCmd.getOptionValue("exceptionInput","Files"));

MyConfig.getInstance().setResultFolder(mCmd.getOptionValue("outputDir", "outputDir") + File.separator);
if (mCmd.hasOption("sootOutput")) {
MyConfig.getInstance().setOutputIR(true);
}

if(mCmd.getOptionValue("frameworkVersion")!=null) {
MyConfig.getInstance().setAndroidOSVersion(mCmd.getOptionValue("frameworkVersion"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public class MyConfig {
private String AndroidOSVersion = null;

private String Strategy="";
private boolean outputIR = false;

private MyConfig() {
}
Expand Down Expand Up @@ -273,5 +274,11 @@ public void setPermissionFilePath(String permissionFilePath) {
PermissionFilePath = permissionFilePath;
}

public void setOutputIR(boolean outputIR) {
this.outputIR = outputIR;
}

public boolean getOutputIR() {
return outputIR;
}
}

0 comments on commit e2616b4

Please sign in to comment.