Class AndroidStartComponentTool
java.lang.Object
com.ibm.wala.dalvik.ipa.callgraph.androidModel.stubs.AndroidStartComponentTool
Grab and set data of AndroidClasses.
This class is only used by AndroidModel.getMethodAs() as it got a bit lengthy.
- Since:
- 2013-10-22
- Author:
- Tobias Blaschke <code@tobiasblaschke.de>
-
Constructor Summary
ConstructorDescriptionAndroidStartComponentTool
(IClassHierarchy cha, MethodReference asMethod, Set<IntentStarters.StarterFlags> flags, TypeReference caller, TypeSafeInstructionFactory instructionFactory, ParameterAccessor acc, SSAValueManager pm, VolatileMethodSummary redirect, ParameterAccessor.Parameter self, IntentStarters.StartInfo info) -
Method Summary
Modifier and TypeMethodDescriptionAdd Phi (if necessary) - not if only one from.void
assignIBinder
(SSAValue iBinder, List<? extends SSAValue> allActivities) Set the iBinder in the callee.void
attachActivities
(Set<? extends SSAValue> activities, SSAValue application, SSAValue thread, SSAValue context, SSAValue iBinderToken, SSAValue intent) Fetches the context of the caller.fetchIBinder
(SSAValue androidContext) Fetch the permissions to start the component with.void
fetchResults
(List<? super SSAValue> resultCodes, List<? super SSAValue> resultData, List<? extends SSAValue> allActivities) Grab mResultCode and mResultData.void
Call Activity.setIntent.
-
Constructor Details
-
AndroidStartComponentTool
public AndroidStartComponentTool(IClassHierarchy cha, MethodReference asMethod, Set<IntentStarters.StarterFlags> flags, TypeReference caller, TypeSafeInstructionFactory instructionFactory, ParameterAccessor acc, SSAValueManager pm, VolatileMethodSummary redirect, ParameterAccessor.Parameter self, IntentStarters.StartInfo info)
-
-
Method Details
-
attachActivities
-
typeOfCallerContext
-
fetchCallerContext
Fetches the context of the caller.- Returns:
- A new SSAValue representing the androidContext (may be null!). // XXX
-
fetchIBinder
Fetch the permissions to start the component with.Fetching depends on StarterFlags.QUENCH_PERMISSIONS, XXX
- Returns:
- an iBinder
- Throws:
UnsupportedOperationException
- when fetching is not supported with the current settings
-
assignIBinder
-
setIntent
-
fetchResults
-
addPhi
-