If you are wishing to flash a custom ROM on your Samsung Galaxy S5 you’ll need to install a custom recovery image for that. Moreover, once you have a custom recovery installed instead of the stock recovery, you can also take a NANDroid backup which is like a snapshot of the ROM and eliminates the need of having to use multiple apps for backing up the data.
You should know that there is more than one way to install TWRP recovery on your S5 smartphone. We’ve already shown you how to install CWM using Odin. If you don’t like using Odin, or you can’t use Odin because you don’t have a Windows PC, you might prefer flashing your custom recovery with ADB commands. We’ll show you how to get that done now.
BEFORE WE BEGIN
- The first thing you need is to install Android SDK on your computer if you haven’t done that already. if you already have it, you don’t need to install it twice. However, if you don’t already have it you can set it up for Windows and Mac. Here’s our guide on installing Android SDK on Windows.
- You might also need to update the Samsung USB Drivers on your computer.
HOW TO INSTALL TWRP RECOVERY ON SAMSUNG GALAXY S5
- Download the TWRP recovery file from here.
- Shift the TWRP file from the link above to the Android SDK folder on the computer.
- Connect the Samsung Galaxy S5 to the computer using the USB cable.
- Open the Android SDK folder and right-click the mouse on a blank white space where there’s no file and hold down the Shift key. Now choose to open the command window from the list of option on the menu.
- Type the commands “adb shell” followed by “su”. Remember to press the Enter key in between each command.
- Now type “dd if=/sdcard/openrecovery-twrp-188.8.131.52-klte.img of=/dev/block/mmcblk0p21”.
- That’s the last command for installing the recovery. Now you can unplug the smartphone from the computer.
If you didn’t enjoy that guide you can follow the same guide here for ClockworkMod recovery but flash the TWRP recovery from this post instead of the CWM file in Odin.