package com.rincliu.library.common.persistence.rootmanager; public class Constants { /** * The set of SU location I know by now. */ public static final String[] SU_BINARY_DIRS = {"/system/bin", "/system/sbin", "/system/xbin", "/vendor/bin", "/sbin"}; /** * The expire time for granted permission, ten minutes */ public static final long PERMISSION_EXPIRE_TIME = 1000 * 60 * 10; /** * The command string for install app */ public static final String COMMAND_INSTALL = "pm install -r "; /** * The patch for some android versions and devices. Install process may * fail without this patch. */ public static final String COMMAND_INSTALL_PATCH = "LD_LIBRARY_PATH=/vendor/lib:/system/lib "; /** * Install apps on SD-card. */ public static final String COMMAND_INSTALL_LOCATION_EXTERNAL = "-s "; /** * Install apps on phone RAM. */ public static final String COMMAND_INSTALL_LOCATION_INTERNAL = "-f "; /** * The command string for uninstall app. */ public static final String COMMAND_UNINSTALL = "pm uninstall "; /** * The command string for screen cap. */ public static final String COMMAND_SCREENCAP = "screencap "; /** * The command string for processing show. */ public static final String COMMAND_PS = "ps"; /** * The command string for kill process. */ public static final String COMMAND_KILL = "kill "; /** * The command string for find pid of a process. */ public static final String COMMAND_PIDOF = "pidof "; /** * The default command timeout is 5 min. */ public static final int COMMAND_TIMEOUT = 1000 * 50 * 5; /** * The path of system */ public static final String PATH_SYSTEM = "/system/"; /** * The path of system bin */ public static final String PATH_SYSTEM_BIN = "/system/bin/"; }