Remove request uninstall code

unreachable
This commit is contained in:
vvb2060
2022-06-06 02:00:54 +08:00
committed by John Wu
parent 8b16bfbb54
commit c495b3d183
4 changed files with 2 additions and 44 deletions
@@ -135,13 +135,10 @@ abstract class SplashActivity<Binding : ViewDataBinding> : NavigationActivity<Bi
Shell.cmd("(pm uninstall $APPLICATION_ID)& >/dev/null 2>&1").exec()
}
} else {
if (Config.suManager.isNotEmpty())
if (!Const.Version.atLeast_25_0() && Config.suManager.isNotEmpty())
Config.suManager = ""
pkg ?: return
if (!Shell.cmd("(pm uninstall $pkg)& >/dev/null 2>&1").exec().isSuccess) {
// Uninstall through Android API
uninstallAndWait(pkg)
}
Shell.cmd("(pm uninstall $pkg)& >/dev/null 2>&1").exec()
}
}