[Galaxy S 5 General] legomg:
Hello!

This thread is to teach you how to flash TWRP, along with a custom ROM on your T-Mobile Galaxy S5 WITHOUT root!

DISCLAIMER:

Read the whole thread at least one before trying!

Anything you do to your device is your own decision. I am not forcing you to do this. If you screw something up during the process, that isn't my fault.

Custom ROMs can sometimes be unstable. PLEASE make sure you are downloading the correct file for your device model.

Tampering with your device's firmware, including custom recoveries, ROMs, or rooting your device WILL VOID THE WARRANTY.

Flashing a custom ROM WILL DELETE YOUR DATA. Consider backing up your apps, photos, videos, files, etc. online or to an external storage.

Before we start, we need to download a few things.

*Do not download anything with Safari! Safari unzips zip files, but we want them to stay zipped. DO NOT RE-ZIP THE FILE YOURSELF!!! It will not be zipped in the correct format!*

1. Odin v3.12.3: (Odin)

2. The TWRP recovery tar file: (TWRP)

3. Your custom ROM zip file. (There are many ROMs out there, but Lineage is a pretty good one: (Lineage OS klte) Choose the most recent release.) IMPORTANT: Make sure you download this to your phone's internal/external storage to an easily accessible location.

4. A GApps package. This is required if you want to be able to download apps from the Google Play Store. Go to the Open GApps page and choose ARM, and Android 7.1. You shouldn't need anything more that micro. IMPORTANT: This file also goes onto your phone's internal/external storage.

5. Your device drivers. Most of the time, Windows will automatically install the required drivers once you put in the device, but in the case this doesn't happen, try googling your devices model number and "windows drivers." Follow the process to install.

Alright, with that out of the way, let's install TWRP.

1. With your phone unplugged, boot into "Download mode." Power off your device. Then hold down the Power, Home, and Vol- buttons until you see a warning pop up.

2. Accept the warning by clicking Vol+.

3. Run the Odin exe file we downloaded earlier. (You may have to unzip the file first.)

4. Go to Options and disable auto reboot. Go back to the Log tab.

5. Plug your device into the computer. You should see Odin say "ADDED!" on the side.

6. Click "AP" and locate the TWRP recovery tar file we downloaded earlier.

7. Once you select the file, click "Start."

8. When finished, it should say "PASS" at the top. This is where you unplug your phone and remove the battery.

9. Wait 10 seconds before putting the battery back in.

10. Try booting into recovery by holding down the Power, Home, and Vol+ buttons. If it reads "Team Win Recovery Project" at the top, then congrats! You've successfully flashed TWRP! If it says at the top "stock recovery," try the whole process again from step #1.

Now we can flash your custom ROM!

1. This is where we wipe your phone's data. Click on "Wipe." Then Swipe to factory reset.

2. After you have wiped your device, click on "Install"

3. Now navigate to the ROM zip file and select it.

4. Click on "Add more zips"

5. Navigate to the GApps zip file and select it.

6. Swipe to install. This can take some time, so grab a cup of coffee and maybe check out my Youtube channel? ;)

7. The moment of truth: click on Reboot, then System. The first boot can take a minute. If it doesn't show up after 5 minutes, remove the battery and try wiping and flashing again.

CONGRATULATIONS!! You've installed a custom ROM! Enjoy! :laugh:

EXTRA:

If you want to enable root on your Lineage OS device, you must flash an additional file first.

1. Go to this link and download the first su (arm) file and save it to an easily accessible location.

2. Boot into recovery mode once again by powering off your device, then pressing and holding Power, Home, and Vol+ until TWRP appears.

3. Click on install.

4. Select the su zip file we downloaded earlier.

5. Swipe to install.

6. Once it is installed, boot back into system.

7. Navigate to developer options in settings.

8. Scroll down to"Root Access" and change it to either Apps, or Apps and ADB.

Awesome, now you have root!

Thanks for the help:

[url]https://xdaforums.com/tmobile-galaxy-s5/general/root-how-to-root-sm-g900t-firmware-t3358190[/URL]