public class PsiphonHelper extends java.lang.Object implements ProxyHelper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COMPONENT_NAME |
static int |
DEFAULT_HTTP_PORT |
static int |
DEFAULT_SOCKS_PORT |
static java.lang.String |
FDROID_URI |
static java.lang.String |
MARKET_URI |
static java.lang.String |
ORBOT_PLAY_URI |
static java.lang.String |
PACKAGE_NAME |
ACTION_START, ACTION_STATUS, EXTRA_PACKAGE_NAME, EXTRA_PROXY_PORT_HTTP, EXTRA_PROXY_PORT_SOCKS, EXTRA_STATUS, FDROID_PACKAGE_NAME, PLAY_PACKAGE_NAME, STATUS_OFF, STATUS_ON, STATUS_STARTING, STATUS_STARTS_DISABLED, STATUS_STOPPING
Constructor and Description |
---|
PsiphonHelper() |
Modifier and Type | Method and Description |
---|---|
android.content.Intent |
getInstallIntent(android.content.Context context) |
java.lang.String |
getName() |
android.content.Intent |
getStartIntent(android.content.Context context) |
boolean |
isInstalled(android.content.Context context) |
static boolean |
isPortOpen(java.lang.String ip,
int port,
int timeout) |
boolean |
requestStart(android.content.Context context) |
void |
requestStatus(android.content.Context context) |
public static final java.lang.String PACKAGE_NAME
public static final java.lang.String COMPONENT_NAME
public static final java.lang.String MARKET_URI
public static final java.lang.String FDROID_URI
public static final java.lang.String ORBOT_PLAY_URI
public static final int DEFAULT_SOCKS_PORT
public static final int DEFAULT_HTTP_PORT
public boolean isInstalled(android.content.Context context)
isInstalled
in interface ProxyHelper
public void requestStatus(android.content.Context context)
requestStatus
in interface ProxyHelper
public boolean requestStart(android.content.Context context)
requestStart
in interface ProxyHelper
public android.content.Intent getInstallIntent(android.content.Context context)
getInstallIntent
in interface ProxyHelper
public android.content.Intent getStartIntent(android.content.Context context)
getStartIntent
in interface ProxyHelper
public static boolean isPortOpen(java.lang.String ip, int port, int timeout)
public java.lang.String getName()
getName
in interface ProxyHelper