Home How To How to Flash Recovery Image Using ADB and Fastboot

How to Flash Recovery Image Using ADB and Fastboot

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 stuff these are .img that can be flashed via fastboot mode.

In some devices, you need to flash recovery image using ADB and Fastboot. Majorly this applies to the device which has Google’s stock UI such as nexus, pixel, most Motorola device etc. You can learn what is custom recovery from our previous article.

Here is the complete tutorial how you can flash recovery via fastboot on your Android device.

Before taking any step further we request you to take backup of Android device. This will be very useful if something goes wrong while flashing. In almost all cases everything will work out fine.


  1. Recovery Image.
  2. Android device drivers.
  3. ADB and Fastboot Drivers.
  4. If Bootloader available then it should be unlocked. Read: Unlock HTC Bootloader, Unlock Sony Bootloader.
  5. USB Cable.
  6. Windows PC/Laptop.
  7. An Android Device. ;)

Steps To Flash Recovery Image Using ADB and Fastboot

  1. Install your device drivers and Minimal ADB and Fastboot on your computer.
  2. Enable USB Debugging On Your Device.(Go To Settings -> Developers Option -> Tick The USB Debugging Option)(In Case You Does Not Find Developer Options In Your Device Then Go To Settings -> About -> Tap On Build Number Many Times…A Pop Will Show That You Are Now A Developer….)
  3. Connect your device to your computer via USB cable.
  4. Open Minimal ADB and Fastboot on your computer.Minimal ADB & Fastboot
  5. To check whether your device is detected or not by the computer typeADB Devices
    adb devices
  6. Reboot into bootloader mode using the following command.
    adb reboot bootloader
  7. Copy recovery image to C drive and rename recovery image to recovery.img.
  8. Type the following command to flash recovery image.
    fastboot flash recovery c:\recovery.img
  9. Now type the following command to reboot bootloader.
    fastboot reboot-bootloader
  10. and then type the following command to erase cache.
    fastboot erase cache
  11. Now type the following command to reboot your device.
    fastboot reboot
  12. Now disconnect your device.
  13. You have successfully flashed recovery image to your Android device.
  14. If you are looking forward to rooting your Android device then you can easily Root Android Device Using Custom Recovery.

Thank you for reading this post and keep connected to Tech Arrival to continue enjoying wonderful posts. Share your views about this post in the comment section below. If you are still having any query throw it in the comment section.

If you find this post helpful, don’t hesitate to share this post on your social network. It will only take a moment and also it is quite easy and helpful for others.

Button Not Working?

“This post may contain affiliate links & we will be compensated if you make a purchase after clicking on our links”
[Read More Here]

About Author

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.


    • Hello Marius,

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

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

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

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

  • Stay Connected

    Button Not Working?

    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

    8 Best Gaming Keyboards Under $100 in 2020

    A good gaming keyboard must meet various requirements. It should be comfortable for e-mailing, chatting, and, most of all, gaming. Among the...

    12 Best Torrent Clients of 2020

    Torrent Clients are software applications that allow you to download files that use peer to peer connection system. BitTorrent is one of...

    All Time Favorites