How to Flash TWRP v3.0.2-0 on Mi 4s

TWRP Mi 4s Flashing

This tutorial will guide you step by step to flash TWRP v3.0.2-0 either temporarily or permanently on your Mi 4s phone through fastboot method. 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. For your information, each Xiaomi device comes with stock Mi Recovery that should be sufficient for common tasks but not for flashing SuperSU or flashing custom Android ROM. TWRP Recovery is the most popular custom recovery tool among many MIUI fans due to its compatibility as well as its easiness to use. Flashing TWRP on your Mi 4s will bring you to a one step closer to root your device.


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 flashable image for Mi4s.

Also read : How to unlock Mi phone bootloader officially – the artcle is for Mi 5 but the steps should be similar


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, rename the twrp-3.0.2-0-libra-aqua-20160612.img file to recovery.img.

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. If that happens, simply install alternative USB ADB Drivers if that happens. E.g: ADB Driver Installer v1.4.3Universal ADB USB Drivers, PDANet, or Xiaomi USB Drivers.

Also read : How to fix common ADB device error.


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 recovery.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 recovery.img

The flashing process should take only few seconds to complete:

downloading 'boot.img'...
OKAY [ 0.398s]
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 4s (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 4s :

fastboot flash recovery recovey.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.

  • Yashifa Anindita Imani

    doesn’t work:(

  • Ari

    I got it work on my Mi4s. I got my TWRP wiped after install Xiaomi stock ROM before. Thanks!!!

  • Yan Molie