Class AndroidEmulationHooksSkeleton

java.lang.Object
com.pnfsoftware.jeb.core.AbstractPlugin
com.pnfsoftware.jeb.core.units.code.android.AndroidEmulationHooksSkeleton
All Implemented Interfaces:
IPlugin, IAndroidEmulationHooks, IDEmulatorHooks, IDSandboxHooks, IEEmulatorHooks, IEStateHooks, IPriorityBasedHooks

public class AndroidEmulationHooksSkeleton extends AbstractPlugin implements IAndroidEmulationHooks, IDEmulatorHooks, IDSandboxHooks, IEEmulatorHooks, IEStateHooks
 //?type=android-emu-hooks
 // ...
 
  • Field Details

    • logger

      public static final ILogger logger
      Public logger accessible by the implementor. Writing to the logger should be favored over writing directly to stdout.
  • Constructor Details

    • AndroidEmulationHooksSkeleton

      public AndroidEmulationHooksSkeleton()
      Create a hooks plugin skeleton.
  • Method Details

    • getPluginInformation

      public final EditablePluginInformation getPluginInformation()
      Description copied from interface: IPlugin
      Retrieve basic information about the plugin, such as name, version, author, and organization.
      Specified by:
      getPluginInformation in interface IPlugin
      Returns:
      the plugin information
    • getUsage

      public int getUsage()
      The default implementation returns -1, which means that the plugin may be used by all clients of the Android code emulator (such as the generic unpacker, IR optimizers, etc.)
      Specified by:
      getUsage in interface IAndroidEmulationHooks
      Returns:
      flags specifying where the hooks may be used; see USAGE_xxx
    • getDexInternalHooks

      public IDEmulatorHooks getDexInternalHooks()
      The default implementation returns this object. Dex internal hooking methods may be overridden as necessary.
      Specified by:
      getDexInternalHooks in interface IAndroidEmulationHooks
      Returns:
      optional, may be null
    • getDexExternalHooks

      public IDSandboxHooks getDexExternalHooks()
      The default implementation returns this object. Dex external hooking methods may be overridden as necessary.
      Specified by:
      getDexExternalHooks in interface IAndroidEmulationHooks
      Returns:
      optional, may be null
    • getNativeCodeHooks

      public IEEmulatorHooks getNativeCodeHooks()
      The default implementation returns this object. Native code hooking methods may be overridden as necessary.
      Specified by:
      getNativeCodeHooks in interface IAndroidEmulationHooks
      Returns:
      optional, may be null
    • getNativeMemoryHooks

      public IEStateHooks getNativeMemoryHooks()
      The default implementation returns this object. Native memory hooking methods may be overridden as necessary.
      Specified by:
      getNativeMemoryHooks in interface IAndroidEmulationHooks
      Returns:
      optional, may be null