Skip to content

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:

bash
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.img

Keep those files. A patched image that boots is not the same as a recovery plan.

  1. Download the stock firmware for your exact build number and extract init_boot.img (Android 13+) or boot.img (Android 12).
  2. Copy it to the phone.
  3. Open XenonSU → Install → Select file and patch.
  4. Choose the image and let it patch.
  5. Pull the patched file and flash it:
bash
fastboot flash init_boot patched_init_boot.img
fastboot reboot

The 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:

bash
adb shell getprop ro.boot.slot_suffix

Uninstalling ​

Use Install → Uninstall → Restore stock image with the backup you took above, or flash the stock init_boot/boot in fastboot.

Released under the GPL-3.0 License.