How to Flash TWRP v3.0.2-1 on Mi 5

TWRP Mi 5 Gemini

Every Xiaomi device comes with stock Mi Recovery that should be sufficient for common tasks but not for flashing SuperSU or flashing custom Android ROM. Rooting through SuperSU is an ultimate task every Android user wants to so all potentials of the phone can be unleashed. But how to install custom recovery and to replace stock recovery safely? Meet TWRP Recovery by Team Win developers team. TWRP Recovery is the most popular custom recovery tool among many MIUI fans due to its compatibility as well as its easiness to use. Moreover, official TWRP builds are always well-maintained and updated by the Team Win developers.

This article tells you all necessary steps – with a twist – on how to install TWRP v3.0.2-1 on Xiaomi Mi 5 based on what described in TWRP official website. As always, we have to keep remind you that flashing custom recovery may not void your phone warranty but it may lead to a bricked device, bootloop, or damaged device if done wrongly. Therefore, creating full backup of all important files and data of your phone is a good practice.

REQUIREMENTS

Here are some things you may need :

  1. A Mi 5 device with unlocked bootloader;
  2. A computer (PC/Laptop) running Windows 7, 8, 8.1, or 10 (64-bit system is recommended);
  3. A USB cable – just use the one came with your phone;
  4. Download latest Xiaomi MiFlash tool;
  5. Download TWRP v3.0.2 package for Mi 5.

Also read : How to unlock Mi 5 bootloader officially.

PREREQUISITES

Firstly, Disable Windows Drivers Signature Enforcement on your computer. How to do it? Simply follow these sequence. You can do that by pressing Windows button + i on keyboard to reveal the Settings page. From there you can choose Update & Security >> Recovery >> Advanced startup >> Restart now. Wait a moment for your computer to restart. Next, go to Troubleshoot >> Advanced options >> Startup settings >> Restart. Once your computer restarts, now choose Disable driver signature enforcement which is option number 7. See the video below for more details :

Secondly, install MIUI Flashing tool you’ve just downloaded into your computer. This is necessary to make sure that you need all required drivers come within MiFlash tool.

Thirdly, extract TWRP v3 package (.zip file) you have downloaded. Use Winzip or Winrar. You will have twrp-3.0.2-1-gemini.img file.

Finally, enable USB Debugging on your phone’s Settings. Read : How to enable Developer Options and USB Debugging on MIUI.

p.s: We won’t use MiFlash tool but we just want to take advantage of its included ADB Fastboot USB Drivers. However, there is a chance your device still won’t be recognized by your computer. Simply install alternative USB ADB Drivers if that happens. E.g: Universal ADB USB Drivers, PDANet, or Xiaomi USB Drivers.

Also read : How to fix common ADB device error.

TWRP ON Mi 5 (TEMPORARY METHOD)

Step 1 – Turn of your phone completely and then reboot into Fastboot mode by pressing Volume Down (-) and Power buttons simultaneously. Release the buttons once you’ve seen Fastboot logo.

Step 2 – Connect your phone to your PC using its USB cable.

Step 3 – Now open up Windows Explorer in your computer and go to following location :

C:/Program Files(x86)/Xiaomi/MiPhone/Google/Android/

Step 4 – Hold down the Shift button on your keyboard and right-click inside that folder. Choose “Open command window here

CMD MiPhone

Step 5 – Next, type this command to see if your device has been connected properly and recognized by your computer.

fastboot devices

Step 6 – Copy the twrp-3.0.2-1-gemini.img file into the same location via Windows Explorer. Copy it to :

C:/Program Files(x86)/Xiaomi/MiPhone/Google/Android/

Step 7 – Now issue this command to flash TWRP into your Mi 5 :

fastboot boot twrp-3.0.2-1-gemini.img

The flashing process should take only few seconds to complete:

downloading 'boot.img'...
OKAY [ 0.398s]
booting...
OKAY [ 0.002s]
finished. total time: 0.400s

Step 8 – Once finished, your phone will then reboot automatically into recovery mode and TWRP interface will be displayed.

Step 9 – Now you can do anything you want to do with TWRP like flashing SuperSU, flashing GApps, and so on.

Step 10 – Make sure you have finished doing your thing with it and once you have done, simply reboot into system and disconnect your phone.

That way you will not lose your stock Mi Recovery so next time you reboot into recovery you will not see TWRP again.

Basically the Step 7 above is a command to boot your device into TWRP Recovery instead of installing it. Shortly, you will only use TWRP temporarily without having to actually flashing it.

TWRP on Mi 5 (Permanent Method)

Simply follow the same sequence as Step 1 – Step 6 above and continue with the Steps below :

Step 7 – Now issue this magic command to truly flash TWRP on Mi 5 :

fastboot flash recovery twrp-3.0.2-1-gemini.img

The flashing process should take only few seconds to complete.

sending 'recovery' (16922 KB) . . .
OKAY [ 0.338s]
writing 'recovery' . . .
OKAY [ 0.494s]
finished. total time: 0.833s

Step 8 – Once done, you may need to wait for ~ 30 seconds to make sure the process is finished completely. Next, you may then turn off your phone by pressing (and holding) the Power button until the Fastboot logo disappears.

flash twrp on mi 5 process

Step 9 – Disconnect your phone from your PC.

Step 10 – Next, let’s reboot into TWRP interface for the very first time by pressing Volume Up (+) and Power buttons all together until it reboots into TWRP.

That’s it. You can now reboot back to normal Android system. The next time you reboot into Recovery by pressing Volume Up + Power buttons. Enjoy!

What’s next? You can flash Custom ROM, Google Apps, SuperSU (root) and so on.

Also read :

  • FrancYescO

    fastboot boot twrp-3.0.2-1-gemini.img won’t start

    fastboot boot twrp-3.0.2-0-gemini.img is okay

    • Zé Marcos

      same. do you have solution?

      • FrancYescO

        Simply use the 3.0.2-0 … Or try test img from xda thread.

  • baaldips

    stuck on twrp logo…… :-/

  • RM199724

    Unlocked and did 3 devices already. Number 4 says succes to all steps but instead of TWRP I get the Xiaomi recovery with the fake Apple screen with a phone and a plug. (Xiaomi recovery)