Doing An OTA Update on MIUI with TWRP Recovery

Doing An OTA Update on MIUI with TWRP Recovery 1

This article shows you the working method on how to do the MIUI OTA update on any Xiaomi phones having TWRP installed instead of the original Mi stock recovery.

TWRP is a custom recovery featuring advanced functions compared to the stock recovery that sports only a limited set of features.

In case if you are in a hurry:

We will try to make this article as consize as possible. However, maybe there will be part of its which is not easy to grasp. If this the case, please do not hesitate to write a comment down below.

Additionally, we can ensure the safety aspect for the whole process of this method. We also believe in a regression model, there is always error variable alongside the dependent and independent variables. That said, bad things happens.

Therefore, we strongly suggest you to create backups of your data and files, especially the most important ones. Apart of doing this trick, creating a regular backup is also a good habbit.

What is MIUI OTA?

Over The Air (OTA) is a new mechanism introduced in Android OS. Almost all Android skins including MIUI, ColorOS, EMUI, OxygenOS, HTC Sense, etc. are having this feature in place.

Avaoiding full package download process which is very big in size is the main advantage of Android OTA update. On top of that, such a mechanism cuts a long download process and hence faster flashing process can occur.

In the manufacturer’s point of view, OTA updates can make new releases more flexible. Instead of having to provide the full ROM package, updating only the most important parts is more efficient.

MIUI OTA Update is a system update mechanism that happens seamlessly over the air. The OTA means that the MIUI system will download the incremental update package through the Internet and will install it automatically.

There is no need for you to manually download the update package. Simply approve the update and you’re good to go.

OTA Update mechanism can save your bandwidth and your valuable time.

About TWRP

TWRP is the world’s most popular custom recovery. It is a product of Team Win Recovery Project. As far as we know, there is no single rival strong enough to challenge TWRP’s popularity.

TWRP becomes favorite for many users including Mi Fans around the globe. The reasons are obvious. TWRP sports advanced features. Second, it also support touchscreen display. Therefore, you no longer need to press the Volume rockers to navigate through its menu, nor also to press the Power button to select any options.

On top of that, the user interface of TWRP is more intuitive compared to that in stock recovery.

However, there is only one big drawback of using TWRP on any Xiaomi phones. MIUI OTA update will stop working. The OTA Update mechanism requires the official Mi stock recovery to proceed. Replacing the stock recovery with any custom one will prevent the system to flash the OTA package.

That said, this situation is not the fault of TWRP basically. Instead, it’s just the internal security measure present in MIUI.

This article shows the workaround to getaway from such an issue.

How exactly you can do the MIUI OTA update process with TWRP custom recovery installed on your Xiaomi phone? Let’s jump into the trick below.

Prerequisites

The following initial steps are necessary.

This section tells you to: install the required drivers, and to flash TWRP recovery. You can skip this section if you already have TWRP on your phone.

Step 1. Download Xiaomi ADB Fastboot Driver zip file (miui-ADB-Driver-Installer-v1.4.3.zip) and install it on your computer. This step is necessary to install ADB Fastboot system-wide.

Step 2. Download the Android Platform Tools zip file (platform-tools_r29.0.4-windows.zip). Extract the zip file as there is nothing to install here. You’ll just get a folder named “platform-tools”.

Step 3. Enable Developer Options and USB Debugging on your phone:

Go to this path to activate Developer Options:

Settings >> About phone >> tap on the MIUI Version 7x >> Congratulation, you are a developer.

Go to this path to enable USB Debugging:

Settings >> Additional Settings >> Developer Options >> USB Debugging >> switch the toggle on.

Step 4. Unlock the bootloader of your phone. Read the full guide on how to unlock MIUI bootloader officially here. The process will reset your phone and hence, you’ll lose all your data.

Step 5. Download TWRP recovery file depending on your phone variant. You can use Google for this or visit our specific custom recoveries section to browse around.

Step 6. Rename the TWRP recoveryfile from whatever its name to “recovery.img”. In most cases, you may not need to include the “.img” suffix.

Step 7. Copy/move the recovery.img to the “platform-tools” folder.

TWRP recovery.img

Step 8. Connect your phone to your computer using its USB cable.

Step 9. Choose the “File Transfer” mode if asked (do not choose the charging mode).

Step 10. In Windows Explorer, go to the “platform-tools” folder.

Step 11. Click on an empty area in the address bar of Windows Explorer, type cmd, then hit Enter on keyboard. This launches the Command Prompt window.

Steps to Flash Pitch Black TWRP on Mi A2 (jasmine_sprout) 3
Example Illustration

Step 12. Type following command in there. Hit Enter on the keyboard to execute each line.

adb devices
adb reboot bootloader
fastboot devices
Steps to Manually Install TWRP on Redmi 7 (Unofficial Build by Wzsx150) 4

Your phone will boot into Fastboot mode or what so-called the Bootloader mode. The following image will appear.

Steps to Manually Install TWRP on Redmi 7 (Unofficial Build by Wzsx150) 5

Step 13. Let’s flash the TWRP using command below:

fastboot flash recovery recovery.img

Step 14. Finally, reboot your phone using this command:

fastboot reboot

Step 15. The phone should now reboot back into the system.

The steps of installing TWRP mentioned above is the most common one. In reality, some devices need specific instruction to flash TWRP successfully. For instance: flashing additional vbmeta package, flashing initial zip file, booting initial recovery package, and so on.

Please look for the specific methond if you are not sure. Anyhow, you can proceed to the next section if you have TWRP flashed already.

Guide to update MIUI OTA

Once you received the MIUI OTA update notification saying a new version available, follow these steps to update the MIUI on your phone through OTA method.

Step 1. Go this path on your phone:

Settings >> About Phone >> System Update >> click the three dots at the top corner >> Download latest package.

Wait for the download process to complete.

Step 2. Connect the phone to your computer using its USB cable.

Step 3. Launch ADB-Fastboot connection to the phone. See Step 9 – Step 11 from the previous section above.

Step 4. Type following command:

adb devices

Your computer will attempt to establish an ADB connection to the phone.

Step 5. Next, issue this command:

adb shell
ls /sdcard/downloaded_rom
exit

The command lists all available file within the “downloaded_rom” folder which in this case is the MIUI OTA incremental ROM you’ve just downloaded earlier.

You’ll see the file name ending with a .zip extension, for instance:

miui_DAVINCIEEAGlobal_V10.3.15.0.PFJEUXM_b6738621e2_9.0.zip

This tutorial uses the example file name above throughout the whole steps. Replace it with the actual file name of yours.

Step 6. Copy the MIUI OTA package to your computer as a backup. Use this command:

adb pull /sdcard/downloaded_rom/miui_DAVINCIEEAGlobal_V10.3.15.0.PFJEUXM_b6738621e2_9.0.zip ./

Step 7. Move the MIUI OTA zip file to the upper directory to prevent the system seeing this update file.

adb shell
mv /sdcard/downloaded_rom/miui_DAVINCIEEAGlobal_V10.3.15.0.PFJEUXM_b6738621e2_9.0.zip /sdcard/
exit

Step 8. Switch off the phone completely by pressing the Power button and choosing Power Off option.

Step 9. Press the Volume Up button and the Power button simultaneously to reboot it to the TWRP recovery mode.

Step 10. Choose “Install“, locate the OTA ROM zip file, then tap on it to select it.

Step 11. Do the “Swipe to confirm flash” action.

Step 12. Once done, choose “Reboot” then “System“.

Step 13. Again, launch the command prompt window and use this command to remove the no-longer-needed OTA ROM zip file.

adb devices
adb shell rm /sdcard/miui_DAVINCIEEAGlobal_V10.3.15.0.PFJEUXM_b6738621e2_9.0.zip
exit

Step 14. At this point, you can disconnect your phone from the computer.

That’s all.

If your device was rooted previously, you can flash Magisk again right after flashing the ROM zip file (after Step 7).

Conclusion

MIUI OTA Update mechanism comes as a solution to make the system update happening seamlessly. However, the MIUI system prevents it to happen if the stock recovery has been replaced with a custom one.

TWRP, on the other hand, is irresistable due to its powerful features. This guide helps you to enjoy the OTA Update while also using TWRP at the same time.

Enjoy.

One Response

  1. Rudy Slotboom October 23, 2019

Leave a Reply