How to Install TWRP Recovery via Fastboot On Any Android

Full Step By Step Guide to Safely Install TWRP /  CWM Recovery via Fastboot On Android: Here in this guide you will be guided on How To Install a custom Recovery On Android device using some fastboot commands on a computer. This not that difficult as it sounds, but you need to follow all the steps carefully.

If you are new to these terms then let me explain what Fastboot/bootloader means. Bootloader / Fastboot mode allows you to flash any partition on an Android device like a system, boot, recovery, cache.. etc. Using Fastboot / bootloader, you can also flash the custom-built .img files via fastboot. For example, a custom recovery like TWRP or CWM.

If you want to flash TWRP recovery via fastboot then just follow the easy and simple step by step guide on how to Install TWRP Recovery via Fastboot On Any Android Device. This is applicable for most of the android devices. But there are some devices like Samsung devices which may not work with this guide. You have to use Odin Flash tool to Install TWRP recovery.

What Is TWRP Recovery and Some of its benefits?

TWRP is a custom recovery for Android. It is the most popular Android custom recovery. It replaces the stock recovery On Android devices. It comes with many extra features compared to the stock recovery. It needs the bootloader to be unlocked. Some devices like Xiaomi and Huawei phones need a unlock code.

TWRP Recovery Features

| In Case you Need Google Apps (GApps) then download  From Our Gapps category | Android 14 Gapps

Note: For Samsung Devices, we recommend using Odin Flash tool to Install TWRP recovery

| Samsung Galaxy Devices Guide > How to Install TWRP Recovery On Samsung Devices Using Odin

Important:

Warning:

rootmygalaxy.net will not be held responsible for any kind of damage occurred to your Android device while following this tutorial. Do it at your own risk.

How to Install TWRP Recovery via Fastboot On Any Android Device

Install TWRP Recovery via Fastboot On Any Android Device

Open cmd from here

  • Connect your device to the PC. And type the following into the command window we opened in step 4 above to boot your device into bootloader/fastboot mode:
    adb reboot bootloader

    └ If your asks for permission to “Allow USB debugging”, tap OK.

  • Once your device boots into bootloader mode, issue the following command into command window to flash the TWRP recovery .img file:
    fastboot flash recovery twrp.img

    └ Here modify twrp.img with the name of your TWRP recovery .img file, OR change your TWRP recovery filename to twrp.img and use the command above.

  • Once TWRP is successfully flashed on your device, issue the following command to reboot:
    fastboot reboot

Done!!! Now you should have TWRP on your device

Dibyashree Sharma
Dibyashree Sharma
Dibyashree Sharma graduated in Computer Science from NIT Rourkela. For the past eight years, she has been blogging about Android, which she is really passionate about. She has built a good reputation as a reliable source. Away from the digital sphere, Dibyashree enjoys playing tennis, a sport she is as passionate about as she is about technology.

Comments (62)

  1. Please root options for smg928t my edge plus. I traded up from a note 5… looks like a bad decision. any help would be appreciated

    Reply
    • Check out this Xda thread–>>http://www.xda-developers.com/root-t-mobile-s6edge-on-5-1-1-without-tripping-knox/
      This is for S6 Edge Plus

      Reply
  2. This doesn’t work lol. LG G3 Canadian d852. Step 7 seems to work but the phone never boots into bootloader mode, hence, constantly waiting for device.

    Reply
  3. D:New folder>fastboot flash recovery twrp-3.0.2-0-h815.img
    target reported max download size of 536870912 bytes
    sending ‘recovery’ (31652 KB)…
    OKAY [ 0.720s]
    writing ‘recovery’…
    FAILED (remote: device is locked. Cannot flash images)
    finished. total time: 0.739s

    how do i unlock it

    Reply
  4. Hi,
    it showed me like this

    sending ‘recovery’ (13258 KB)…
    OKAY [ 0.426s]
    writing ‘recovery’…
    OKAY [ 0.884s]
    finished. total time: 1.310s

    but i still couldn’t boot into recovery

    Reply
  5. it only said waiting for device and the phone is in download mode. how long to stay seeing ms.doc ?

    Reply
    • That means your phone is not connected properly.First download & Install Samsung drivers (latest)
      Then install ADB and fastboot on your PC
      then follow the steps.

      Reply
  6. It shows me that! What can i do?
    C:adb>fastboot flash recovery twrp.img
    sending ‘recovery’ (8182 KB)…
    OKAY [ 0.315s]
    writing ‘recovery’…
    FAILED (remote:
    partition ‘recovery’ not support flash)
    finished. total time: 0.342s

    Reply
  7. Where do i get this img. file? I tried it with TWRP but its stuck on the message “Are you sure you want to reboot to recovery and complete specified actions?”, because the ok button doesnt seem to work.

    Reply
  8. xiaomi mi5
    C:UserswraitDownloadsroot portable>fastboot flash recovery twrp.img
    target reported max download size of 536870912 bytes
    sending ‘recovery’ (41812 KB)…
    OKAY [ 0.914s]
    writing ‘recovery’…
    FAILED (remote: Partition flashing is not allowed)
    finished. total time: 0.936s

    Reply
  9. even after doing all these steps twrp is not installed. everything every step is successfully completed but i am stuck with my default custom recovery.

    Reply
  10. none of this works, just end up with your search engine overridden with something else, you sir are corrupt, who knows what i have just infected my mac with, thanks jerk

    Reply
  11. C:adb>fastboot flash recovery twrp-2.8.x.x-xxx.img
    sending ‘recovery’ (11074 KB)…
    OKAY [ 0.417s]
    writing ‘recovery’…
    FAILED (remote: Command not allowed)
    finished. total time: 0.423s

    What is wrong?
    🙁

    Reply
  12. What is the procedure to come out of bootloop in LG G4 (H815). It is not getting to recovery mode as well

    Reply
  13. I’m also having trouble.
    I am using a LG G4 H815.
    I can connect and typ “adb devices” and it shows my phone.
    When I typ “adb reboot bootloader” it takes me to Fastboot mode on the phone, and it says “Waiting for device” on the CMD.
    I tried to typ “fastboot flash recovery twrp……..” but nothing

    What might be the problem?

    Reply
  14. C:adb>adb reboot bootloader

    C:adb>fastboot flash recovery twrp-2.8.x.x-xxx.img
    error: cannot open ‘twrp-2.8.x.x-xxx.img’

    C:adb>fastboot flash recovery twrp-2.8.x.x-xxx.img
    error: cannot open ‘twrp-2.8.x.x-xxx.img’

    C:adb>fastboot flash recovery twrp-2.8-TWRP recovry.img
    error: cannot open ‘twrp-2.8-TWRP’

    C:adb>fastboot flash revovery “C:UsersHarshitDownloadsTWRP recovry.img”
    target reported max download size of 536870912 bytes
    sending ‘revovery’ (17776 KB)…
    OKAY [ 0.395s]
    writing ‘revovery’…
    FAILED (remote: partition table doesn’t exist)
    finished. total time: 0.415s

    C:adb>fastboot flash recovery twrp-“C:UsersHarshitDownloadsTWRP recovry.img

    error: cannot open ‘twrp-C:UsersHarshitDownloadsTWRP recovry.img’

    C:adb>fastboot flash recovery twrp-C:UsersHarshitDownloadstwrp.img
    error: cannot open ‘twrp-C:UsersHarshitDownloadstwrp.img’

    C:adb>fastboot flash recovery twrp.img
    error: cannot open ‘twrp.img’

    C:adb>fastboot flash recovery twrp-2.8.x.x-xxx.img
    error: cannot open ‘twrp-2.8.x.x-xxx.img’

    i am not getting what should i type there can u please help me

    Reply
  15. Bootloader unlocked, USB debugging on, but when “adb reboot bootloader”, it keeps saying “device not found”. Tried several drivers, general ADB drivers etc. Uninstalled all the drivers, devices etc and once again tried the here provided ADB drivers but it keeps poping up “device not found”

    Reply
  16. Hey, I’ve tried everything and none of them seems to be working. Even though i installed twrp, and i can’t enter into twrp recovery mode, it gives me the default recovery mode of honor 5c where they ask me to download recovery mode. and i tried pressing power+volume up, the screen which i’ve got has a message with your device is booting. Please help me through this

    Reply
  17. MY PHONE saying that partition ‘recovery’ not support flash. doing it by Fastboot Flash Recovery method

    Reply
  18. The title of this page should be change as it doesn’t work for every android phone. Fastboot does nothing on a Galaxy Core Prime (Tracfone) SM-S820L. I gave up after 11 minutes of hanging. I’m assuming this phone has the bootloader locked. Any idea how to unlock the bootloader?

    root@lap:/sd/data/android/root# adb reboot bootloader
    * daemon not running. starting it now on port 5037 *
    * daemon started successfully *
    root@lap:/sd/data/android/root# time fastboot flash recovery twrp-3.1.1-0-coreprimelte.img

    ^C

    real 11m56.254s
    user 0m27.739s
    sys 3m6.554s
    root@lap:/sd/data/android/root#

    Reply

Leave a Comment