So you have a notification telling you that MIUI has an update available - great! Unfortunately the process in the Magisk OTA Upgrade Guide doesn't work for this phone, for some reason even after "uninstalling" Magisk the updater still refuses to apply the OTA update.
If you have installed a custom recovery then you may be able to apply the update through that, but I'll assume that you've followed this guide to root and are still using the stock recovery.
Updating is a 3 step process:
- Flash updated firmware.
- Patch new
- Flash patched
We'll be doing a "dirty" flash, which keeps your device storage intact. This should be fine for minor updates, however if the phone won't boot then you'll need to do a clean flash which will wipe your phone, so you should backup your data using a tool like Titanium Backup before proceeding.
Flash updated firmware:
Patch new
Flash patched
Happy hacking!
If you have installed a custom recovery then you may be able to apply the update through that, but I'll assume that you've followed this guide to root and are still using the stock recovery.
Updating is a 3 step process:
- Flash updated firmware.
- Patch new
boot.img
.- Flash patched
boot.img
.We'll be doing a "dirty" flash, which keeps your device storage intact. This should be fine for minor updates, however if the phone won't boot then you'll need to do a clean flash which will wipe your phone, so you should backup your data using a tool like Titanium Backup before proceeding.
Flash updated firmware:
- In the Updater app find the MIUI version that it wants to install (e.g.
MIUI-V13.0.8.0.RKEEUXM
).- visit the MIUI Updates Tracker and download the matching Stable Fastboot update (if you can't find it read Extract boot.img from Payload below).
- unzip the TGZ and the TAR that it contains.
- connect your phone and run
adb reboot bootloader
to enter fastboot.- run the
flash_all_except_data_storage.bat
script to flash the updated firmware. Your phone will reboot when it's done.- (optional) if your phone won't boot then you'll need to perform a "clean" flash. Enter fastboot again and run the
flash_all.bat
script (this will wipe your data).Patch new
boot.img
- push the new
boot.img
to the phone using adb push .\images\boot.img /sdcard
(you'll need to have selected "File transfer/Android Auto" in the "Use USB for" prompt on the phone).- in the Magisk App click Install in the Magisk tile, tap Select and Patch a File, select the
boot.img
file, and tap Let's Go.- pull the
magisk_patched-*.img
from the phone using adb pull /sdcard/Download/magisk_patched-*.img .\
.Flash patched
boot.img
- boot into fastboot mode once again using
adb reboot bootloader
.- flash the patched image using
fastboot flash boot magisk_patched-*.img
- reboot using
fastboot reboot
Happy hacking!
Extract boot.img from Payload
If you can't find a fastboot image (boot.img) for your version then you might be able to extract it from the full firmware package. This will require the use of a third party tool such as payload-dumper (python) or payload-dumper-go. Note that you may be better off just waiting for the fastboot image to be released to the public.
Last edited: