How to install TWRP recovery on Xiaomi with anti-rollback

In this guide we will see how to install the recovery TWRP on Xiaomi smartphones with anti-rollback, but above all how to keep it on official MIUI ROMs (Global stable and beta, stable China and beta).

Perhaps you will have found yourself in the unpleasant situation of not being able to install the TWRP recovery with the classic command in cmd

fastboot flash recovery "nomedellarecovery" .img

This most likely depends on the fact that theanti-rollback does not allow us to do this without flashing a small file with a strange name first. An analogous situation happens with the flash of the Global ROMs which, overwriting the custom recovery, will restart you again when you restart. Mi Recovery - recovery stock of Xiaomi smartphones. With the following steps then we will see how to flash TWRP on Xiaomi smartphones without any problem!

How to flash and maintain TWRP recovery on Xiaomi smartphones with anti-rollback

twrp xiaomi anti-rollback

Before starting, let's specify some obvious things for most of the geeks: the bootloader of your Xiaomi smartphone must be unlocked; on your PC you should have installed and running adb. If not, you can find it here. You can verify that the phone communicates without problems with the PC via this command from cmd

adb devices

If you meet these requirements, you can continue with these simple steps.

  1. Download the file dummy.img and put it in the same folder where you downloaded TWRP
  2. Connect your Xiaomi terminal to the PC and open it cmd from the folder where the TWRP recovery is stored. To do this, hold down the Shift key and right-click in an empty space, then select Open PowerSheel window here
  3. Give the command
    fastboot flash antirbpass dummy.img
  4. Now flash the TWRP as you are used to doing, ie with the command
    fastboot flash recovery "nomedellarecovery" .img
  5. Done, you have successfully flashed TWRP!

In case you want to flash one now Official MIUI ROM, remember that at the end of the ROM installation you will necessarily have to flash another file: no verity. You find it at this address.

This is necessary because, as already mentioned, the official ROMs overwrite the modified recovery and then you will find yourself having to redo the whole procedure again.
Finally, it is very important to remember that the "no verity" file will be reflected each time the rom is updated.

Receive the latest posts by email

Enter the email and choose the inscriptions on the new page
Added devices
  • Compare Smartphone (0)
  • Compare Notebook (0)