Enable developer options and then OEM unlocking.
Unlock bootloader. This will erase all data on the device.
fastboot flashing unlock
fastboot flashing unlock_critical
Disable developer options.
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. The value can be put together by checking the kernel version.
./ksud-x86_64-unknown-linux-musl boot-patch -b init_boot.img --magiskboot magiskboot-linux-main/x86_64/magiskboot --kmi android14-6.1
Flash the patched image.
fastboot flash init_boot ./kernelsu_patched.img
Download the zip file of the full OTA of the available firmware shown on the OTA update.
On KernelSU, go to settings and press uninstall. Choose "Restore stock image". After the process is complete, do not reboot.
Put the full OTA zip file to /sdcard/ota/
. Dial *#*#682#*#*
. Start the OTA installation. After the OTA installation is complete, press cancel to the restart prompt.
Go to KernelSU and install to inactive slot. Press reboot.