Support new util_functions.sh
This commit is contained in:
parent
e6c1dd532d
commit
77430a282f
@ -125,6 +125,9 @@ public class MagiskManager extends Application implements Shell.Container {
|
|||||||
}
|
}
|
||||||
shell.run(null, null,
|
shell.run(null, null,
|
||||||
"mount_partitions",
|
"mount_partitions",
|
||||||
|
"find_boot_image",
|
||||||
|
"find_dtbo_image",
|
||||||
|
"get_flags",
|
||||||
"run_migrations");
|
"run_migrations");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -215,11 +218,8 @@ public class MagiskManager extends Application implements Shell.Container {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void getDefaultInstallFlags() {
|
public void getDefaultInstallFlags() {
|
||||||
keepVerity = Boolean.parseBoolean(RootUtils.cmd("getvar KEEPVERITY; echo $KEEPVERITY")) ||
|
keepVerity = Boolean.parseBoolean(RootUtils.cmd("echo $KEEPVERITY"));
|
||||||
RootUtils.cmd("echo \"$DTBOIMAGE\"") != null;
|
keepEnc = Boolean.parseBoolean(RootUtils.cmd("echo $KEEPFORCEENCRYPT"));
|
||||||
|
|
||||||
keepEnc = Boolean.parseBoolean(RootUtils.cmd("getvar KEEPFORCEENCRYPT; echo $KEEPFORCEENCRYPT")) ||
|
|
||||||
TextUtils.equals("encrypted", RootUtils.cmd("getprop ro.crypto.state"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setupUpdateCheck() {
|
public void setupUpdateCheck() {
|
||||||
|
Loading…
Reference in New Issue
Block a user