Package com.ibm.wala.dalvik.util
Class AndroidEntryPointLocator
- java.lang.Object
-
- com.ibm.wala.dalvik.util.AndroidEntryPointLocator
-
public final class AndroidEntryPointLocator extends Object
Searches an Android application for its EntryPoints. Iterates the ClassHierarchy matching its elements to a set of hardcoded entrypoint-specifications. Then optionally uses heuristics to select further entrypoints.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AndroidEntryPointLocator.AndroidPossibleEntryPoint
A definition of an Entrypoint functions o the App are matched against.static class
AndroidEntryPointLocator.LocatorFlags
Used to control the search mechanisms of AndroidEntryPointLocator.
-
Field Summary
Fields Modifier and Type Field Description protected Set<AndroidEntryPointLocator.LocatorFlags>
flags
-
Constructor Summary
Constructors Constructor Description AndroidEntryPointLocator(Set<AndroidEntryPointLocator.LocatorFlags> flags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
debugDumpEntryPoints(List<AndroidEntryPointLocator.AndroidPossibleEntryPoint> eps)
List<AndroidEntryPoint>
getEntryPoints(IClassHierarchy cha)
Searches a ClassHierarchy for EntryPoints by their method-signature (optionally with heuristics).
-
-
-
Field Detail
-
flags
protected final Set<AndroidEntryPointLocator.LocatorFlags> flags
-
-
Constructor Detail
-
AndroidEntryPointLocator
public AndroidEntryPointLocator(Set<AndroidEntryPointLocator.LocatorFlags> flags)
-
-
Method Detail
-
getEntryPoints
public List<AndroidEntryPoint> getEntryPoints(IClassHierarchy cha)
Searches a ClassHierarchy for EntryPoints by their method-signature (optionally with heuristics). Matches the hardcoded signatures against the methods in cha. Uses heuristics depending on the LocatorFlags given to the constructor .- Parameters:
cha
- The ClassHierarchy to be searched- Returns:
- partially sorted list of applicable EntryPoints
-
debugDumpEntryPoints
public static void debugDumpEntryPoints(List<AndroidEntryPointLocator.AndroidPossibleEntryPoint> eps)
-
-