Class IccRedirectionCreator

java.lang.Object
soot.jimple.infoflow.android.iccta.IccRedirectionCreator

public class IccRedirectionCreator extends Object
  • Field Details

    • source2RedirectMethod

      protected final Map<String,soot.SootMethod> source2RedirectMethod
    • instrumentedUnits

      protected final soot.util.MultiMap<soot.Body,soot.Unit> instrumentedUnits
    • dummyMainClass

      protected final soot.SootClass dummyMainClass
    • componentToEntryPoint

      protected final ComponentEntryPointCollection componentToEntryPoint
    • subsigStartActivityForResult

      protected final soot.util.NumberedString subsigStartActivityForResult
    • instrumentationCallback

      protected IccRedirectionCreator.IRedirectorCallInserted instrumentationCallback
  • Constructor Details

  • Method Details

    • redirectToDestination

      public void redirectToDestination(IccLink link)
    • getRedirectMethod

      protected soot.SootMethod getRedirectMethod(IccLink link)
      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

      protected void insertRedirectMethodCallAfterIccMethod(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 parameter
      Parameters:
      link -
      redirectMethod -
    • addICCRedirectCall

      protected soot.Body addICCRedirectCall(IccLink link, soot.SootMethod redirectMethod, List<soot.Value> args)
    • 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