From ab2cc728146602070abc7d7f8e3f377deb9a9b6a Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Tue, 25 Jan 2022 01:21:21 -0800 Subject: [PATCH] Remove unnecessary root service connection wait --- .../main/java/com/topjohnwu/magisk/arch/BaseMainActivity.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/arch/BaseMainActivity.kt b/app/src/main/java/com/topjohnwu/magisk/arch/BaseMainActivity.kt index c06a3b638..d44576101 100644 --- a/app/src/main/java/com/topjohnwu/magisk/arch/BaseMainActivity.kt +++ b/app/src/main/java/com/topjohnwu/magisk/arch/BaseMainActivity.kt @@ -11,7 +11,6 @@ import com.topjohnwu.magisk.BuildConfig.APPLICATION_ID import com.topjohnwu.magisk.R import com.topjohnwu.magisk.core.* import com.topjohnwu.magisk.core.tasks.HideAPK -import com.topjohnwu.magisk.core.utils.RootRegistry import com.topjohnwu.magisk.di.ServiceLocator import com.topjohnwu.magisk.ui.theme.Theme import com.topjohnwu.magisk.view.MagiskDialog @@ -19,7 +18,6 @@ import com.topjohnwu.magisk.view.Notifications import com.topjohnwu.magisk.view.Shortcuts import com.topjohnwu.superuser.Shell import java.util.concurrent.CountDownLatch -import java.util.concurrent.TimeUnit abstract class BaseMainActivity : NavigationActivity() { @@ -52,9 +50,6 @@ abstract class BaseMainActivity : NavigationActivity< return@getShell } preLoad() - if (it.isRoot) { - RootRegistry.Connection.await(2, TimeUnit.SECONDS) - } runOnUiThread { doPreload = false if (isRunningAsStub) {