Skip to content

Commit df0aa1f

Browse files
remove now defunct magisk check
this creates a false error notification for users Signed-off-by: androidacy-user <opensource@androidacy.com>
1 parent 9f7a5f5 commit df0aa1f

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

app/src/main/kotlin/com/fox2code/mmm/installer/InstallerInitializer.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ class InstallerInitializer {
2727
private val MAGISK_SBIN = File("/sbin/magisk")
2828
private val MAGISK_SYSTEM = File("/system/bin/magisk")
2929
private val MAGISK_SYSTEM_EX = File("/system/xbin/magisk")
30-
private val HAS_MAGISK =
31-
MAGISK_SBIN.exists() || MAGISK_SYSTEM.exists() || MAGISK_SYSTEM_EX.exists()
3230
private var mgskPth: String? = null
3331
private var mgskVerCode = 0
3432
private var hsRmdsk = false
@@ -43,9 +41,7 @@ class InstallerInitializer {
4341
if (mgskPth != null && hasRoot !== java.lang.Boolean.FALSE) {
4442
return null
4543
}
46-
if (!HAS_MAGISK) {
47-
return NotificationType.NO_MAGISK
48-
} else if (hasRoot !== java.lang.Boolean.TRUE) {
44+
if (hasRoot !== java.lang.Boolean.TRUE) {
4945
return NotificationType.ROOT_DENIED
5046
}
5147
return NotificationType.NO_ROOT

0 commit comments

Comments
 (0)