File tree Expand file tree Collapse file tree
app/src/main/kotlin/com/fox2code/mmm/installer Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments