From 3ff10d6622dad28416a8469410b74bb30f3be640 Mon Sep 17 00:00:00 2001 From: Rifat Azad Date: Thu, 26 Jun 2025 23:55:29 +0600 Subject: [PATCH] susfsd: remove deprecated CONFIG_KSU_SUSFS_SUS_OVERLAYFS and add CONFIG_KSU_SUSFS_HAS_MAGIC_MOUNT --- userspace/susfsd/jni/susfsd.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/userspace/susfsd/jni/susfsd.c b/userspace/susfsd/jni/susfsd.c index 61111f46..581a5591 100644 --- a/userspace/susfsd/jni/susfsd.c +++ b/userspace/susfsd/jni/susfsd.c @@ -119,50 +119,50 @@ int main(int argc, char *argv[]) { ptr_buf += str_len; } if (enabled_features & (1 << 5)) { - str_len = strlen("CONFIG_KSU_SUSFS_SUS_OVERLAYFS\n"); - strncpy(ptr_buf, "CONFIG_KSU_SUSFS_SUS_OVERLAYFS\n", str_len); - ptr_buf += str_len; - } - if (enabled_features & (1 << 6)) { str_len = strlen("CONFIG_KSU_SUSFS_TRY_UMOUNT\n"); strncpy(ptr_buf, "CONFIG_KSU_SUSFS_TRY_UMOUNT\n", str_len); ptr_buf += str_len; } - if (enabled_features & (1 << 7)) { + if (enabled_features & (1 << 6)) { str_len = strlen("CONFIG_KSU_SUSFS_AUTO_ADD_TRY_UMOUNT_FOR_BIND_MOUNT\n"); strncpy(ptr_buf, "CONFIG_KSU_SUSFS_AUTO_ADD_TRY_UMOUNT_FOR_BIND_MOUNT\n", str_len); ptr_buf += str_len; } - if (enabled_features & (1 << 8)) { + if (enabled_features & (1 << 7)) { str_len = strlen("CONFIG_KSU_SUSFS_SPOOF_UNAME\n"); strncpy(ptr_buf, "CONFIG_KSU_SUSFS_SPOOF_UNAME\n", str_len); ptr_buf += str_len; } - if (enabled_features & (1 << 9)) { + if (enabled_features & (1 << 8)) { str_len = strlen("CONFIG_KSU_SUSFS_ENABLE_LOG\n"); strncpy(ptr_buf, "CONFIG_KSU_SUSFS_ENABLE_LOG\n", str_len); ptr_buf += str_len; } - if (enabled_features & (1 << 10)) { + if (enabled_features & (1 << 9)) { str_len = strlen("CONFIG_KSU_SUSFS_HIDE_KSU_SUSFS_SYMBOLS\n"); strncpy(ptr_buf, "CONFIG_KSU_SUSFS_HIDE_KSU_SUSFS_SYMBOLS\n", str_len); ptr_buf += str_len; } - if (enabled_features & (1 << 11)) { + if (enabled_features & (1 << 10)) { str_len = strlen("CONFIG_KSU_SUSFS_SPOOF_BOOTCONFIG\n"); strncpy(ptr_buf, "CONFIG_KSU_SUSFS_SPOOF_BOOTCONFIG\n", str_len); ptr_buf += str_len; } - if (enabled_features & (1 << 12)) { + if (enabled_features & (1 << 11)) { str_len = strlen("CONFIG_KSU_SUSFS_OPEN_REDIRECT\n"); strncpy(ptr_buf, "CONFIG_KSU_SUSFS_OPEN_REDIRECT\n", str_len); ptr_buf += str_len; } - if (enabled_features & (1 << 13)) { + if (enabled_features & (1 << 12)) { str_len = strlen("CONFIG_KSU_SUSFS_SUS_SU\n"); strncpy(ptr_buf, "CONFIG_KSU_SUSFS_SUS_SU\n", str_len); ptr_buf += str_len; } + if (enabled_features & (1 << 13)) { + str_len = strlen("CONFIG_KSU_SUSFS_HAS_MAGIC_MOUNT\n"); + strncpy(ptr_buf, "CONFIG_KSU_SUSFS_HAS_MAGIC_MOUNT\n", str_len); + ptr_buf += str_len; + } printf("%s", enabled_features_buf); free(enabled_features_buf); } else {