From e39f83edbf81be2751357c7da4952dd353fa4637 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 31 Jul 2018 01:09:25 +0800 Subject: [PATCH] Do not unmount database when cleaning up repackaged manager --- app/src/full/java/com/topjohnwu/magisk/MagiskManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/full/java/com/topjohnwu/magisk/MagiskManager.java b/app/src/full/java/com/topjohnwu/magisk/MagiskManager.java index 5eadd6363..0807a5b18 100644 --- a/app/src/full/java/com/topjohnwu/magisk/MagiskManager.java +++ b/app/src/full/java/com/topjohnwu/magisk/MagiskManager.java @@ -121,7 +121,7 @@ public class MagiskManager extends ContainerApp { String pkg = mDB.getStrings(Const.Key.SU_MANAGER, null); if (pkg != null && getPackageName().equals(Const.ORIG_PKG_NAME)) { mDB.setStrings(Const.Key.SU_MANAGER, null); - RootUtils.uninstallPkg(pkg); + Shell.su("pm uninstall " + pkg).exec(); } if (TextUtils.equals(pkg, getPackageName())) { try {