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 TypeMethodDescriptionbooleanaccepts(soot.SootClass component, soot.SootClass callbackHandler) Checks whether the given callback handler is usable in the given Android componentbooleanaccepts(soot.SootClass component, soot.SootMethod callback) Checks whether the given concrete callback method is usable in the given Android componentvoidreset()Method that is called whenever the Soot scene changes and the class references need to be updatedvoidSets 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 invokedcallbackHandler- 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 invokedcallback- 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
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
-