Enable OEM unlocking from Android Developer Settings.
Unlock bootloader. This will erase all data on the device.
fastboot flashing unlock
fastboot flashing unlock_critical
Install the KernelSU app from KernelSU GitHub releases.
Download the image-boot file that matches device model and firmware which includes init_boot.img from the releases section.
Feed init_boot.img file to KernelSU app.
Or, to do it on a Linux X86_64 computer, download magiskboot-linux and ksud-x86_64-unknown-linux-musl from KernelSU GitHub releases. The --kmi
value depends on the current firmware version.
./ksud-x86_64-unknown-linux-musl boot-patch -b nothingflash/init_boot.img --magiskboot magiskboot-linux-main/x86_64/magiskboot --kmi android14-6.1
Flash the patched image.
fastboot flash init_boot ./patched_init_boot.img