Package soot.jimple.infoflow.android
Class InfoflowAndroidConfiguration
java.lang.Object
soot.jimple.infoflow.InfoflowConfiguration
soot.jimple.infoflow.android.InfoflowAndroidConfiguration
Configuration class for the Android-specific data flow analysis
- Author:
- Steven Arzt
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe configuration for the various files required for the data flow analysisstatic enumEnumeration containing the supported callback analyzersstatic classThe configuration for analyzing callbacks in Android appsstatic classThe configuration for the inter-component data flow analysisstatic classThe configuration for the source and sink managerNested classes/interfaces inherited from class soot.jimple.infoflow.InfoflowConfiguration
InfoflowConfiguration.AccessPathConfiguration, InfoflowConfiguration.AliasingAlgorithm, InfoflowConfiguration.CallbackSourceMode, InfoflowConfiguration.CallgraphAlgorithm, InfoflowConfiguration.CategoryMode, InfoflowConfiguration.CodeEliminationMode, InfoflowConfiguration.DataFlowDirection, InfoflowConfiguration.DataFlowSolver, InfoflowConfiguration.ImplicitFlowMode, InfoflowConfiguration.LayoutMatchingMode, InfoflowConfiguration.OutputConfiguration, InfoflowConfiguration.PathBuildingAlgorithm, InfoflowConfiguration.PathConfiguration, InfoflowConfiguration.PathReconstructionMode, InfoflowConfiguration.SolverConfiguration, InfoflowConfiguration.SootIntegrationMode, InfoflowConfiguration.SourceSinkFilterMode, InfoflowConfiguration.SparsePropagationStrategy, InfoflowConfiguration.StaticFieldTrackingMode -
Field Summary
Fields inherited from class soot.jimple.infoflow.InfoflowConfiguration
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the configuration for the input files (target APK, Android platform directory, etc.)Gets the configuration that defines how callbacks shall be handledstatic booleanGets if Flowdroid should create new Methods when creating the Activity Entry pointGets the configuration for the inter-component data flow analysisbooleanGets whether FlowDroid shall merge all dex files in the APK to get a full picture of the appbooleanGets whether FlowDroid shall analyze one component at a time instead of generating one biug dummy main method containing all componentsbooleanReturns whether FlowDroid should perform a simple constant propagation prior to the data flow analysis.Gets the configuration of the source/sink managerinthashCode()voidmerge(InfoflowConfiguration config) static voidsetCreateActivityEntryMethods(boolean createActivityEntryMethods) Sets if Flow Flowdroid should create new Methods when creating the Activity Entry pointvoidsetMergeDexFiles(boolean mergeDexFiles) Sets whether FlowDroid shall merge all dex files in the APK to get a full picture of the appvoidsetOneComponentAtATime(boolean oneComponentAtATime) Sets whether FlowDroid shall analyze one component at a time instead of generating one big dummy main method containing all componentsvoidsetPerformConstantPropagation(boolean value) Sets whether FlowDroid should perform a simple constant propagation prior to the data flow analysis.Methods inherited from class soot.jimple.infoflow.InfoflowConfiguration
getAccessPathConfiguration, getAdditionalFlowsEnabled, getAliasingAlgorithm, getBaseDirectory, getCallgraphAlgorithm, getCodeEliminationMode, getDataFlowDirection, getDataFlowTimeout, getEnableArraySizeTainting, getEnableArrayTracking, getEnableExceptionTracking, getEnableInstanceOfTainting, getEnableLineNumbers, getEnableOriginalNames, getEnableReflection, getEnableTypeChecking, getExcludeSootLibraryClasses, getFilterConditionalSinks, getFlowSensitiveAliasing, getIgnoreFlowsInSystemPackages, getImplicitFlowMode, getIncrementalResultReporting, getInspectSinks, getInspectSources, getLogSourcesAndSinks, getMaxAliasingBases, getMaxThreadNum, getMemoryThreshold, getOneResultPerAccessPath, getOneSourceAtATime, getOutputConfiguration, getPathAgnosticResults, getPathConfiguration, getPreciseCollectionStrategy, getSolverConfiguration, getSootIntegrationMode, getStaticFieldTrackingMode, getStopAfterFirstFlow, getStopAfterFirstKFlows, getWriteOutputFiles, isPatchInvokeDynamicInstructions, isTaintAnalysisEnabled, printSummary, setAdditionalFlowsEnabled, setAliasingAlgorithm, setBaseDirectory, setCallgraphAlgorithm, setCodeEliminationMode, setDataFlowDirection, setDataFlowTimeout, setEnableArraySizeTainting, setEnableArrayTracking, setEnableExceptionTracking, setEnableInstanceOfTainting, setEnableLineNumbers, setEnableOriginalNames, setEnableReflection, setEnableTypeChecking, setExcludeSootLibraryClasses, setFilterConditionalSinks, setFlowSensitiveAliasing, setIgnoreFlowsInSystemPackages, setImplicitFlowMode, setIncrementalResultReporting, setInspectSinks, setInspectSources, setLogSourcesAndSinks, setMaxAliasingBases, setMaxThreadNum, setMemoryThreshold, setOneResultPerAccessPath, setOneSourceAtATime, setPatchInvokeDynamicInstructions, setPathAgnosticResults, setPreciseCollectionTracking, setSootIntegrationMode, setStaticFieldTrackingMode, setStopAfterFirstFlow, setStopAfterFirstKFlows, setTaintAnalysisEnabled, setWriteOutputFiles
-
Constructor Details
-
InfoflowAndroidConfiguration
public InfoflowAndroidConfiguration()
-
-
Method Details
-
merge
- Overrides:
mergein classInfoflowConfiguration
-
getCallbackConfig
Gets the configuration that defines how callbacks shall be handled- Returns:
- The configuration of the callback analyzer
-
getSourceSinkConfig
Gets the configuration of the source/sink manager- Overrides:
getSourceSinkConfigin classInfoflowConfiguration- Returns:
- The configuration of the source/sink manager
-
getIccConfig
Gets the configuration for the inter-component data flow analysis- Returns:
- The configuration for the inter-component data flow analysis
-
getAnalysisFileConfig
Gets the configuration for the input files (target APK, Android platform directory, etc.)- Returns:
- The input file configuration
-
setOneComponentAtATime
public void setOneComponentAtATime(boolean oneComponentAtATime) Sets whether FlowDroid shall analyze one component at a time instead of generating one big dummy main method containing all components- Parameters:
oneComponentAtATime- True if FlowDroid shall analyze one component at a time, otherwise false
-
getOneComponentAtATime
public boolean getOneComponentAtATime()Gets whether FlowDroid shall analyze one component at a time instead of generating one biug dummy main method containing all components- Returns:
- True if FlowDroid shall analyze one component at a time, otherwise false
-
getMergeDexFiles
public boolean getMergeDexFiles()Gets whether FlowDroid shall merge all dex files in the APK to get a full picture of the app- Returns:
- True if FlowDroid shall merge all dex files in the APK, otherwise false
-
setMergeDexFiles
public void setMergeDexFiles(boolean mergeDexFiles) Sets whether FlowDroid shall merge all dex files in the APK to get a full picture of the app- Parameters:
mergeDexFiles- True if FlowDroid shall merge all dex files in the APK, otherwise false
-
getCreateActivityEntryMethods
public static boolean getCreateActivityEntryMethods()Gets if Flowdroid should create new Methods when creating the Activity Entry point- Returns:
- true/false
-
setCreateActivityEntryMethods
public static void setCreateActivityEntryMethods(boolean createActivityEntryMethods) Sets if Flow Flowdroid should create new Methods when creating the Activity Entry point- Parameters:
createActivityEntryMethods- boolean that is true if Methods should be created
-
hashCode
public int hashCode()- Overrides:
hashCodein classInfoflowConfiguration
-
equals
- Overrides:
equalsin classInfoflowConfiguration
-
getPerformConstantPropagation
public boolean getPerformConstantPropagation()Returns whether FlowDroid should perform a simple constant propagation prior to the data flow analysis.- Returns:
- whether to perform constant propagation
-
setPerformConstantPropagation
public void setPerformConstantPropagation(boolean value) Sets whether FlowDroid should perform a simple constant propagation prior to the data flow analysis.- Parameters:
value- true if constants should be propagated
-