Interface IAndroidEmulationHooks
- All Superinterfaces:
IPlugin
- All Known Implementing Classes:
AndroidEmulationHooksSkeleton
Interface for plugins that provide hooks for the emulation of dex code and native code.
At this time, those plugins can be used by the APK
generic unpacker . They are not used by IR optimizers using the emulator. (Future addition.)
Implementors should not implement this interface directly: extend
AndroidEmulationHooksSkeleton instead.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe hooks may be used by all supported components.static final intThe hooks should not be used by any component.static final intThe hooks may be used by the generic unpacker. -
Method Summary
Modifier and TypeMethodDescriptionProvide an object to hook external dex code emulation, such as the Android runtime libraries, Java API, etc.Provide an object to hook internal dex code emulation (i.e.Provide an object to hook native code emulation.Provide an object to hook native memory access by the emulator.intgetUsage()Determine by which components the hooks defined in this object may be used.Methods inherited from interface com.pnfsoftware.jeb.core.IPlugin
dispose, getData, getPluginInformation, setData
-
Field Details
-
USAGE_NONE
static final int USAGE_NONEThe hooks should not be used by any component.- See Also:
-
USAGE_ALL
static final int USAGE_ALLThe hooks may be used by all supported components.- See Also:
-
USAGE_UNPACKER
static final int USAGE_UNPACKERThe hooks may be used by the generic unpacker.- See Also:
-
-
Method Details
-
getUsage
int getUsage()Determine by which components the hooks defined in this object may be used.- Returns:
- flags specifying where the hooks may be used; see
USAGE_xxx
-
getDexInternalHooks
IDEmulatorHooks getDexInternalHooks()Provide an object to hook internal dex code emulation (i.e. the application code).- Returns:
- optional, may be null
-
getDexExternalHooks
IDSandboxHooks getDexExternalHooks()Provide an object to hook external dex code emulation, such as the Android runtime libraries, Java API, etc. etc.- Returns:
- optional, may be null
-
getNativeCodeHooks
IEEmulatorHooks getNativeCodeHooks()Provide an object to hook native code emulation. Limited to aarch64.- Returns:
- optional, may be null
-
getNativeMemoryHooks
IEStateHooks getNativeMemoryHooks()Provide an object to hook native memory access by the emulator.- Returns:
- optional, may be null
-