How to install TWRP on Xiaomi phones

Team Win Recovery Project or widely known with it’s TWRP abbreviation, is the most popular custom recovery solution available for Xiaomi devices.


Usually stock recovery for Android devices are lackluster in terms of usability and features but with TWRP, it’s completely different. TWRP replaces default Mi-Recovery on Xiaomi devices with a more useful touch-capable interface. One of the reasons why TWRP is so popular is its active development and support for wide range of Android devices. Because of it’s open-source nature, it can be easily ported to lots of devices.

TWRP’s home screen

TWRP is a powerful tool that gives you full control over your device without ever booting into Android system and with it we can flash custom ROMs on our devices, make complete backups of all of our data and even use it to gain root access on our devices. But always be careful when using TWRP recovery; “With great power comes great responsibility”, just a single wrong step can render your device to a hard-bricked state.

How to install TWRP?

First of all, you need a computer and unlocked bootloader on your device. If you don’t know how to unlock bootloader we will be talking about it in our future articles. Until then you can use this guide to unlock bootloader of your Xiaomi device.

1. Download and install Platform Tools.

You are going to need ADB and Fastboot executables to flash an image to your device.

2. Finding compatible TWRP image for your device

TWRP images are specific for device, this means that you can’t use any TWRP on your device. You need a compatible image for your device.

You can find compatible images for your device at XDA forums or official TWRP site.

Once you’ve downloaded the image, rename it to “twrp.img” and put it in a folder that is convenient for you.

3. Flashing TWRP

To flash TWRP, you need to enter Fastboot mode. To enter Fastboot mode;

  1. Turn off your device
  2. Press both power button and volume down buttons at the same time until Fastboot screen shows up
Xiaomi’s Bunny Fastboot logo

Now connect your device to your computer. After this;

  1. Go into the folder that you put the twrp.img file and shift + right click, you will see “open command prompt here” or “open PowerShell Window here” click on it
  2. Now type the command below to see if your computer recognises your phone

“fastboot devices”

If you have encountered this problem;

Try using cmd.exe found in Program Files (x86)\Minimal ADB and Fastboot (and put twrp.img in this folder)

3. After this, enter this command to boot into TWRP without actually installing it

“fastboot boot twrp.img”

4. Once your device boots to TWRP, Navigate to Advanced > Flash current TWRP version

After this, you are going to have a device with TWRP installed on it.