Kernelsu patches for non-GKI kernel to work all functionalitys.
- Choosing the Right Version for Your Build
Depending on your stability needs, you can append a specific tag to the command
curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -s v0.9.5- Your defconfig should contain the following string.
Edit defconfig
nano arch/arm64/configs/codename_defconfigadd this properties
# KernelSU
CONFIG_KSU=y
CONFIG_KSU_MANUAL_HOOK=yㅤㅤㅤ
- Then clone kernelSU patches repo into your Kernel tree.
git clone https://github.com/Jonjeexe/Ksu_Patches.git Patches
curl -O https://raw.githubusercontent.com/jonjeexe/KernelSU_Patches/refs/heads/non-GKI/Patch.shㅤ
- Start Patch by this cmd
bash Patch.sh