Class ShadowVpnService


@Implements(android.net.VpnService.class) public class ShadowVpnService extends ShadowService
  • Constructor Details

    • ShadowVpnService

      public ShadowVpnService()
  • Method Details

    • prepare

      @Implementation protected static Intent prepare(Context context)
    • setPrepareResult

      public static void setPrepareResult(Intent intent)
      Sets the return value of #prepare(Context).
    • protect

      @Implementation protected boolean protect(Socket socket)
      No-ops and always return true, override to avoid call to non-existent Socket.getFileDescriptor.
    • reset

      @Resetter public static void reset()