Class AlienFragmentFilter

java.lang.Object
soot.jimple.infoflow.android.callbacks.filters.AbstractCallbackFilter
soot.jimple.infoflow.android.callbacks.filters.AlienFragmentFilter
All Implemented Interfaces:
ICallbackFilter

public class AlienFragmentFilter extends AbstractCallbackFilter
Filter that discards callbacks that belong to a fragment that, in turn, does not belong to the current component.
Author:
Steven Arzt
  • Field Summary

    Fields inherited from class soot.jimple.infoflow.android.callbacks.filters.AbstractCallbackFilter

    reachableMethods
  • Constructor Summary

    Constructors
    Constructor
    Description
    AlienFragmentFilter(soot.util.MultiMap<soot.SootClass,soot.SootClass> fragmentToActivity)
    Creates a new instance of the AlienFragmentFilter class
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accepts(soot.SootClass component, soot.SootClass callbackHandler)
    Checks whether the given callback handler is usable in the given Android component
    boolean
    accepts(soot.SootClass component, soot.SootMethod callback)
    Checks whether the given concrete callback method is usable in the given Android component
    void
    Method that is called whenever the Soot scene changes and the class references need to be updated

    Methods inherited from class soot.jimple.infoflow.android.callbacks.filters.AbstractCallbackFilter

    setReachableMethods

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AlienFragmentFilter

      public AlienFragmentFilter(soot.util.MultiMap<soot.SootClass,soot.SootClass> fragmentToActivity)
      Creates a new instance of the AlienFragmentFilter class
      Parameters:
      fragmentToActivity - mapping from fragments to the activities containing them
  • Method Details

    • accepts

      public boolean accepts(soot.SootClass component, soot.SootClass callbackHandler)
      Description copied from interface: ICallbackFilter
      Checks whether the given callback handler is usable in the given Android component
      Parameters:
      component - The component at whose runtime the callback is to be invoked
      callbackHandler - The class containing the callback implementation
      Returns:
      True if the filter accepts the callback to be registered, otherwise false
    • accepts

      public boolean accepts(soot.SootClass component, soot.SootMethod callback)
      Description copied from interface: ICallbackFilter
      Checks whether the given concrete callback method is usable in the given Android component
      Parameters:
      component - The component at whose runtime the callback is to be invoked
      callback - The callback method to be invoked
      Returns:
      True if the filter accepts the callback to be registered, otherwise false
    • reset

      public void reset()
      Description copied from interface: ICallbackFilter
      Method that is called whenever the Soot scene changes and the class references need to be updated