From 7af8843f93a8502511918b8d08943c943c112c25 Mon Sep 17 00:00:00 2001 From: DrDisagree Date: Wed, 8 Jan 2025 18:40:18 +0600 Subject: [PATCH] Proceed with global mount only if KSU SUS-FS available Signed-off-by: DrDisagree --- .../main/java/com/drdisagree/iconify/common/Const.kt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/drdisagree/iconify/common/Const.kt b/app/src/main/java/com/drdisagree/iconify/common/Const.kt index 6f45121cc..aee63e44a 100644 --- a/app/src/main/java/com/drdisagree/iconify/common/Const.kt +++ b/app/src/main/java/com/drdisagree/iconify/common/Const.kt @@ -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" @@ -124,10 +125,10 @@ object Const { ${'$'}{SUSFS_BIN} add_sus_mount /${'$'}i done """.trimIndent() - } else { - """ + } else { + """ #!/usr/bin/env sh MODDIR="${'$'}{0%%/*}" """.trimIndent() - } + } }