TWRP Functionalities:
Here are some of the noteworthy features that the TWRP is capable of:
NANDroid Backup:

While a normal backup only creates a backup of your data and some device partitions, a NANdroid backup creates a backup of all the device partitions. Furthermore, once your device ends up in a bootloop, accessing the restore feature of your device is of no use. However, you could still access the TWRP Recovery and hence restore the last created NANDroid backup. Doing so will bring your device back to normal working condition.
Flashing Files:
You could easily flash any ZIP or IMG files onto your device right from this recovery itself. These include the GSI system files, Magisk ZIP files, or even your Custom ROMs.
Wipe:

TWRP also allows you to wipe various partitions on your device with just a right swipe. This is needed when you are about the flash a Custom ROM, or wiping of Dalvik and Cache partition is usually done after each flashing.
Mount:
You could even mount an external USB Drive and directly flash any file right from that storage. This eliminates the need to transfer the file to your device beforehand.
Advanced Functionalities:
There also exist some advanced features in the recovery. For example, you could use the Terminal Command, File Manager, Flash Recovery Ramdisk, and Fix Bootloop among others. All these aren’t needed for everyday usage but only once in a while, but still, their usefulness cannot be ignored.
These are some of the most important usages of TWRP Recovery. But there are some downsides to it as well. Make sure to go through the below section before you end up flashing the TWRP Recovery on your Android device.
Risks in Flashing the TWRP Recovery
First and foremost, the entire process of flashing this recovery is quite dangerous. A single error it might lead to bootloop or even worse a bricked device. Sometimes, even flashing an older version of TWRP might throw in an error or two. Likewise, there exist many modded and unofficial TWRP builds that might be buggy and unstable. Not to forget the point that the process requires an unlocked bootloader, which might make the device warranty null and void.
By going through the perks and risks of installing this recovery, you might have made up your mind. So if you wish to flash the TWRP Recovery on your Android device, then proceed with the below steps.
How to Flash TWRP on any Android Device:

To begin with, make sure to go through the below requirements section. Your device should meet all the below-mentioned points.
Prerequisites:
- Flashing TWRP requires an unlocked bootloader. Make sure you have done so, refer to our guide on how to unlock bootloader on Android devices via Fastboot.
- Also, we would advise you to create a complete device backup beforehand. If you are about to unlock the bootloader as well, then it becomes a necessity if not, then also count is among a requirement.
- Next, enable USB Debugging on your device so that a successful ADB connection gets established between your device and PC. To do so, head over to Settings > About Phone > Tap on Build Number 7 times > Go back to Settings > System > Advanced > Developer Options > USB Debugging.

- Finally, download and install the Android SDK Platform Tools on your PC. This is needed to execute ADB commands to boot your device to fastboot mode.
Download TWRP for your Android device:
Head over to the TWRP official site and download the TWRP build corresponding to your device. Regarding this, there is a pretty important point worth discussing. While there might be only a single IMG file for some devices, others might be having two different files- ZIP and IMG. The thing is the first one (only IMG file) is for those devices that still have a recovery partition.
In these devices, we could directly flash the TWRP.IMG to the recovery partition. On the other hand, the devices without the recovery partition fall in the latter bracket. Hence in those cases, we will first boot the TWRP.IMG to the boot partition and then permanently flash the TWRP.ZIP file. Here are all the required instructions in this regard.
Steps to Flash TWRP on Android:
First off, make sure to rename the recovery files to Twrp. Hence the complete names should be twrp.zip (if available) and twrp.img. Furthermore, transfer these recovery files to the platform tools folder. Also, transfer the twrp.zip to your device’s internal storage.
- Connect your device to your PC via a USB cable.
- Head over to the platform tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
- Execute the below command to boot your device to Fastboot mode:
adb reboot bootloader
- Your device will now be booted to TWRP. Now follow the steps as per the TWRP files available for your device
Devices with only TWRP.IMG
- If your device only has the IMG file, then execute the below command:
fastboot flash recovery twrp.img
- Now execute the below command to boot your device to the TWRP recovery.
fastboot boot twrp.img
- Once it boots to TWRP, you could then boot it to the OS, via the Reboot > System option in TWRP.
Devices with both TWRP.ZIP and TWRP.IMG
- If you are having both the ZIP and IMG files, then, first of all, boot your device to TWRP via the following command:
fastboot boot twrp.img
- Your device will now be booted to the TWRP Recovery. But it is a temporary install. For permanent installation, head over to Install, and then navigate to the twrp.zip file, and perform a right swipe to install it.
- You can now reboot your device to OS. For that, head over to Reboot > System.
Conclusion:
Android’s open-source nature allows for a wealth of customization and modifications. Among the most significant tweaks is the flashing of TWRP Recovery, which acts as a gateway to various advanced tweaks like rooting, flashing custom ROMs, and backing up device partitions. While TWRP provides a pathway to unlock the full potential of an Android device, it’s essential to understand the benefits and potential risks involved. Unlocking bootloaders and installing custom recovery can void warranties and may introduce vulnerabilities. Therefore, users should proceed with caution, ensure they’re informed, and always back up their data before venturing into such modifications. Rounding off, here are some iPhone Tips and Tricks, PC tips and tricks, and Android Tips and Trick that you should check out as well.
Salaam bro, I’ve tried to follow this and it is not working for me. Actually, all of the steps work successfully and using ADB, I can install TWRP, the process goes through fine. But, when I try and boot my phone into recovery mode, it boots into the standard Xiaomi recovery options and not TWRP.
The phone is unlocked and I have followed all of the instructions correctly.
Any ideas?