The Custom Droid

Android Tutorials, Tips and Tricks

How to Install TWRP Recovery on Android?

Download and Install TWRP Recovery on Android Devices

Users who want to customize their Android phone with third-party custom ROMs, root, or mods, must first install a custom recovery. In this tutorial, we will show you how to download and install TWRP recovery on Android devices using Fastboot and Odin. The latest TWRP version available for officially supported devices is TWRP v3.3.1-0.

Android is a versatile OS and that’s majorly because of its open source nature. There’s no limit to what you can tweak up in the software. But that certainly couldn’t be done on any stock OEM device. Manufacturers only tend to deliver certain unique features to specific devices and that’s just about what a regular user would get.

So, if you want to add some more features, customize the appearance of the OS, or want to shift to another firmware altogether, you will need a few things. To start with, you will first have to unlock the phone’s bootloader, which will further enable you to install a custom recovery, like TWRP in this case.

So, what is TWRP?TWRP (short for “TeamWin Recovery Project“) is a custom recovery for Android smartphones and tablets, and also the first one to support touch-enabled interface in recovery mode. The project is led by Dee’s Troy, along with other developers responsible for maintaining TWRP for individual Android devices. At the moment, TeamWin officially supports more than 100 Android devices from various manufacturers. Unofficial ports/development are handled by individual developers for specific Android devices.

TWRP recovery allows users to install third-party firmware like custom ROMs, kernels, and mods. In addition to that, it also enables a user to erase/flash device partitions and backup/restore the complete firmware. And that’s just the starting point, there’s a lot that TWRP can do once you have installed it on your Android device.

How to Install TWRP Recovery on Android?

Prerequisites

Make sure to fulfill the requirements below before you follow the instructions to install TWRP recovery on Android.

  • We strongly recommend taking a full backup of the device before flashing TWRP. You can follow our guide on how to backup Android phones.
  • Charge your phone to at least 50-60% battery level to avoid any sudden shutdowns during the process.
  • In order to flash TWRP recovery, you must first enable OEM unlocking and unlock the bootloader of your device.
  • Download and install USB drivers on your PC.
  • For method 1, you will also need to install ADB/Fastboot tools on the PC. Alternatively, you can also use the Minimal ADB and Fastboot Tool for this.

Download Latest TWRP Recovery for Android Devices

1. Official TWRP Recovery

For your added convenience, we have listed links to all the officially supported Android manufacturers. Simply click on your device’s manufacturer name and download TWRP recovery for your Android device.

2. Unofficial TWRP Recovery

If you could not find your device in the links above, then TWRP doesn’t support your Android device officially. In that case, you can download the latest unofficial TWRP recovery through TWRP Builder. It is an open-source project that allows users to download TWRP recovery for devices that aren’t supported officially.

You can go directly to the project’s download page and enter your Android device’s name/model/manufacturer in the search bar. Alternatively, you can also download their official app from the Play Store (Click the app box below) and use it to download the latest unofficial TWRP for your device.

[googleplay url=”https://play.google.com/store/apps/details?id=com.github.TwrpBuilderF”]

Once you have succeeded to download latest TWRP recovery for your Android device, follow the installation instructions below.

Requirements

In order to install TWRP 3.3+ on your Android device, make sure that the requirements listed below are fully met.

  • You will need a PC with Windows, macOS, or Linux operating system.
  • Take a full backup of all your important data stored on your Android device. Flashing TWRP doesn’t normally erase any data. But for some devices, you’d need to format the /data partition later, so that TWRP can recognize the internal storage. Taking a backup will safeguard all your data in case it’s wiped. You could also follow our detailed guide for this purpose.
  • In order to install TWRP, your phone must have an unlocked bootloader. The bootloader on most OEM Android devices could be unlocked via fastboot. You will find the instructions for that on this page. Alternatively, you can also try looking up for your device-specific guide on our website.

Instructions to Install TWRP Recovery on Android

Installing TWRP on Android devices is easy and there are two different installation methods to do that. First, by using Fastboot, which is highly likely to work on any Android device, irrespective of the manufacturer. And second, by using the Odin tool on Samsung Galaxy devices. That is because these devices do not have a dedicated Fastboot Mode, but Download Mode that communicates with the Odin tool to flash stock firmware or custom binaries in [*.tar] or [*.tar.md5] extension.

The instructions for both the methods has been listed in detail below.

Method 1: Using Fastboot

Important notes:

Most new Android devices come with the A/B partition scheme, like the Google Pixel 3/Pixel 3 XL, Mi A3, etc. These devices do not support direct flashing of the TWRP recovery image via fastboot. On such devices, you will need to temporarily boot into TWRP using the recovery image and then flash the TWRP installer zip file. So, make sure that you know if your device supports A-only or the A/B partition scheme. If you don’t know, then follow this guide on how to check it.

Also, make sure to prepend the commands mentioned in the instructions below with “.\” if you’re using a Windows PC, or “./” if you’re using a macOS/Linux PC.

    1. First off, download TWRP recovery image and TWRP installer zip (If applicable) for your device.
    2. Copy the downloaded TWRP image to the folder where adb and fastboot are installed (e.g. C:\platform-tools”).
    3. Transfer the TWRP installer zip (again, if applicable) to your Android device’s storage.
    4. Open the command-line window:
      • On Windows: Go to the folder where the TWRP recovery image is present. Then hold the SHIFT key and right-click on an empty space inside the folder. Select the ‘Open PowerShell window here’ option to launch PowerShell.
        Install TWRP Recovery on Android Devices - Open PowerShell Window Here
      • On macOS or Linux: Open Terminal and “cd” to the folder where the TWRP recovery image is present (e.g. cd Documents/platform-tools).
        Install TWRP on Android using Fastboot - cd to Platform-tools in Terminal
    5. Connect your phone to the PC using the USB cable.
    6. Now, boot your Android device into Bootloader/Fastboot mode by entering the below ADB command:
      adb reboot bootloader
    7. Once your device is in Bootloader/Fastboot mode and connected to the PC, follow the instructions in the section below depending on if your device supports A-only (Step #8) or the A/B parition (Step #9) scheme.
    8. Devices with A-only Partition:
      1. Enter the below command to flash the recovery image and install TWRP recovery on Android device with A-only partition:
        fastboot flash recovery <recovery-image.img>
      2. Replace “<recovery-image.img>” with the actual filename of the TWRP recovery image. For example:
        fastboot flash recovery twrp-3.3.1-0-angler.img

        Install TWRP on Android Devices with A-only Partition using Fastboot

      3. Now reboot your device using the following command:
        fastboot reboot
    9. Devices with A/B Partitions:
      1. Temporarily boot into TWRP recovery image by entering the following command:
        fastboot boot <twrp-recovery.img>
      2. Replace “<twrp-recovery.img>” with the actual filename. For example:
        fastboot boot twrp-3.3.1-2-crosshatch.img

        Install TWRP on Android Devices with A/B Partition using Fastboot - Boot TWRP Image

      3. Your Android device should now boot into TWRP recovery mode.
      4. Swipe the “Swipe to Allow Modifications” button when prompted.
      5. Tap on the ‘Install’ button in TWRP.
      6. Navigate to the storage and select the TWRP installer zip (twrp-installer-3.3.x-x-codename.zip) file.
      7. Finally, swipe the button on the screen to flash the file and permanently install TWRP recovery on Android device with A/B partition.

So this was how you can install TWRP recove ry using Fastboot. The method shall work for the majority of OEM Android devices.

Method 2: Using Odin on Samsung Galaxy Devices

  1. Download TWRP recovery Odin flashable (*.img.tar) file for your Samsung Device.
  2. Also, download Odin tool and extract the ZIP on your PC.
  3. Go to the extracted folder and run ‘Odin3.exe’ by double-clicking on it.
  4. Boot your Samsung device into Download mode and connect it to the PC.
  5. The COM port in the Odin window should light up.
  6. Click on the ‘AP’ button.
    Install TWRP Recovery on Android using Odin Tool
  7. Select the TWRP recovery tar file for your device.
  8. Do not modify any other settings.
  9. Finally, click on the ‘Start’ button to install TWRP recovery using Odin tool.
  10. Once the flashing process is complete, you shall see the ‘PASS!’ message on the screen and the phone will reboot automatically.

So this was how to install TWRP recovery using Odin on Samsung Galaxy devices.

How to Update TWRP Recovery?

  1. Download the latest TWRP version (.img) for your device.
  2. Connect your phone to the PC using the USB cable.
  3. Copy the downloaded IMG file to the phone’s storage or SD card.
  4. Disconnect the device and power it off.
  5. Boot your Android device into TWRP recovery mode.
  6. Go to the ‘Install’ menu and tap on the ‘Install image’ button at the bottom.
  7. Select the TWRP IMG file.
    Update TWRP Recovery on Android Devices
  8. Next, select ‘Recovery’ from the list of partitions shown on the screen.
  9. Finally, swipe the button on the screen to update TWRP recovery to the latest version.
  10. Once done, tap on the ‘Reboot System’ button.

So now that you have been able to install TWRP recovery on your Android devices, go ahead and flash custom ROMs like Android Pie-based LineageOS 16 and Resurrection Remix 6.0. You can also use it to root your Android phone by flashing Magisk or SuperSU.

If you have any questions regarding TWRP or its usage, or are facing any sort of troubles with installing TWRP on your device then let us know through the comments.

About the Author

Founder and Editor-in-Chief

Dhananjay has more than 11 years of experience in Android software customization and development, and has spent the past 10 years writing about it. He spends most of his prime time reading, learning and writing about Android and other open-source projects. He is also a community-taught web developer. Apart from that, he loves mountain biking and playing video games on his PlayStation.

Comments 8 Comments

    1. Not necessarily. You can install TWRP on the Xiaomi Mi A3 without having to root. However, there are features in the kernel that might need to be disabled so that the device could boot after installing TWRP. Like AVB (Android Verified Boot).

      When you flash Magisk, it automatically patches the kernel and disables such features.

  1. Hello Dhananjay!

    I just read your both guides about installing TWRP.
    This current guide.
    And the second one is this: https://www.thecustomdroid.com/install-twrp-recovery-xiaomi-mi-a3-guide/

    Can you pls explain what’s the difference? I’m gonna install TWRP on my Xiaomi Mi A3.
    ————————————————————
    In this guide installation seems much easier:

    1. Via Fastboot temporarily boot into TWRP recovery
    2. And then just install TWRP installer
    ————————————————————
    But in the second guide it requires more steps:

    1. Via Fastboot flash stock boot image on active slot A
    2. Then change to slot B and flash TWRP image
    3. Then boot to TWRP recovery and then install TWRP installer
    4. After that switch to the slot A and reboot in System

    1. Hi Yaroslav. If you’re going to install TWRP on the Mi A3, I suggest you follow the dedicated guide. This particular guide is a generic one, which means it details the general steps that would work for a majority of different OEM devices.

      Some devices (like the Mi A3 here) might require additional steps due to the way the software is set up by the manufacturer (Xiaomi). So, stick with the instructions in the device-specific guide and let me know if you have any questions or need help installing TWRP.

  2. Will this metod work for sm g965f, android 9, without dm verity file, thank you for answer

    1. Hi Vojo. Flashing the DM-Verity file is necessary in case of the Galaxy S9+.

      I have already covered a complete guide on the topic here.

Leave a Reply

Comments are moderated, and published only if they are relevant to the topic and add value in a constructive way. If you disagree with something, please be polite and respectful. We suggest you read our comment policy before commenting.