Build the kernel
Automatic integration (recommended)
Run the one-liner from the installation guide in the root of your kernel source:
bash
curl -LSs "https://raw.githubusercontent.com/samakshkambxj/OriginSU/main/kernel/setup.sh" | bash -Then enable CONFIG_KSU in your kernel config (plus CONFIG_KPM on 64-bit kernels for KPM support), rebuild, and flash.
Manual integration
- Clone the repo and symlink
kernel/todrivers/kernelsuin your kernel tree. - Add
obj-$(CONFIG_KSU) += kernelsu/todrivers/Makefile. - Source
drivers/kernelsu/Kconfigfromdrivers/Kconfig. - Enable
CONFIG_KSU(andCONFIG_KPMon 64-bit if wanted) and rebuild.
Local manager iteration
Releases are built by CI (.github/workflows/), signed with the project release key. For local iteration:
bash
just build_manager # ksud (aarch64) + manager debug APK
just build_ksud # ksud onlyTagging a release (maintainers):
bash
git tag -a vX.Y.Z -m "OriginSU vX.Y.Z"
git push origin vX.Y.ZPushing a v* tag publishes a GitHub Release with the manager APKs and LKM modules. Required Actions secrets: KEYSTORE, KEYSTORE_PASSWORD, KEY_ALIAS, KEY_PASSWORD.
