@Implements(value=android.net.VpnService.class) public class ShadowVpnService extends ShadowService
Constructor and Description |
---|
ShadowVpnService() |
Modifier and Type | Method and 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).
|
getLastForegroundNotification, getLastForegroundNotificationId, getNotificationShouldRemoved, getStopSelfId, getStopSelfResultId, isForegroundStopped, isLastForegroundNotificationAttached, isStoppedBySelf, onDestroy, startForeground, stopForeground, stopForeground, stopSelf, stopSelf, stopSelfResult
clearNextStartedActivities, clearStartedServices, denyPermissions, denyPermissions, getBroadcastIntents, getNextStartedActivity, getNextStartedActivityForResult, getNextStartedService, getNextStoppedService, grantPermissions, grantPermissions, peekNextStartedActivity, peekNextStartedActivityForResult, peekNextStartedService, removeSystemService
@Implementation protected static Intent prepare(Context context)
setPrepareResult(Intent).
public static void setPrepareResult(Intent intent)
Sets the return value of #prepare(Context).
@Implementation protected boolean protect(Socket socket)
No-ops and always return true, override to avoid call to non-existent Socket.getFileDescriptor.
@Resetter public static void reset()