HomeHow ToHow to Install TWRP Recovery via Fastboot on Android

How to Install TWRP Recovery via Fastboot on Android

Bootloader mode (Fastboot mode) allows you to do various amazing things. You can flash any partition using this mode. If you are familiar with the Android Operating System, these are .img (Image Files) that can be flashed via fastboot mode on any Android device.

This process will work on most Android smartphones nowadays, but for some manufacturers like Samsung, you will have to use a different method than the one mentioned below. Please click here for more information on How to Flash TWRP Recovery via Odin on Samsung Devices

What is TWRP Recovery?

Proceeding to Install TWRP Recovery is a significant step in unlocking the potential of your Android device. Before proceeding, you should know what it is. If you already know, you can skip this section. 

Team Win Recovery Project, often abbreviated as TWRP, is a feature-packed custom recovery and currently one of the best that holds significant significance for an Android Power User. It can perform multiple actions, such as backing up partitions, wiping partitions, installing custom ROMs/modules, and much more. Most importantly, it is primarily the first step in rooting your Android device. You can easily install Magisk ZIP to root your Android device once TWRP recovery is installed. 

Twrp Team Win Recovery Project

As a precautionary measure, we recommend you take a backup of your Android device. In most cases, there is nothing to worry about if the steps are followed correctly.

Prerequisites

  1. Enable USB Debugging: Go to Settings > About Phone > Tap “Build Number” 7 times. You’ll see a pop-up that says, “You are now a developer”. Head back to Settings > Advanced. A new option called “Developer Options” will appear. Tap it and Enable USB Debugging. 
Allow Usb Debugging On Android
  1. Install Android SDK Platform Tools: Download the respected version for your OS from this link. Unzip the folder and remember the path. We will use this in the tutorial further to install TWRP recovery using commands provided by these tools.
  2. Unlocked Bootloader: It is likely that your device will have a bootloader and will be locked by default. The ways of unlocking differ from manufacturer to manufacturer. So before proceeding, complete this step as well.

Downloading TWRP Recovery Image for Your Device

Important Note: TWRP Recovery Image differs from device to device. Installing a TWRP Recovery Image that is not made specifically for your device/model will likely not work and is highly not recommended. 

The best way to obtain a compatible TWRP Recovery Image is from official sources. Here’s how:

  1. Head to the official TWRP Website; there will be a list of brands on the devices page. 
Twrp Official Website Devices Page
  1. Select the brand of your Android device and then select the model as well. Ensure that it matches precisely with your device. If not, skip the next step.
  2. Scroll down to the “Download Links” section and download the latest one from the list. For the latest devices, there will be two files: .img and .zip; in that case, download both of them. (Keep this tab open because we will need this for the next part.)
Twrp Official Lg G6 Page

Sometimes, your Android device model will not be listed on the official TWRP website. In that case, your best bet will be to search for a compatible TWRP Recovery Image on forums like XDA-Developers. If not, you’re out of luck. :( 

If you successfully download the recovery image, copy that/those file/files to the platform-tools folder we downloaded in the prerequisite section and rename the recovery image file to “recovery.img”, and if there is a zip file, rename it to “recovery-installer.zip” to streamline the process in the next section. 

Platform-Tools Folder On Mac

Identifying Your Android Device Partition Type

After the launch of Android 8.0, there were some under-the-hood changes in the Android partitioning system. There are two types of partitioning styles: Type A (For Older Devices) and Type A/B (For Newer Devices). It means that Type A devices has a separate recovery partition, and Type A/B now has integrated recovery partitions in each. This will change the process of installing TWRP recovery later in the tutorial. Here is how you can find out which partition type your device is using:


Protect Your Online Privacy With Surfshark
[The VPN that we use here at Tech Arrival]


  1. The recommended way is to take the official TWRP Website’s help. Head over to the tab that we opened in the previous section. 
  2. Check whether the installation method mentions “Fastboot Install Method (No Root Required)” or “This device uses Dynamic Partitions”. Or Simply put it this way, if there was only .img file or both .img & .zip files. The former is for “A-Type Partition” and the latter for “A/B-Type Partition”.
Download Twrp For Redfin

If your device wasn’t listed on the official TWRP Website, check the source from where you downloaded the recovery image or use the Treble Check App from the Google Play Store to identify the partition type. 

Steps To Install TWRP Recovery Image via Fastboot on Android (Windows & Mac)

After completing all the steps mentioned above, let’s understand a simple and fairly easy process to flash and install TWRP Recovery on Your Android Device using Fastboot. 

  1. Connect your Android device to the computer via a USB Cable. 
  2. Head over to the platform-tools folder we downloaded earlier in the requisite section.  
  3. If you are using Windows, hold the “Shift Key”, right-click in the empty space in the folder and select “open command window here”.
Platform-Tools On Windows
  1. Alternatively, if you are a Mac user, open the terminal and mount the platform-tools folder using the cd command. From here onwards remember to prefix all the commands with “./” for Mac.
Mount Platform-Tools Folder On Mac Terminal
  1. Type the following command to verify the ADB connection for the connected device. If the connection is successful, you will see the deviceID listed there; otherwise, try reconnecting the device and checking if any additional device-specific drivers are required.
adb devices
Adb Devices Command On Mac Terminal

You will be asked to confirm on Android device the connecting with your computer, allow it and execute this command again until “unauthorized” is removed.

Accept Usb Debugging Permission On Android
  1. Reboot into bootloader mode using the following command:
adb reboot bootloader

This will reboot your device and boot it up in the fastboot mode.

For Devices With A-Type Partition

  1. If you have followed the earlier steps correctly, the following command will flash the recovery image to your Android device within a few seconds. fastboot flash recovery twrp.img
  2. Now reboot your device using
fastboot reboot
Fastboot Reboot Command On Mac Terminal

Important Note: A few devices try to overwrite the TWRP recovery with the OEM one in the 1st boot after TWRP is installed. To prevent this, find the key combination to boot into TWRP using Google Search (Generally Power + Volume Down), and while executing step 3 in the abovementioned process, hold that key combination to boot into TWRP directly. It will take care of that issue. 

For Devices With A/B-Type Partitions

  1. Boot Temporary into TWRP Recovery directly using the command below:
fastboot boot recovery.img
Fastboot Boot Recovery Command On Mac Terminal
  1. Now push the zip file we downloaded earlier using:
adb push recovery-installer.zip /
Adb Push Recovery Zip Using Mac Terminal
  1. Now, on your Android device, Tap Install. Select the zip file we just copied to the device & swipe right to confirm the install. 
Twrp
  1. Once successful, tap Reboot & then tap Recovery.
  2. You will again be booted directly into TWRP Recovery. This means it is now permanently installed on the active partition. 
  3. Now you can reboot your device by tapping Reboot & then System 

You have successfully flashed the recovery image to your Android device. If you are looking forward to rooting your Android device, you can easily Root Android Device Using Custom Recovery.

Fun Fact About This Article: This article was originally written in 2014; a lot has changed since then. But if you recall earlier times, there used to be another popular recovery image called CWM(ClockWorkMod) Recovery and many custom recoveries from different enthusiast developers. Time has changed a lot, and now the TWRP rules; hence, this article was updated in 2023 to accommodate the changes that have happened in the past decade. 


“As an Amazon Associate & Affiliate Partners of several other brands we earn from qualifying purchases.” [Read More Here]


Mehul Boricha
Mehul Boricha
Mehul Boricha is the founder of Tech Arrival & Astute Links. He is a computer and smartphone geek from Junagadh, Gujarat, India. He is a Computer Engineer by Education & an Entrepreneur by Passion. Apart from technology geek, he is an audiophile & loves to connect with people.

22 COMMENTS

    • Hello Marius,

      It’s very simple. Ctrl + C the downloaded image and go to drive C and press Ctrl + V. I hope you understand.

  1. Hello,
    Always stuck in final step sending ‘recovery’… forever. :(
    I was changed many folders and tried change file name but same result.
    Any solutions??

    Here is copy of command message:
    C:\adb>adb devices
    List of devices attached
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    LGM210fe3eaa43 device

    C:\adb>adb reboot bootloader

    C:\adb>fastboot flash recovery c:\recovery.img
    target reported max download size of 262144000 bytes
    sending ‘recovery’ (16376 KB)…

    • Hello Han,

      It seems like there is something wrong with the connection of the device or bootloader. Never came across such problem in my life. So don’t know about it yet. Will let you know if I find what is causing this issue and probably a fix.

      • Hello,
        Thank you for your reply.
        This phone is LG Aristo Nougat 7.0
        This phone is my second phone, not main.
        I just interesting about install custom recovery using ADB and then root.
        I was tried many methods for installing custom recovery but all faild.
        Tried change COM port and USB port too.
        My computer properly detected connecting phone to PC.

        Anyway, this is not important for me I just interesting and I will keep search. :)
        Thank you very much anyway.

    • Have you booted your phone to fastboot mode? If yes then there is some problem with the connection. Most probably your computer does not have fastboot drivers for your device. To check that kindly go to device manager and see whether your device is recognized as a fastboot device or not.

  2. Erasing cache did not go through, Help please.

    D:\_Downloads\Lenovo P70-A\adb>fastboot flash recovery twrp.img
    target reported max download size of 134217728 bytes
    sending ‘recovery’ (13614 KB)…
    OKAY [ 0.454s]
    writing ‘recovery’…
    OKAY [ 0.861s]
    finished. total time: 1.320s

    D:\_Downloads\Lenovo P70-A\adb>fastboot reboot-bootloader
    rebooting into bootloader…
    OKAY [ 0.004s]
    finished. total time: 0.004s

    D:\_Downloads\Lenovo P70-A\adb>fastboot erase cache
    ******** Did you mean to fastboot format this partition?
    erasing ‘cache’…
    FAILED (remote: unknown command)
    finished. total time: 0.003s

    • Hello Lexy,

      I don’t know why that happened but you can continue without it. But it still you want to clear the cache manually then I will recommend you to manually boot into recovery menu and clear the cache from there. Otherwise, I will recommend you to give it a go without clearing the cache.

  3. hey guys,it’s showing the following lines after following the steps
    target didn’t report max-download-size
    sending ‘recovery’ (8886 KB)…
    OKAY [ 0.280s]
    writing ‘recovery’…
    FAILED (remote:
    partition ‘recovery’ not support flash)
    finished. total time: 0.299s
    plz help me out.

    • Hello Shivam,

      Please provide more details including your device make and model, from where you got the file, etc.

  4. Hello, I have an quick question:
    If i remove the “c:/”, and just put: fastboot flash recovery [file_name].img, does it works in the same way?

  5. Hi, xiaomi mi 10T lite 5G – bootloader LOCK
    I have this phone from few months, it is amazing till 2 days ago when I did update it OTA – from xiaomi
    now my phone just bootloop in MI logo

    I don`t know how to :( please help

    • If it’s only been a couple of months since you got the phone. Try contacting the Xiaomi Support and get them to flash new firmware for free in their service center.

Leave a Comment

Please enter your comment!
Please enter your name here

By submitting the above comment form, you agree to our Privacy Policy and agree with the storage and handling of your data by this website.


Stay Connected

Subscribe to our Newsletter

Stay updated with all the latest news, offers and special announcements.

By signing up, you agree to our Privacy Policy and agree with the storage and handling of your data by this website.

Latest Posts

10 Tips to Boost Your Followers & Likes on TikTok

In the ever-evolving world of social media, TikTok has emerged as a powerhouse platform that has taken the digital landscape by storm. With its...

Step-by-Step Instructions for Moving Your WordPress Site to a New Hosting Service

Moving your WordPress website to a new hosting service can be daunting. Many moving parts are involved, and it can quickly become a nightmare...

Is Passvers iOS System Recovery Safe?

When you try recovering a broken-down iOS system with a third-party iOS system recovering program, security is the priority you feel concerned about. Passvers...

What Channel is the Yankees Game on Spectrum TV?

With the Yankees game coming up, baseball fans are excited to watch their favorite team perform. Spectrum TV subscribers are lucky as they can...

TOZO Golden X1 Review: Best Earbuds Under $150?

TOZO Golden X1 are the latest wireless earbuds that we got a chance to review thoroughly. To be very honest with you guys, when...

All Time Favorites

12 Best WiFi Hacking Apps for Android & iPhone

Today, almost anywhere we go, we are surrounded by tons of WiFi Networks, whether at our homes, hotels, workplaces, or even public places like...

21 Best Android Apps Not on Google Play Store

Google Play Store has the most extensive collection of apps for Android. Almost everyone downloads apps from the Play Store. But many excellent apps...

15 Best Game Hacking Apps for Android with/without Root

Are you a mobile gamer? If you are, then you've come to the right place. This post will tell you about the Best Game...

How to Download Torrent Files with IDM (Torrent to IDM)

Hey guys, you may all have heard about different ways to download torrent files. And some of you may also have downloaded them using...

11 Best Download Managers for Windows

The Internet is a vast resource of a lot of things which includes music, videos, movies and a lot of other things. The ability...