mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-25 18:57:39 +00:00
Do not unmount database when cleaning up repackaged manager
This commit is contained in:
parent
52fe0c6abb
commit
e39f83edbf
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user