How to Install TWRP Recovery via Fastboot
Bootloader / Fastboot mode allows you to flash any partition on a device, be it system, boot, recovery, cache, anything. And not just the partition images from OEMs, you can also flash the custom built .img files via fastboot.
Note: This guide assumes that your device has an unlocked bootloader
1.Download a TWRP recovery .img file compatible for your device.
2.Setup ADB and Fastboot on your PC.
3.Enable USB debugging on your device:
4.Open Settings on your device.
Go to About phone and tap seven times on Build number, this will enableDeveloper options.
Now go back to Settings and you’ll see “Developer options” there, open it.
Tick the USB Debugging checkbox.
5.Open the folder where your TWRP Recovery .img file is saved.
6.Now open a command window inside that folder. To do that, “Shift + Right click”on any empty white space inside the folder and then select “Open command window here” from the context menu.
7.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:
If your asks for permission to “Allow USB debugging”, tap OK.
8. Once your device boots into bootloader mode, issue the following command into command window to flash the TWRP recovery .img file:
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.
9. Once TWRP is successfully flashed on your device, issue the following command to reboot: