Beispiel #1
0
 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);
 }
Beispiel #2
0
 public static void setProp(String key, String value, Context context) {
   run("setprop " + key + " " + value, key, context);
 }
Beispiel #3
0
 private static void runSelinux(int value, Context context) {
   run("setenforce " + value, SELINUX, context);
 }
Beispiel #4
0
 private static void runGeneric(String file, String value, String id, Context context) {
   run("echo " + value + " > " + file, id != null ? file + id : file, context);
 }
Beispiel #5
0
 private static void setPermission(String file, int permission, Context context) {
   run("chmod " + permission + " " + file, file + "permission" + permission, context);
 }