File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/src/main/java/com/wrbug/developerhelper/shell Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ import java.util.regex.Pattern
11
11
12
12
object ShellManager {
13
13
private const val SHELL_TOP_ACTIVITY = " dumpsys activity top"
14
- private const val SHELL_PROCESS_PID_1 = " ps -ef | grep \" %s \" | grep -v grep | awk '{print \$ 2}'"
15
- private const val SHELL_PROCESS_PID_2 = " top -b -n 1 |grep %s |grep -v grep"
16
- private const val SHELL_PROCESS_PID_3 = " top -n 1 |grep %s |grep -v grep"
14
+ private const val SHELL_PROCESS_PID_1 = " ps -ef | grep \" %1 \$ s& \" | grep -v grep | awk '{print \$ 2}'"
15
+ private const val SHELL_PROCESS_PID_2 = " top -b -n 1 |grep %1 \$ s |grep -v grep|grep -v %1 \$ s: "
16
+ private const val SHELL_PROCESS_PID_3 = " top -n 1 |grep %1 \$ s |grep -v grep|grep -v %1 \$ s: "
17
17
private var SHELL_OPEN_ACCESSiBILITY_SERVICE = arrayOf(
18
18
" settings put secure enabled_accessibility_services com.wrbug.developerhelper/com.wrbug.developerhelper.service.DeveloperHelperAccessibilityService" ,
19
19
" settings put secure accessibility_enabled 1"
You can’t perform that action at this time.
0 commit comments