Package soot.jimple.infoflow.android
Class SetupApplication.InPlaceInfoflow
java.lang.Object
soot.jimple.infoflow.AbstractInfoflow
soot.jimple.infoflow.Infoflow
soot.jimple.infoflow.android.SetupApplication.InPlaceInfoflow
- All Implemented Interfaces:
SetupApplication.IInPlaceInfoflow,IInfoflow,ITaintWrapperDataFlowAnalysis
- Enclosing class:
- SetupApplication
protected class SetupApplication.InPlaceInfoflow
extends Infoflow
implements SetupApplication.IInPlaceInfoflow
Specialized
Infoflow class that allows the data flow analysis to be
run inside an existing Soot instance- Author:
- Steven Arzt
-
Nested Class Summary
Nested classes/interfaces inherited from class soot.jimple.infoflow.AbstractInfoflow
AbstractInfoflow.SourceOrSink, AbstractInfoflow.SourceSinkState -
Field Summary
Fields inherited from class soot.jimple.infoflow.AbstractInfoflow
additionalEntryPointMethods, aliasPropagationHandler, androidPath, collectedSinks, collectedSources, config, dummyMainMethod, executorFactory, forceAndroidJar, hierarchy, icfgFactory, ipcManager, logger, manager, memoryManagerFactory, memoryWatcher, nativeCallHandler, onResultsAvailable, pathBuilderFactory, postProcessors, preProcessors, results, reverseAliasPropagationHandler, reverseRuleManagerFactory, reverseTaintPropagationHandler, ruleManagerFactory, solverPeerGroup, sootConfig, taintPropagationHandler, taintWrapper, throwExceptions, usageContextProvider -
Constructor Summary
ConstructorsConstructorDescriptionInPlaceInfoflow(File androidPath, boolean forceAndroidJar, BiDirICFGFactory icfgFactory, Collection<soot.SootMethod> additionalEntryPointMethods) Creates a new instance of the Infoflow class for analyzing Android APK files. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisUserCodeClass(String className) protected voidperformCodeInstrumentationAfterDCE(InfoflowManager manager, Set<soot.SootMethod> excludedMethods) protected voidperformCodeInstrumentationBeforeDCE(InfoflowManager manager, Set<soot.SootMethod> excludedMethods) voidrunAnalysis(ISourceSinkManager sourcesSinks, soot.SootMethod entryPoint) Methods inherited from class soot.jimple.infoflow.Infoflow
createAliasAnalysis, createInfoflowProblem, createResultsObject, initializeInfoflowManager, initializeReverseInfoflowManager, initializeReverseRuleManagerFactory, initializeRuleManagerFactory, scanStmtForSourcesSinksMethods inherited from class soot.jimple.infoflow.AbstractInfoflow
abortAnalysis, addPostProcessor, addPreprocessor, addResultsAvailableHandler, computeInfoflow, computeInfoflow, computeInfoflow, computeInfoflow, computeInfoflow, constructCallgraph, createAliasController, createBackwardAliasAnalysis, createDataFlowSolver, createDataFlowSolver, createMemoryManager, createNewThread, createPathBuilder, createPerformanceDataClass, createReverseInfoflowProblem, eliminateDeadCode, getCollectedSinks, getCollectedSources, getConfig, getLibraryClassPatcher, getMethodsForSeeds, getResults, getTaintWrapper, initializeSoot, initializeSoot, isResultAvailable, isValidSeedMethod, onBeforeTaintPropagation, onTaintPropagationCompleted, patchDynamicInvokeInstructions, pathConfigToShorteningMode, releaseCallgraph, removeResultsAvailableHandler, runAnalysis, runAnalysis, setAliasPropagationHandler, setConfig, setExecutorFactory, setGeomPtaSpecificOptions, setIPCManager, setMemoryManagerFactory, setNativeCallHandler, setPathBuilderFactory, setPropagationRuleManagerFactory, setSootConfig, setSourcePrec, setTaintPropagationHandler, setTaintWrapper, setThrowExceptions, setUsageContextProviderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface soot.jimple.infoflow.IInfoflow
abortAnalysis, addPostProcessor, addPreprocessor, addResultsAvailableHandler, computeInfoflow, computeInfoflow, computeInfoflow, computeInfoflow, computeInfoflow, getCollectedSinks, getCollectedSources, getConfig, getResults, isResultAvailable, removeResultsAvailableHandler, setAliasPropagationHandler, setConfig, setExecutorFactory, setIPCManager, setMemoryManagerFactory, setNativeCallHandler, setPathBuilderFactory, setPropagationRuleManagerFactory, setSootConfig, setTaintPropagationHandler, setUsageContextProviderMethods inherited from interface soot.jimple.infoflow.taintWrappers.ITaintWrapperDataFlowAnalysis
getTaintWrapper, setTaintWrapper
-
Constructor Details
-
InPlaceInfoflow
public InPlaceInfoflow(File androidPath, boolean forceAndroidJar, BiDirICFGFactory icfgFactory, Collection<soot.SootMethod> additionalEntryPointMethods) Creates a new instance of the Infoflow class for analyzing Android APK files.- Parameters:
androidPath- If forceAndroidJar is false, this is the base directory of the platform files in the Android SDK. If forceAndroidJar is true, this is the full path of a single android.jar file.forceAndroidJar- True if a single platform JAR file shall be forced, false if Soot shall pick the appropriate platform versionicfgFactory- The interprocedural CFG to be used by the InfoFlowProblemadditionalEntryPointMethods- Additional methods generated by the entry point creator that are not directly entry ypoints on their own
-
-
Method Details
-
runAnalysis
- Specified by:
runAnalysisin interfaceSetupApplication.IInPlaceInfoflow
-
isUserCodeClass
- Overrides:
isUserCodeClassin classAbstractInfoflow
-
performCodeInstrumentationBeforeDCE
protected void performCodeInstrumentationBeforeDCE(InfoflowManager manager, Set<soot.SootMethod> excludedMethods) - Overrides:
performCodeInstrumentationBeforeDCEin classAbstractInfoflow
-
performCodeInstrumentationAfterDCE
protected void performCodeInstrumentationAfterDCE(InfoflowManager manager, Set<soot.SootMethod> excludedMethods) - Overrides:
performCodeInstrumentationAfterDCEin classAbstractInfoflow
-