If you are thinking of rooting your Android device, then you might need to root it in order to get full access to your smartphone. However, for rooting any device, you will need a custom recovery. Well, there is no issue of sorting custom recoveries, but for all these, you should know how to Flash Custom Recovery Using ADB Commands.

What is Recovery Mode?

The bootloader is the first thing that runs on a device, and it’s responsible for loading the main operating system. A custom recovery like TWRP can be used to back up the entire device, flash tweaks, and install a new custom operating system. ..

The recovery menu provides options to assist you in recovering your device. For instance, you can reset your device to its factory default state from here. The recovery mode can also be set to flash OTA updates if you would like to flash a replacement ROM or re-flash the factory default ROM file. If you would like to flash a custom ROM, you’ll first need to boot into recovery mode.

What is Custom Recovery?

A custom recovery is a software program that allows you to flash a custom recovery environment onto your Android device. This custom recovery environment can be different from the stock recovery environment that is installed on your device. This can make it easier for you to fix problems with your device and get it back up and running as quickly as possible.

Flash Custom Recovery Using ADB Commands

Pre-requisites

A USB cable is needed to connect your computer to the Android device. The drivers for your computer and the Android device must be installed before you can use the Android SDK. The custom recovery file can be found here.

If you are having any issues while setting up the Android Debug Bridge (ADB) environment, then follow this guide.

adb shell getprop com.android.providers.adb.debug If the command returns the value “true”, your ADB Debugging mode is enabled; if it returns the value “false”, your ADB Debugging mode is not enabled.

ls -l /dev/disk/by-id/ This command lists the contents of the /dev/disk/by-id directory. The output should list a device with the name “sda” if your hard drive is mounted on your computer. If you don’t see a device with that name, then your hard drive isn’t mounted and you’ll need to mount it before you can continue. ..

fastboot oem get_mode This will return the current mode of the device. To enter fastboot mode, reboot your device into fastboot by following these steps:

  1. Power off your device.
  2. Press and hold the Volume Down key while pressing the Power button to turn on your device.
  3. When you see the Fastboot menu, release both keys. 4. Select Recovery by pressing the Volume Up key and then press the Power button to select it. 5. Use the Volume buttons to scroll to Wipe Data/Factory Reset and press the Power button to select it. 6. Press the Volume Down key once more to highlight Yes and press the Power button to select it. 7. Press the Volume Up key twice to exit recovery mode and restart your device normally." To boot into fastboot mode:
  1. Turn off your phone 2) Hold down volume down + power until you see fastboot 3) Select recovery by volume up + power 4) Highlight wipe data/factory reset 5) Press power 6) Highlight yes 7) Press power ..

fastboot flash recovery recovery.img

recoveryboot This will take you to a screen that looks like this: Now type “cmd” and hit enter to start the command prompt. Now type “ipconfig” and hit enter to get the IP address of your computer. This is important because we will need it later on in this guide. Now type “netstat -an” and hit enter to get the network status of your computer. You should see something like this: Now type “ping -c 3 192.168.1.1” and hit enter to test whether your computer is connected to the internet. If it is, you should see something like this: If not, then you may need to update your computer’s firmware or install a new network card.

Conclusion

This is it, you have successfully flashed your first custom recovery on your smartphone. Some of the OEMs don’t allow these types of tasks, and they may void your device’s warranty, so make sure you read their guidelines before doing anything. If you faced any issue while doing this, please let us know about it in the comments section down below.