示例#1
0
  public static void startService(String service, boolean save, Context context) {
    RootUtils.runCommand("start " + service);

    if (save) commandSaver(context, service, "start " + service);
  }
示例#2
0
  public static void stopService(String service, boolean save, Context context) {
    RootUtils.runCommand("stop " + service);
    if (service.equals(HOTPLUG_MPDEC)) bringCoresOnline();

    if (save) commandSaver(context, service, "stop " + service);
  }
示例#3
0
 private static void run(String command, String path, Context context) {
   RootUtils.runCommand(command);
   commandSaver(context, path, command);
 }