private static void runFauxGeneric(String file, String value, Context context) { String command = value.contains(" ") ? value + " " + getChecksum( Utils.stringToInt(value.split(" ")[0]), Utils.stringToInt(value.split(" ")[1])) : value + " " + getChecksum(Utils.stringToInt(value), 0); run("echo " + value + " > " + file, file + "nochecksum", context); run("echo " + command + " > " + file, file, context); }
public static void setProp(String key, String value, Context context) { run("setprop " + key + " " + value, key, context); }
private static void runSelinux(int value, Context context) { run("setenforce " + value, SELINUX, context); }
private static void runGeneric(String file, String value, String id, Context context) { run("echo " + value + " > " + file, id != null ? file + id : file, context); }
private static void setPermission(String file, int permission, Context context) { run("chmod " + permission + " " + file, file + "permission" + permission, context); }