Commit e39f83ed authored by topjohnwu's avatar topjohnwu

Do not unmount database when cleaning up repackaged manager

parent 52fe0c6a
...@@ -121,7 +121,7 @@ public class MagiskManager extends ContainerApp { ...@@ -121,7 +121,7 @@ public class MagiskManager extends ContainerApp {
String pkg = mDB.getStrings(Const.Key.SU_MANAGER, null); String pkg = mDB.getStrings(Const.Key.SU_MANAGER, null);
if (pkg != null && getPackageName().equals(Const.ORIG_PKG_NAME)) { if (pkg != null && getPackageName().equals(Const.ORIG_PKG_NAME)) {
mDB.setStrings(Const.Key.SU_MANAGER, null); mDB.setStrings(Const.Key.SU_MANAGER, null);
RootUtils.uninstallPkg(pkg); Shell.su("pm uninstall " + pkg).exec();
} }
if (TextUtils.equals(pkg, getPackageName())) { if (TextUtils.equals(pkg, getPackageName())) {
try { try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment