Interface ICallbackFilter

All Known Implementing Classes:
AbstractCallbackFilter, AlienFragmentFilter, AlienHostComponentFilter, ApplicationCallbackFilter, UnreachableConstructorFilter

public interface ICallbackFilter
Common interface for all callback filters. A callback filter takes the discovered associations between host components and callbacks and filters out those that are not of interest to the analysis.
Author:
Steven Arzt
  • 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
    void
    Sets the analysis that can provide the methods that are reachable inside the app.
  • Method Details

    • accepts

      boolean accepts(soot.SootClass component, soot.SootClass callbackHandler)
      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

      boolean accepts(soot.SootClass component, soot.SootMethod callback)
      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

      void reset()
      Method that is called whenever the Soot scene changes and the class references need to be updated
    • setReachableMethods

      void setReachableMethods(ComponentReachableMethods rm)
      Sets the analysis that can provide the methods that are reachable inside the app. A callback analysis is free to pass a new analysis into the filter when changing its scope, e.g., when processing a new component.
      Parameters:
      rm - The reachable methods analysis