@Implements(android.net.VpnService.class) public class ShadowVpnService extends ShadowService
| Constructor | Description |
|---|---|
ShadowVpnService() |
| Modifier and Type | Method | Description |
|---|---|---|
protected static Intent |
prepare(Context context) |
|
protected boolean |
protect(Socket socket) |
No-ops and always return true, override to avoid call to non-existent Socket.getFileDescriptor.
|
static void |
reset() |
|
static void |
setPrepareResult(Intent intent) |
Sets the return value of #prepare(Context).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearBroadcastIntents, clearNextStartedActivities, clearStartedServices, denyPermissions, denyPermissions, getBroadcastIntents, getBroadcastIntentsForUser, getBroadcastOptions, getNextStartedActivity, getNextStartedActivityForResult, getNextStartedService, getNextStoppedService, grantPermissions, grantPermissions, peekNextStartedActivity, peekNextStartedActivityForResult, peekNextStartedService, removeSystemServicegetLastForegroundNotification, getLastForegroundNotificationId, getNotificationShouldRemoved, getStopSelfId, getStopSelfResultId, isForegroundStopped, isLastForegroundNotificationAttached, isStoppedBySelf, onDestroy, startForeground, stopForeground, stopForeground, stopSelf, stopSelf, stopSelfResult@Implementation protected static Intent prepare(Context context)
public static void setPrepareResult(Intent intent)
@Implementation protected boolean protect(Socket socket)
@Resetter public static void reset()