public class TorServiceUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CHMOD_EXE_VALUE |
static java.lang.String |
SHELL_CMD_CHMOD |
static java.lang.String |
SHELL_CMD_KILL |
static java.lang.String |
SHELL_CMD_PIDOF |
static java.lang.String |
SHELL_CMD_PS |
static java.lang.String |
SHELL_CMD_RM |
Modifier and Type | Method and Description |
---|---|
static int |
doShellCommand(java.lang.String[] cmds,
java.lang.StringBuilder log,
boolean runAsRoot,
boolean waitFor) |
static int |
findProcessId(android.content.Context context) |
static int |
findProcessIdWithPidOf(java.lang.String command) |
static int |
findProcessIdWithPS(java.lang.String command) |
static boolean |
isRootPossible() |
public static final java.lang.String SHELL_CMD_CHMOD
public static final java.lang.String SHELL_CMD_KILL
public static final java.lang.String SHELL_CMD_RM
public static final java.lang.String SHELL_CMD_PS
public static final java.lang.String SHELL_CMD_PIDOF
public static final java.lang.String CHMOD_EXE_VALUE
public static boolean isRootPossible()
public static int findProcessId(android.content.Context context)
public static int findProcessIdWithPidOf(java.lang.String command) throws java.lang.Exception
java.lang.Exception
public static int findProcessIdWithPS(java.lang.String command) throws java.lang.Exception
java.lang.Exception
public static int doShellCommand(java.lang.String[] cmds, java.lang.StringBuilder log, boolean runAsRoot, boolean waitFor) throws java.lang.Exception
java.lang.Exception