From df0aa1ff17d384b7ae209bd538b602a98a1a193b Mon Sep 17 00:00:00 2001 From: androidacy-user Date: Wed, 20 Sep 2023 18:49:18 -0400 Subject: [PATCH] remove now defunct magisk check this creates a false error notification for users Signed-off-by: androidacy-user --- .../com/fox2code/mmm/installer/InstallerInitializer.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/fox2code/mmm/installer/InstallerInitializer.kt b/app/src/main/kotlin/com/fox2code/mmm/installer/InstallerInitializer.kt index 6ba29dc..392e20e 100644 --- a/app/src/main/kotlin/com/fox2code/mmm/installer/InstallerInitializer.kt +++ b/app/src/main/kotlin/com/fox2code/mmm/installer/InstallerInitializer.kt @@ -27,8 +27,6 @@ class InstallerInitializer { private val MAGISK_SBIN = File("/sbin/magisk") private val MAGISK_SYSTEM = File("/system/bin/magisk") private val MAGISK_SYSTEM_EX = File("/system/xbin/magisk") - private val HAS_MAGISK = - MAGISK_SBIN.exists() || MAGISK_SYSTEM.exists() || MAGISK_SYSTEM_EX.exists() private var mgskPth: String? = null private var mgskVerCode = 0 private var hsRmdsk = false @@ -43,9 +41,7 @@ class InstallerInitializer { if (mgskPth != null && hasRoot !== java.lang.Boolean.FALSE) { return null } - if (!HAS_MAGISK) { - return NotificationType.NO_MAGISK - } else if (hasRoot !== java.lang.Boolean.TRUE) { + if (hasRoot !== java.lang.Boolean.TRUE) { return NotificationType.ROOT_DENIED } return NotificationType.NO_ROOT