Advertisements

How to Flash TWRP Recovery on any Android Phone

In this tutorial, we will show you how to flash the TWRP Recovery on any Android device. One of the biggest USP of having an Android device is its open-source ecosystem. The customizations and tweaks that it brings with itself are virtually endless. Well, we aren’t only talking about the installation of custom launchers and icon packs. These are just the tip of the iceberg, and beyond all these, your device is capable of much more. There is a certain restriction that has been put forward by the OEMs. Every device now has a locked bootloader to prevent modification of the device beyond a certain limit. But once you have unlocked the same, you have opened the gates to a plethora of tweaks.

Some of these include flashing Magisk and gaining administrative rights (aka root), flashing Custom or GSI ROMs, installing different types of mods, ZIPs, and IMG files or even creating an entire device backup (including the partition). But for all of these activists, there stands a pretty important requirement- your device should have a custom recovery like TWRP installed. And in this guide, we will show you how to do just that. But before we list out the steps to flash TWRP on any Android device, let’s check out more about this recovery and the benefits and risks that it brings with itself. Follow along.

What is a TWRP Recovery

Team Win Recovery Project, or more popularly known as TWRP is a custom recovery that users could install on their device to carry out high-end tasks. Although every Android device does have its recovery, that is a stock recovery with limited functionalities. More often than not, it only allows you to reset the device or install OTA updates. That is all. But a custom recovery like TWRP offers a plethora of other features, much beyond what a stock recovery is capable of. Let’s check out all the full feature list of the TWRP Recovery.

TWRP Functionalities

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

NANDroid Backup

backup twrp android

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 partition. 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

data 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 are usually done after each flashing.

Advertisements

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 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 its as well. Make sure to go through the below section before you end up flashing the TWRP Recovery on your Android device.

Advertisements

Risks in Flashing the TWRP Recovery

First and foremost, the entire process of flashing this recovery is quite dangerous. A single error and 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 which itself might be buggy and unstable. Not to forget the point that the process requires an unlocked bootloader, doing 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

twrp home

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

  1. Connect your device to PC via USB cable.
  2. Head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
  3. Execute the below command to boot your device to Fastboot mode:
    adb reboot bootloader
  4. 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

  1. If your device only has the IMG file, then execute the below command:
    fastboot flash recovery twrp.img
  2. Now execute the below command to boot your device to the TWRP recovery.
    fastboot boot twrp.img
  3. 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

  1. 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
  2. Your device will now be booted to the TWRP Recovery. But it is a temporary install. For permanent installation, head over to Install and navigate to the twrp.zip file and perform a right swipe to install it.
  3. You could now reboot your device to OS. For that, head over to Reboot > System.

That’s it. These were the required instructions on how to flash TWRP recovery on any Android device. Do let us know if you face any queries while trying out the above-mentioned steps. Rounding off, here are some iPhone Tips and TricksPC tips and tricks, and Android Tips and Trick that you should check out as well.

Comments

  1. 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?

        1. I have a old mt6572 Intex aqua i4 .I followed the above procedure with every command but it says remote partition recovery does not support flash.please help.

      1. Hi, although I am a little late on this discussion but I have a problem.
        My phone is Micromax canvas 2 Q4310.
        I installed magisk and rooted it.
        Now, I am not able to open recovery mode and I want to install twrp on my phone.
        The adb detects my phone as long as it does not enter bootloader mode.
        After that, orange state comes and phone automatically boots back to normal.
        I tried twrp app, flashify but none helped.
        PS. Help me

  2. When updating recovery I get:

    C:\adb>fastboot flash recovery recovery.img
    target reported max download size of 536870912 bytes
    sending ‘recovery’ (13134 KB)…
    OKAY [ 0.443s]
    writing ‘recovery’…
    (bootloader) Image not signed or corrupt
    OKAY [ 0.243s]
    finished. total time: 0.694s

    Any help?

  3. target reported max download size of 536870912 bytes
    sending ‘recovery’ (17936 KB)…
    OKAY [ 0.658s]
    writing ‘recovery’…
    FAILED (remote: unknown command)
    finished. total time: 0.673s
    it was failing

  4. for those having problems, i found this, http://en.miui.com/thread-1245132-1-1.html

    “Note many devices will replace your custom recovery automatically during first boot. To prevent this, use Google to find the proper key combo to enter recovery. After typingfastboot reboot, hold the key combo and boot to TWRP. Once TWRP is booted, TWRP will patch the stock ROM to prevent the stock ROM from replacing TWRP. If you don’t follow this step, you will have to repeat the install.”

  5. Parceiro sera que voce pode me ajudar tenho o celular Cagabi One, estou tentando fazer root porem o programa flashtools aceita arquivos em .TXT e no recovery que baixei esta .IMG assim o flashtools não reconhece e nao consigo instalar de jeito nenhum.

  6. PS C:\adb> fastboot flash recovery recovery.img
    target reported max download size of 536870912 bytes
    sending ‘recovery’ (14712 KB)…
    OKAY [ 0.467s]
    writing ‘recovery’…
    (bootloader) Image recovery failed validation
    (bootloader) Preflash validation failed
    FAILED (remote failure)
    finished. total time: 0.484s

  7. Get same error as Mauri above.
    Have Ulefone Power 5. In the last step, get the message: FAILED (remote: not allowed in locked state). However I already unlocked bootloader in developer options.

    1. You need unlocking oem to fix your issu.
      1. Go to fast boot mode on your phone and connect with PC
      2. Open PowerShell or CommandPrompt and type “fastboot oem unlock”

      Then you should try installing. I think it makes you happy.

  8. Assalamualaikum Brother

    I installed twrp in XA1 dual {3116} running android 8.0

    I installed recovery.img without first installing boot.img.

    I have sseveral times now installed boot.img and then secovery.img but when I try to boot into system it return to twrp recovery. My phone is not booting into system now.
    either it stuck on sony logo or twrp.

    1. I am in a big problem please help me flash orange fox recovery for my device Asus Zenfone max pro m2 (X01BD) Android pie I uge decrypt file oreo for flash now my Device some app not working I can’t make a call not play YouTube not work camera how to fix it

  9. Model: Blu Studio G2 HD

    Hello, i’ve done everything like the tutorial, the problem is when i get the fastboot screen and i need to press volume up to continue “after typing fastboot oem unlock” i can’t press any button, i just don’t accept any input.

  10. C:\Program Files (x86)\Minimal ADB and Fastboot>fastboot flash recovery TWRP-H300-3.0.2.0.img
    target reported max download size of 134217728 bytes
    sending ‘recovery’ (10208 KB)…
    OKAY [ 0.346s]
    writing ‘recovery’…
    FAILED (remote: failed to get download permission for partition ‘recovery’
    )
    finished. total time: 0.371s

    1. Please reply from the appropriate article to examine your device and TWRP Recovery that you downloaded. This article is just to guide on how to install.

  11. Facing a problem that I boot to my boot loader its showing frp unlock on my honor Holly 2 plus plz help ne to install twrp

  12. i have followed the above stated but when i open the recovery mode it is my stock recovery mode . what can i do?? Help me!!
    Device: OPPO realme1

  13. After step:
    fastboot flash recovery recovery.img
    ————————————————–
    type command:
    fastboot boot recovery.img
    ————————————–
    so device will automatically boot to newly installed TWRP Recovery

  14. from where can i download TWRP for motorola g5s plus, i have searched whole internet and the file i found was corrupt.

  15. Can a Nokia 2 V be rooted? The OEM unlocking toggle in developer settings is grayed out not allowing me to turn on??? What should I do?

  16. How can I do this on the Meizu Note 9 in infinite loop if I don’t have access to the desktop to enable USB debugging? Can you help me? Is there a way to install twrp without knowing if debugging is active?

  17. Hello,i can’t find the right twrp recovery file for the blackview bv9000 pro. recovery file is invalid. Can you help me please?

  18. Hi bro my phone is not listening to adb devices but in portable devices it is displaying my phone is realme 3i

  19. I have an Alcatel Idol 3, 6045Y, 5.5″ I press Volume Up + Power to enter Recovery Mode. The options I get are: Reboot system now, apply update from ADB, apply update from sdcard, apply update from phone storage, wipe data/factory reset, wipe cache partition, power down, view recovery log. If I choose: apply update from ADB, it tells me: Now send the package you want to apply to the device with “adb sideload “…. If I choose apply update from phone storage, it says there is no update (despite I have copied the recovery.img)
    How do I continue?
    Thank you very much in advance

Leave a Reply

Your email address will not be published. Required fields are marked *

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