You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
More precise sudb management
This commit is contained in:
@@ -239,7 +239,6 @@ public class ShowUI {
|
||||
Utils.fmt("MagiskManager-v%s.apk", mm.remoteManagerVersionString)))
|
||||
.setCancelable(true)
|
||||
.setPositiveButton(R.string.install, (d, i) -> {
|
||||
Utils.dumpPrefs();
|
||||
Utils.runWithPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE, () -> {
|
||||
Intent intent = new Intent(mm, ManagerUpdate.class);
|
||||
intent.putExtra(Const.Key.INTENT_SET_LINK, mm.managerLink);
|
||||
|
||||
@@ -62,9 +62,9 @@ public class Utils {
|
||||
return Shell.su(fmt("cat %s | sed '$a\\ ' | sed '$d'", path));
|
||||
}
|
||||
|
||||
public static String checkMD5(Object path) {
|
||||
List<String> ret = Shell.su(fmt("md5sum %s", path));
|
||||
return isValidShellResponse(ret) ? ret.get(0).split("\\s+")[0] : null;
|
||||
public static String checkInode(Object path) {
|
||||
List<String> ret = Shell.su(fmt("ls -i %s", path));
|
||||
return isValidShellResponse(ret) ? ret.get(0).trim().split("\\s+")[0] : null;
|
||||
}
|
||||
|
||||
public static void uninstallPkg(String pkg) {
|
||||
|
||||
Reference in New Issue
Block a user