Class ServiceEntryPointCreator
java.lang.Object
soot.jimple.infoflow.entryPointCreators.BaseEntryPointCreator
soot.jimple.infoflow.android.entryPointCreators.AbstractAndroidEntryPointCreator
soot.jimple.infoflow.android.entryPointCreators.components.AbstractComponentEntryPointCreator
soot.jimple.infoflow.android.entryPointCreators.components.ServiceEntryPointCreator
- All Implemented Interfaces:
IEntryPointCreator
Entry point creator for Android services
- Author:
- Steven Arzt
-
Field Summary
FieldsFields inherited from class soot.jimple.infoflow.android.entryPointCreators.components.AbstractComponentEntryPointCreator
applicationClass, callbacks, component, intentField, intentLocal, thisLocalFields inherited from class soot.jimple.infoflow.android.entryPointCreators.AbstractAndroidEntryPointCreator
entryPointUtils, manifestFields inherited from class soot.jimple.infoflow.entryPointCreators.BaseEntryPointCreator
body, conditionCounter, dummyClassName, dummyMethodName, generator, intCounter, localVarsForClasses, mainMethod, overwriteDummyMainMethod, shallowMode, warnOnConstructorLoop -
Constructor Summary
ConstructorsConstructorDescriptionServiceEntryPointCreator(soot.SootClass component, soot.SootClass applicationClass, IManifestHandler manifest) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidprotected booleancreateSpecialServiceMethodCalls(List<String> methodSigs, String parentClass) Creates invocations to the handler methods of special-purpose services in Androidprotected voidGenerates the component-specific portion of the lifecycleGets the data object that describes the generated entry pointprotected voidreset()Methods inherited from class soot.jimple.infoflow.android.entryPointCreators.components.AbstractComponentEntryPointCreator
addCallbackMethods, addCallbackMethods, assignIntent, createDummyMainInternal, createEmptyMainMethod, createGetIntentMethod, getAdditionalFields, getAdditionalMainMethodParams, getAdditionalMethods, getDefaultMainMethodParams, getRequiredClasses, instrumentDummyMainMethod, setCallbacksMethods inherited from class soot.jimple.infoflow.android.entryPointCreators.AbstractAndroidEntryPointCreator
createClassInstances, createDummyMain, createPlainMethodCall, searchAndBuildMethod, searchAndBuildMethod, setEntryPointUtilsMethods inherited from class soot.jimple.infoflow.entryPointCreators.BaseEntryPointCreator
acceptClass, buildMethodCall, buildMethodCall, createIfStmt, eliminateSelfLoops, findMethod, generateClassConstructor, generateClassConstructor, generateClassConstructor, getFailedClasses, getFailedMethods, getGeneratedMainMethod, getNonCollidingFieldName, getOrCreateDummyMainClass, getOverwriteDummyMainMethod, getShallowMode, getSimpleDefaultValue, getValueForType, getValueForType, getWarnOnConstructorLoop, isCompatible, isSimpleType, setAllowNonPublicConstructors, setAllowSelfReferences, setDummyClassName, setDummyMethodName, setIgnoreSystemClassParams, setOverwriteDummyMainMethod, setShallowMode, setSubstituteCallParams, setSubstituteClasses, setWarnOnConstructorLoop
-
Field Details
-
binderField
protected soot.SootField binderField
-
-
Constructor Details
-
ServiceEntryPointCreator
public ServiceEntryPointCreator(soot.SootClass component, soot.SootClass applicationClass, IManifestHandler manifest)
-
-
Method Details
-
generateComponentLifecycle
protected void generateComponentLifecycle()Description copied from class:AbstractComponentEntryPointCreatorGenerates the component-specific portion of the lifecycle- Specified by:
generateComponentLifecyclein classAbstractComponentEntryPointCreator
-
createSpecialServiceMethodCalls
Creates invocations to the handler methods of special-purpose services in Android- Parameters:
methodSigs- The signatures of the methods for which to create invocationsparentClass- The name of the parent class in the SDK that contains the service interface- Returns:
- True if at least one method invocation was created, false otherwise
-
createAdditionalFields
protected void createAdditionalFields()- Overrides:
createAdditionalFieldsin classAbstractComponentEntryPointCreator
-
createAdditionalMethods
protected void createAdditionalMethods()- Overrides:
createAdditionalMethodsin classBaseEntryPointCreator
-
reset
protected void reset()- Overrides:
resetin classAbstractComponentEntryPointCreator
-
getComponentInfo
Description copied from class:AbstractComponentEntryPointCreatorGets the data object that describes the generated entry point- Overrides:
getComponentInfoin classAbstractComponentEntryPointCreator- Returns:
- The data object that describes the generated entry point
-