- Kotlin 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
The module is published as a release asset with SHA256SUMS.txt instead of being served from the raw lkm branch. Point the per-KMI download at the release URL; the asset name and the bundled ksud fallback stay the same. Change-Id: Id3078beb38d7402dab43aa278e28997b Signed-off-by: zenin1504 <[email protected]> |
||
| app | ||
| gradle/wrapper | ||
| .gitignore | ||
| build.gradle.kts | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| LICENSE | ||
| README.org | ||
| settings.gradle.kts | ||
KSUPatcher

Table of contents
About
Ksupatcher is a simple, native tool for managing KernelSU directly on your phone. It handles boot image patching and OTA updates without needing a PC or manual shell scripts. The app uses Jetpack Compose for a clean Material 3 interface and a reliable root shell for the heavy lifting.
Ksupatcher only modifies the image you explicitly select. It does not root the installed ROM by itself: root is granted per-app by the KernelSU manager after you flash a patched image and install the manager APK.
Compatibility
- Android 9.0+ (API 28)
- Requires an unlocked bootloader.
- Supports Xiaomi
onyxwith theandroid15-6.6GKI branch (kernel 6.6). - Uses KernelSU v3.3.1. The onyx
android15-6.6LKM is downloaded from theksulkmrelease (built by the onyx prebuilt pipeline), with the LKM embedded inksudas an offline fallback. The KMI is detected from the kernel branch (not the Android userspace version). - Devices with a dedicated
init_bootpartition (Android 13+ GKI devices, including Xiaomionyx) are supported; patchinit_boot.img, notboot.img. -
Known device profiles:
- Xiaomi
onyx(POCO F7 / Redmi Turbo 4 Pro):android15-6.6,init_boot.
- Xiaomi
Features
- Local Patching: Patch boot images for KernelSU on-device.
- OTA Survival: Flash patched images to the inactive slot to keep root after a system update.
- LKM Support: Download the onyx
android15-6.6module from theksulkmrelease and pass it toksudexplicitly. If the download fails, the LKM embedded inksudis used. A custom module can still be selected manually. The release also publishesSHA256SUMS.txtfor manual verification. - KMI Selection: Auto-detects the KMI from the kernel branch and lets you override it.
- Live Logs: Real-time terminal output from
ksud. - Theming: Full Material 3 and Monet (dynamic color) support.
- Updates: Check for and install new app versions from GitHub.
Installation Guide
Method 1: Direct LKM (If already rooted)
- Open Ksupatcher and grant root access.
- Go to the Install tab.
- Confirm the detected KMI (override it only if you know your kernel branch differs).
- Select Install LKM (Current).
- Tap Update LKM and reboot.
Method 2: Manual Boot Patching
- Provide your stock
init_boot.img(orboot.imgon devices without aninit_bootpartition). - In the Install tab, select Patch Boot Image.
- Select your file and tap Start Patching.
- Move the patched file from your Downloads folder to a PC and flash via fastboot:
fastboot flash init_boot init_boot-patched.img
For a ROM zip, the app extracts init_boot.img automatically from the archive (or from payload.bin in a full OTA).
After booting, install the matching KernelSU manager APK from the official v3.3.1 release.
Method 3: Post-OTA Flash
- Install your system OTA update but do not reboot.
- Open Ksupatcher and go to the OTA tab.
- Tap Flash OTA to patch and flash the inactive slot.
- Once finished, tap Reboot Now within the app.
Credits
- The KernelSU team.
- @JoshuaDoes for the root shell wrapper logic.
License
This project is licensed under the MIT License.