remove now defunct magisk check

this creates a false error notification for users

Signed-off-by: androidacy-user <opensource@androidacy.com>
pull/89/head
androidacy-user 2 years ago
parent 9f7a5f5838
commit df0aa1ff17

@ -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

Loading…
Cancel
Save