Class IccRedirectionCreator
java.lang.Object
soot.jimple.infoflow.android.iccta.IccRedirectionCreator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInterface to notify external code that a new invocation statement for a redirector method has been inserted -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ComponentEntryPointCollectionprotected final soot.SootClassprotected final soot.util.MultiMap<soot.Body,soot.Unit> protected final soot.util.NumberedString -
Constructor Summary
ConstructorsConstructorDescriptionIccRedirectionCreator(soot.SootClass dummyMainClass, ComponentEntryPointCollection componentToEntryPoint) -
Method Summary
Modifier and TypeMethodDescriptionprotected soot.BodyaddICCRedirectCall(IccLink link, soot.SootMethod redirectMethod, List<soot.Value> args) protected static voidcopyTags(soot.Unit from, soot.Unit to) Copy all the tags of {from} to {to}, if {to} already contain the copied tag, then overwrite it.protected soot.SootMethodgenerateRedirectMethod(soot.SootClass wrapper) protected soot.SootMethodgenerateRedirectMethodForBindService(soot.SootClass serviceConnection, soot.SootClass destComp) protected soot.SootMethodgenerateRedirectMethodForContentProvider(soot.jimple.Stmt iccStmt, soot.SootMethod destCPMethod) protected soot.SootMethodgenerateRedirectMethodForStartActivity(soot.SootClass wrapper) protected soot.SootMethodgenerateRedirectMethodForStartActivityForResult(soot.SootClass originActivity, soot.SootClass destComp) protected soot.SootMethodgetRedirectMethod(IccLink link) Redirect ICC call at unit in sm to the right componentprotected voidinsertRedirectMethodCallAfterIccMethod(IccLink link, soot.SootMethod redirectMethod) We have the intent in a register at this point, create a new statement to call the static method with the intent as parametervoidredirectToDestination(IccLink link) voidsetInstrumentationCallback(IccRedirectionCreator.IRedirectorCallInserted instrumentationCallback) Sets the callback that shall be notified when a new statement has been injected to model inter-component call relationshipsvoidRemoves all units that have previously been created by the instrumenter
-
Field Details
-
source2RedirectMethod
-
instrumentedUnits
protected final soot.util.MultiMap<soot.Body,soot.Unit> instrumentedUnits -
dummyMainClass
protected final soot.SootClass dummyMainClass -
componentToEntryPoint
-
subsigStartActivityForResult
protected final soot.util.NumberedString subsigStartActivityForResult -
instrumentationCallback
-
-
Constructor Details
-
IccRedirectionCreator
public IccRedirectionCreator(soot.SootClass dummyMainClass, ComponentEntryPointCollection componentToEntryPoint)
-
-
Method Details
-
redirectToDestination
-
getRedirectMethod
Redirect ICC call at unit in sm to the right component- Parameters:
link-- Returns:
-
generateRedirectMethodForStartActivityForResult
protected soot.SootMethod generateRedirectMethodForStartActivityForResult(soot.SootClass originActivity, soot.SootClass destComp) -
generateRedirectMethod
protected soot.SootMethod generateRedirectMethod(soot.SootClass wrapper) -
generateRedirectMethodForStartActivity
protected soot.SootMethod generateRedirectMethodForStartActivity(soot.SootClass wrapper) -
generateRedirectMethodForBindService
protected soot.SootMethod generateRedirectMethodForBindService(soot.SootClass serviceConnection, soot.SootClass destComp) -
generateRedirectMethodForContentProvider
protected soot.SootMethod generateRedirectMethodForContentProvider(soot.jimple.Stmt iccStmt, soot.SootMethod destCPMethod) -
insertRedirectMethodCallAfterIccMethod
We have the intent in a register at this point, create a new statement to call the static method with the intent as parameter- Parameters:
link-redirectMethod-
-
addICCRedirectCall
-
copyTags
protected static void copyTags(soot.Unit from, soot.Unit to) Copy all the tags of {from} to {to}, if {to} already contain the copied tag, then overwrite it.- Parameters:
from-to-
-
undoInstrumentation
public void undoInstrumentation()Removes all units that have previously been created by the instrumenter -
setInstrumentationCallback
public void setInstrumentationCallback(IccRedirectionCreator.IRedirectorCallInserted instrumentationCallback) Sets the callback that shall be notified when a new statement has been injected to model inter-component call relationships- Parameters:
instrumentationCallback- The callback to notify of new instrumentation statements
-