Beispiel #1
0
 public static void write(String file, String text) {
   RootUtils.mount(true, "/system");
   RootFile f = new RootFile(INITD + "/" + file);
   f.write(text, false);
   RootUtils.chmod(INITD + "/" + file, "755");
   RootUtils.mount(false, "/system");
 }
Beispiel #2
0
 public static String execute(String file) {
   RootUtils.chmod(INITD + "/" + file, "755");
   return RootUtils.runCommand(INITD + "/" + file);
 }