Installation
There are two ways to install XenonSU, and they differ only in what you patch.
Before you start
Back up your current boot images. On a device with A/B slots:
adb shell "su -c 'dd if=/dev/block/by-name/boot$(getprop ro.boot.slot_suffix) of=/sdcard/boot.img'"
adb shell "su -c 'dd if=/dev/block/by-name/init_boot$(getprop ro.boot.slot_suffix) of=/sdcard/init_boot.img'"
adb pull /sdcard/boot.img
adb pull /sdcard/init_boot.imgKeep those files. A patched image that boots is not the same as a recovery plan.
Method 1 — patch a stock image (recommended)
- Download the stock firmware for your exact build number and extract
init_boot.img(Android 13+) orboot.img(Android 12). - Copy it to the phone.
- Open XenonSU → Install → Select file and patch.
- Choose the image and let it patch.
- Pull the patched file and flash it:
fastboot flash init_boot patched_init_boot.img
fastboot rebootThe manager picks init_boot or boot from the kernel's KMI: android12-* patches boot, anything newer patches init_boot.
Method 2 — direct install
If the phone is already rooted by another KernelSU build, Direct install patches the live partition and reboots. This is faster and is what the install screen recommends when it is available.
After flashing
Open the manager. The home card should read Working instead of Not installed. If it still says not installed, the patched image did not take — check that you flashed the slot you are actually booting from:
adb shell getprop ro.boot.slot_suffixUninstalling
Use Install → Uninstall → Restore stock image with the backup you took above, or flash the stock init_boot/boot in fastboot.