Class AlienHostComponentFilter
java.lang.Object
soot.jimple.infoflow.android.callbacks.filters.AbstractCallbackFilter
soot.jimple.infoflow.android.callbacks.filters.AlienHostComponentFilter
- All Implemented Interfaces:
ICallbackFilter
A callback filter that disallows inner classes from being used in other host
components than the outer class. If a class is a component on its own, it may
not be used as a callback handler in some other component.
Note that the rules in this filter are heuristics. They are valid for
sensible applications, but may be disregarded on purpose by a malicious
developer.
- Author:
- Steven Arzt
-
Field Summary
Fields inherited from class soot.jimple.infoflow.android.callbacks.filters.AbstractCallbackFilter
reachableMethods -
Constructor Summary
ConstructorsConstructorDescriptionAlienHostComponentFilter(Set<soot.SootClass> components) Creates a new instance of theAlienHostComponentFilterclass -
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 updatedMethods inherited from class soot.jimple.infoflow.android.callbacks.filters.AbstractCallbackFilter
setReachableMethods
-
Constructor Details
-
AlienHostComponentFilter
Creates a new instance of theAlienHostComponentFilterclass- Parameters:
components- The set of components in the Android app
-
-
Method Details
-
accepts
public boolean accepts(soot.SootClass component, soot.SootClass callbackHandler) Description copied from interface:ICallbackFilterChecks 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
-
reset
public void reset()Description copied from interface:ICallbackFilterMethod 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:ICallbackFilterChecks 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
-