Skip to content

Commit

Permalink
Proceed with global mount only if KSU SUS-FS available
Browse files Browse the repository at this point in the history
Signed-off-by: DrDisagree <[email protected]>
  • Loading branch information
Mahmud0808 committed Jan 8, 2025
1 parent 8b215c0 commit 7af8843
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/src/main/java/com/drdisagree/iconify/common/Const.kt
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ object Const {
exit 0
""".trimIndent()

val POST_FS_DATA = if (RootUtils.isKSUInstalled) {
"""
val POST_FS_DATA =
if (RootUtils.isKSUInstalled && RootUtils.fileExists("/data/adb/ksu/bin/ksu_susfs")) {
"""
#!/usr/bin/env sh
MODDIR="${'$'}{0%%/*}"
modid="Iconify"
Expand All @@ -124,10 +125,10 @@ object Const {
${'$'}{SUSFS_BIN} add_sus_mount /${'$'}i
done
""".trimIndent()
} else {
"""
} else {
"""
#!/usr/bin/env sh
MODDIR="${'$'}{0%%/*}"
""".trimIndent()
}
}
}

0 comments on commit 7af8843

Please sign in to comment.