KSU Patcher for onyx
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
zenin1504 1b9a01ef96 ksupatcher: Fetch the LKM from the ksulkm release
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]>
2026-12-03 12:37:13 +01:00
app ksupatcher: Fetch the LKM from the ksulkm release 2026-12-03 12:37:13 +01:00
gradle/wrapper build: update android toolchain and dependencies for java 25 2026-06-07 15:28:59 +00:00
.gitignore feat: add AppearanceCard to SettingsScreen 2026-04-07 17:41:24 +05:30
build.gradle.kts build: update android toolchain and dependencies for java 25 2026-06-07 15:28:59 +00:00
gradle.properties refactor(app): harden patch flow and trim dead payloads 2026-04-06 16:21:29 +00:00
gradlew fix(gradlew): forward cli arguments correctly 2026-04-06 14:54:00 +00:00
gradlew.bat chore: set up ksupatcher project 2026-03-27 22:34:43 +05:30
LICENSE LICENSE: Initial import 2026-02-14 17:26:10 +08:00
README.org ksupatcher: Fetch the LKM from the ksulkm release 2026-12-03 12:37:13 +01:00
settings.gradle.kts feat(ui): replace material icons with hugeicons, add m3 expressive animations 2026-08-27 19:05:33 +05:30

KSUPatcher

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 onyx with the android15-6.6 GKI branch (kernel 6.6).
  • Uses KernelSU v3.3.1. The onyx android15-6.6 LKM is downloaded from the ksulkm release (built by the onyx prebuilt pipeline), with the LKM embedded in ksud as an offline fallback. The KMI is detected from the kernel branch (not the Android userspace version).
  • Devices with a dedicated init_boot partition (Android 13+ GKI devices, including Xiaomi onyx) are supported; patch init_boot.img, not boot.img.
  • Known device profiles:

    • Xiaomi onyx (POCO F7 / Redmi Turbo 4 Pro): android15-6.6, init_boot.

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.6 module from the ksulkm release and pass it to ksud explicitly. If the download fails, the LKM embedded in ksud is used. A custom module can still be selected manually. The release also publishes SHA256SUMS.txt for 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)

  1. Open Ksupatcher and grant root access.
  2. Go to the Install tab.
  3. Confirm the detected KMI (override it only if you know your kernel branch differs).
  4. Select Install LKM (Current).
  5. Tap Update LKM and reboot.

Method 2: Manual Boot Patching

  1. Provide your stock init_boot.img (or boot.img on devices without an init_boot partition).
  2. In the Install tab, select Patch Boot Image.
  3. Select your file and tap Start Patching.
  4. 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

  1. Install your system OTA update but do not reboot.
  2. Open Ksupatcher and go to the OTA tab.
  3. Tap Flash OTA to patch and flash the inactive slot.
  4. Once finished, tap Reboot Now within the app.

Credits

License

This project is licensed under the MIT License.