Do not unmount database when cleaning up repackaged manager

This commit is contained in:
topjohnwu 2018-07-31 01:09:25 +08:00
parent 52fe0c6abb
commit e39f83edbf

View File

@ -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 {