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"); }
public static String execute(String file) { RootUtils.chmod(INITD + "/" + file, "755"); return RootUtils.runCommand(INITD + "/" + file); }