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