# susfs4ksu **Repository Path**: blockz/susfs4ksu ## Basic Information - **Project Name**: susfs4ksu - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-17 - **Last Updated**: 2025-07-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # [Important Notice] # _**Master repo will stay on version 1.3.8 forever, please refer to other branches for latest SUSFS code for different kernel version.**_ # Introduction # An addon root hiding kernel patches and userspace module for KernelSU. The ksu_susfs userspace tool and ksu module requires a susfs patched kernel to work. # Warning # This is only experimental code, that said it can harm your system or cause performance hit, **YOU ARE !! W A R N E D !!** already ## Compatibility ## The susfs kernel patches may differ for different kernel version or even on the same kernel version, you may need to create your own patches for your kernel. ## Patch Instruction ## 1. Clone the repo with a tag that has release version, as tag with release version is more stable 2. Run `cp ./kernel_patches/KernelSU/10_enable_susfs_for_ksu.patch $KERNEL_ROOT/KernelSU/` 3. Run `cp ./kernel_patches/50_add_susfs_in_kernel-.patch $KERNEL_ROOT/` 4. Run `cp ./kernel_patches/fs/susfs.c $KERNEL_ROOT/fs/` 5. Run `cp ./kernel_patches/include/linux/susfs.h $KERNEL_ROOT/include/linux/` 6. Run `cd $KERNEL_ROOT/KernelSU` and then `patch -p1 < 10_enable_susfs_for_ksu.patch` 7. Run `cd $KERNEL_ROOT` and then `patch -p1 < 50_add_susfs_in_kernel.patch`, **if there are failed patches, you may try to patch them manually by yourself.** 8. Make sure again to have `CONFIG_KSU` and `CONFIG_KSU_SUSFS` enabled before building the kernel, some other SUSFS feature are disabled by default, you may turn it on via menuconfig or change it in your config file 9. Build and flash the kernel. ## Build ksu_susfs userspace tool ## 1. Run `./build_ksu_susfs_tool.sh` to build the userspace tool `ksu_susfs`, and the arm64 and arm binary will be copied to `ksu_module_susfs/tools/` as well. 2. Now you can also push the compiled `ksu_susfs` tool to `/data/adb/ksu/bin/` so that you can run it directly in adb root shell or termux root shell, as well as in your own ksu modules. ## Build ksu module ## The ksu module here is just a demo to show how to use it. It will also copy the ksu_susfs tool to `/data/adb/ksu/bin/` as well when installing the module. 1. ksu_susfs tool can be run in any stage scripts, post-fs-data.sh, services.sh, boot-completed.sh according to your own need. 2. Then run `./build_ksu_module.sh` to build the KernelSU module. ## Usage of ksu_susfs ## - Run ksu_susfs in root shell for usages. ## Known Issues ## - mnt_id_reorder feature causes bootloop for non-gki devices, more test is needed. ## Credits ## - KernelSU: https://github.com/tiann/KernelSU - @Kartatz: for ideas and original commit from https://github.com/Dominium-Apum/kernel_xiaomi_chime/pull/1/commits/74f8d4ecacd343432bb8137b7e7fbe3fd9fef189 ## Telegram ## - @simonpunk