Class ApplicationCallbackFilter

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

public class ApplicationCallbackFilter extends AbstractCallbackFilter
A callback filter that restricts application callbacks to ComponentCallbacks and ActivityLifecycleCallsbacks.
Author:
Steven Arzt
  • Constructor Details

    • ApplicationCallbackFilter

      public ApplicationCallbackFilter(Set<soot.SootClass> entrypoints)
      Creates a new instance of the ApplicationCallbackFilter class
      Parameters:
      entrypoints - The set of entry points into the app
    • ApplicationCallbackFilter

      public ApplicationCallbackFilter(String applicationClass)
      Creates a new instance of the ApplicationCallbackFilter class
      Parameters:
      applicationClass - The class extending android.app.Application
  • 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
    • 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
    • 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