Notes:
- You do not need to root the S5 running stock Samsung Firmware before flashing TWRP if you use Odin3 as described below.
- The sequence is > Samsung OS > flash TWRP custom recovery > Flash LineageOS + optional packages if you wish.
- Installing an official Samsung firmware on your S5 is a last resort troubleshooting step when all else fails when using a custom OS (ROM) or to make sure that a problem is not hardware related as the stock Samsung firmware it is the most stable for a given device because Samsung had paid staff working for years on it to fix the problems reported by thousands of users & warranty claims.
- The Galaxy S5 SM-G900V Verizon LTE is a special case and contrary to most S5 klte + variants it has a locked bootloader out-of-the-box thanks to Verizon. The first thing to do is to check if the bootloader is unlocked if you bought the phone used. To check that boot in Download mode & if you see "Mode: Developer" the bootloader is unlocked. See the attached screenshots in S5 G900V Bootloader Update?. If it's not unlocked see this XDA S5 Verizon thread. If you have the CID 15 variant that can be unlocked, do it then flash TWRP as described below.
1- Charge the S5 to
at least 80% & to avoid errors it is better to connect the phone
directly to the computer and not via a USB hub when using Odin. Also better to have Odin, Samsung Firmware & TWRP on C drive & not on external drives.
2- Download the most recent
(@ the present) Odin3 v3.14.4:
https://dl2018.sammobile.com/Odin3-v3.14.4.zip
Unzip or unpack the .zip file & copy the Odin3-v3.14.4 folder to the root of C drive.
3- Optional: you can install the most recent Samsung stock Firmware for your exact S5 model for testing purposes or to update the modem, bootloader & other vendor's firmwares not included in LineageOS. The respective download pages include instructions about how to install it using Odin:
- Most trusted. May require to register (slow) or paid subscription (fast) depending on the firmware you choose: https://www.sammobile.com
- Don't be fooled by fake Download ad buttons: https://updato.com. Now requires to be registered.
4- Download the
TWRP for Samsung Galaxy S5 Qualcomm (klte family) for
your exact model. Get the twrp-3.4.0-0-klte....img
.tar version to use with Odin & copy it to your Odin3-v3.14.4 folder. The TWRP app is collecting data, wants to always run in the background & is not recommended.
The most recent TWRP Recovery for S5 is required for the built-in OTA LineageOS Updater to work properly.
5- On the computer Right-click Odin and run as Administrator. Click on the
AP button and navigate to the twrp-3.4.0-0-klte....img
.tar file.
(See attached Odin screenshot)
Turn off the phone & boot in Odin Mode (A.K.A. Download Mode)
(press and hold Home + Power + Volume Down buttons and confirm with Volume up to Continue) then connect to the computer and in Odin > Options
do not select Auto Reboot and keep only the F. Reset Time option selected
and nothing else! Click Start.
When Odin has finished the TWRP Recovery installation you will see a blue bar on the S5 screen and
All threads completed. (succeed 1 / failed 0) in the Odin Log window. Disconnect the phone & reboot in TWRP Recovery Mode:
(volume up + Home + Power buttons) and release the buttons as soon as you see the Samsung Galaxy S5 logo otherwise by default the stock Samsung firmware will revert to the stock Samsung recovery.
This is a one time thing, afterwards booting in Recovery will always be in TWRP as it will rename the stock Samsung one.