Skip to content
This repository was archived by the owner on Oct 5, 2019. It is now read-only.

Commit ee12a23

Browse files
committed
control: Fix stop and start service
1 parent 03d915b commit ee12a23

File tree

1 file changed

+2
-2
lines changed
  • app/src/main/java/com/grarak/kerneladiutor/utils/root

1 file changed

+2
-2
lines changed

app/src/main/java/com/grarak/kerneladiutor/utils/root/Control.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ public static String setProp(String prop, String value) {
5454
}
5555

5656
public static String startService(String prop) {
57-
return "setprop ctl.start " + prop;
57+
return setProp("ctl.start", prop);
5858
}
5959

6060
public static String stopService(String prop) {
61-
return "stop ctl.stop " + prop;
61+
return setProp("ctl.stop", prop);
6262
}
6363

6464
public static String write(String text, String path) {

0 commit comments

Comments
 (0)