Redmi Note 5 Install TWRP

How to Install TWRP as the Custom Recovery on the Redmi Note 5 Pro

Xiaomi’s smartphones are generally well received by the developer community so this tutorial will walk you through installing TWRP on the Redmi Note 5 Pro.

To do things such as gaining root access or installing a popular modification you will first need to have TWRP on the smartphone. There are two different ways to do this though as one way is a full install while the other method is to temporarily boot into TWRP. A full install (which is what I did in the main tutorial and video) is for those who don’t mind using a custom recovery and flashing the ZIP file after booting into TWRP is required if you choose to stay on MIUI. This is ideal for people who flash things frequently.

However, you may just want to temporarily boot into TWRP to flash your systemless mods (such as Magisk, SuperSU, Xposed, etc.) if you plan to continue using MIUI and also want to install the new OTA updates as quickly as possible. This method is the same except we don’t need to flash the dm-verity ZIP file since the stock kernel will overwrite the custom recovery (TWRP) when you boot back into MIUI. This method is ideal for people who want to keep the stock recovery installed so that official OTA updates of MIUI are easier to install.

If you plan on using a custom ROM like LineageOS or a custom kernel then it will include support for dm-verity already and you won’t have to install the ZIP file.


In order to complete the tutorial below, you're going to need some things set up ahead of time. Please follow the how to install ADB and Fastboot tools guide if you haven't done so already. Then you will need to follow the how to enable Developer Mode guide, as well as the tutorial that shows you how to enable USB Debugging Mode. With USB Debugging Mode granted from the PC the phone is connected to, you can then test this by running the command "adb devices" (without quotes) in a command prompt or PowerShell to make sure the computer recognizes the device.


Install TWRP on the Redmi Note 5 Tutorial

  1. Download TWRP for your Redmi Note 5 model
  2. Rename that file to twrp.img
  3. Then move or copy the file to the same folder as your ADB and Fastboot tools
  4. Download the no-verity ZIP file to the Redmi Note 5
  5. Boot the Redmi Note 5 into Fastboot Mode
  6. Connect the Redmi Note 5 to the PC with a USB cable
  7. Open up a Command Prompt in the same folder as ADB and Fastboot
  8. Then type out the following command. . .
  9. fastboot flash recovery twrp.img
  10. . . .and press Enter on the keyboard
  11. Wait for the Finished response and then type the following command. . .
  12. fastboot boot twrp.img
  13. . . .and press Enter on the keyboard
  14. Swipe the arrows to the right to allow modifications and fully install TWRP
  15. Tap the Install button at the TWRP main menu
  16. Locate and tap on the no-verity ZIP file we downloaded
  17. Swipe the white arrows to the right to confirm the installation
  18. Then tap the Reboot System button when that completes

Explanation

First of all, you’re going to need to have USB drivers installed for Xiaomi devices if you haven’t done so already. Then we need to have ADB and Fastboot tools downloaded and extracted to a folder on the computer. Once that is done we can go ahead and download TWRP for our version of the Redmi Note 5 Pro and then rename it to twrp.img before moving or copying it to the same folder as your ADB and Fastboot tools are located. We can also download the dm-verity ZIP file to the phone right now as well.

Then we can boot the Redmi Note 5 into Fastboot Mode before we connect it to the PC with a USB cable. With that done we will need to open up either a Command Prompt or a Windows PowerShell in the same folder as our ADB and Fastboot tools. This is so we execute the fastboot flash recovery twrp.img command which will install TWRP to the recovery partition. With that done we then need to execute the command fastboot boot twrp.img which will boot us directly to the TWRP main menu.

Redmi Note 5 Install TWRP Commands
The first command here install TWRP to the recovery partition and the second command boots us directly into TWRP.

When you first boot into TWRP you will be asked if you want to allow modifications. If you’re doing a full install of TWRP then yes, you want to allow modification so go ahead and swipe the white arrows to the right. This will then take us to the TWRP main menu and from here we need to tap the Install button. Next, browse to and tap on the dm-verity ZIP file if you need it installed (so we can keep TWRP installed on MIUI) and then swipe the white arrows to the right to confirm the installation.

You’ll see a Reboot System button appear after the ZIP file has been flashed and tapping it will take us right back into MIUI. Now, if you just want to temporarily boot into TWRP then you can skip the first fastboot command that I mentioned (step 9) and instead just do the one I listed in step 12. This will just temporarily boot into TWRP so that even if you swipe the white arrows to allow modifications MIUI will still overwrite your recovery image with the stock recovery instead of the custom TWRP recovery image.

Again, it just depends on what type of setup you want on your device. I plan on installing a custom ROM so I am happy to fully install TWRP but you may want to keep using MIUI so sticking with the stock recovery would be your best bet as it means you can easily install OTA updates.


If this tutorial helped you in any way, please consider donating via PayPalPatreon, or GoFundMe. If you can't afford to donate then sharing this on social networks such as Facebook, Twitter, etc. will also help a lot.


 

3 thoughts on “How to Install TWRP as the Custom Recovery on the Redmi Note 5 Pro”

  1. This didn’t work for me. The command in your instructions: “fastboot boot twrp.img”, comes back with error message “FAILED (remote: Anti-rollback check failed). I had to resort to “fastboot boot C:sdk\platform-tools\twrp.img” in order to get the TWRP on my screen.

    After rebooting, Xiaomi bootloader pops up to replace it with no TWRP unfortunately.

    1. The commands. . .

      – fastboot boot twrp.img

      and. . .

      – fastboot boot C:sdk\platform-tools\twrp.img

      . . .should be the same thing assuming you put the TWRP image file in the ADB/Fastboot tools folder like I instructed. So I’m not sure why that error would have come up. That confuses me but thank you for the feedback (as it could be helpful to others).

      In any case, once you were able to boot into TWRP, did you flash the no-verity ZIP file as I mentioned in step 4?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.