Installation
Easy Integration
Copy, paste and run! Easy integration CLI commands
NOTE
Run the following commands in the kernel source code root directory according to your needs.
KernelSU Legacy
sh
curl -LSs "https://raw.githubusercontent.com/KernelSU-Legacy/KernelSU-Legacy/v1.1.1/kernel/setup.sh" | bash -sh
curl -LSs "https://raw.githubusercontent.com/KernelSU-Legacy/KernelSU-Legacy/v3-legacy-susfs/kernel/setup.sh" | bash -sh
curl -LSs "https://raw.githubusercontent.com/KernelSU-Legacy/KernelSU-Legacy/v3-legacy-susfs/kernel/setup.sh" | bash -s <tag-or-branch>Manual Integration
If you prefer manual integration, you can clone the repository and symlink the kernel directory to your kernel source:
- Clone the repository:sh
git clone https://github.com/KernelSU-Legacy/KernelSU-Legacy - Symlink the kernel directory:sh
ln -sf /path/to/KernelSU-Legacy/kernel /path/to/your/kernel/drivers/kernelsu - Add
obj-y += kernelsu/todrivers/Makefile. - Add
source "drivers/kernelsu/Kconfig"todrivers/Kconfig.