Install TWRP and Root 5.1.1 update on T-Mobile Galaxy S5

While Galaxy S6 5.1.1 root has been out for a while now, the T-Mobile Galaxy S5 users were left behind as regards their own Android 5.1.1 root, for build G900TUVU1FOF6. Not anymore, using the basic work done by 5.1.1 root chief g.lewarne over S6 5.1.1 builds, user ShinySide over at XDA brought the trick to S5 5.1.1 build, and with great help from some solid and tons of Trap music, he did it — he achieved the root on T-Mobile Galaxy S5!

That’s some real good news, but it comes with a little nagging issue of warranty getting broken. Well, this method uses custom recovery, and breaks KNOX flag, meaning warranty of your T-Mobile S5 will be lost if you root your device.

Remember that Trap music that ShinySide listened a lot of while working S5 5.1.1 root, well, the resulting end product, a custom kernel packaging the root access, has been slightly appropriately named after that only, as, meet one and only — TrapKernel!

All you need to do achieve root access son your T-Mobile S5 is flash the TrapKernel using TWRP/CWM recovery. But if you don’t want to lose warranty, better wait this one out. While there are no hopes as to how and when KNOX-free root solution will be available, it’s upon you to think and decide whether you want root right now or not.

How to Root T-Mobile Galaxy S5 on Android 5.1.1 OF6 update


  • TrapKernel, based on your build no.
    • Build OF6 — Link | File: (12.8 MB)
    • Build OG6 — Link | File: (12.7 MB)
  • TWRP recovery — Link | File: twrp-
  • Odin PC software — Link | File: (1.6 MB)

Supported devices

  • T-MOBILE GALAXY S5, model no. SM-G900T
  • Don’t try on any other Galaxy S5 set than model no. G900T!
  • Don’t try on any other device whatsoever!


Warning: Warranty may be void of your device if you follow the procedures given on this page. You only are responsible for your device. We won’t be liable if any damage occurs to your device and/or its components.

  1. Download the Odin software, TWRP recovery and TrapKernel file from above. Be sure to download the trap kernel based on your current build no., otherwise, camera may stop working for you.
  2. Install Galaxy S5 drivers (method 1 there!) first of all. Double click the .exe file of drivers to begin installation. (Not required if you have already done this.)
  3. Connect Galaxy S5 to PC and transfer the TrapKernel file to the device. It’s very important step, don’t miss it. Make sure you have the TrapKernel on your S5 before proceeding further. (Keep TWRP recovery and Odin on your PC, don’t transfer them.)
  4. Extract the Odin file. You should get this file, Odin3 v3.10.6.exe (other files could be hidden, hence not visible).
  5. Disconnect your S5 from PC if it is connected.
  6. Boot Galaxy S5 into download mode:
    1. Power off your T-Mobile S5. Wait 6-7 seconds after screen goes off.
    2. Press and hold the three buttons Volume Down + Power + Home together until you see warning screen.
    3. Press Volume Up to continue to download mode.
  7. Double click on extracted file of Odin, Odin3 v3.10.6.exe, to open the Odin window, as shown below. Be careful with Odin, and do just as said to prevent problems.
  8. Connect your Galaxy S5 to PC now using USB cable. Odin should recognize your S5. It’s a must. When it recognizes, you will see Added!! message appearing in the Log box in bottom left, and the first box under ID:COM will also show a no. and turn its background blue. Look at the pic below.
    • You cannot proceed until you get the Added!! message, which confirms that Odin has recognized your device.
    • If you don’t get Added!! message, you need to install/re-install drivers again, and use the original cable that came with device. Mostly, drivers are the problem (look at step 2 above).
    • You can try different USB ports on your PC too, btw.
  9. Load the TWRP file into Odin. Click the AP button on Odin and the select the file: twrp-
    • Info: When you load files, Odin checks the md5 of firmware file, which takes time. So, simply wait until that’s done and the firmware file is loaded. Don’t worry if Odin gets unresponsive for a while, it’s normal. Binary size will also show up in Odin.
  10. Go to Options tab in Odin, and un-select the Auto Reboot checkbox. You should have bothAuto Reboot and Re-partition checkbox un-selected. Don’t use PIT tab. Go back to Log tab now, it will show the progress when you hit start button in next step.
  11. Click the Start button on Odin now to start flashing the TWRP recovery on your T-Mobile Galaxy S5. Once done, you’ll get PASS message as show below upon successful installation from Odin. Now, device won’t reboot automatically, which is what we wanted. Proceed to next step to reboot it into recovery mode.
    • If Odin gets stuck at setup connection, then you need to do steps 6 to 12 again. For this, close Odin, disconnect your S5, remove battery, insert it back after 5-6 seconds and then start from step 6 again.
    • Or, if you get FAIL in the top left box, you need to try flashing again, as stated just above.
  12. Reboot your S5 into recovery mode. Do this:
    1. Power off your S5. Wait 6-7 seconds after screen goes off.
    2. Press and hold the three buttons Power + Home + Volume up together until you see Samsung’s logo. Then let go of the buttons. You will soon enter TWRP recovery.
  13. [Optional] Create a backup. Tap on backup, and then select partitions of your choice, preferably all of them, and then do the Swipe action at bottom to start backing up the whole phone! It would always come very handy in case anything bad happens to phone. Go back to TWRP’s main screen by tapping on Home button at bottom left corner.
  14. Now, the Android 5.1 Root. On main screen of TWRP, tap on Install, and then browse and select the Trapkernel file ( On next screen, just do the Swipe action at the bottom to root Galaxy S5 on 5.1 build.
  15. Tap on System Reboot button after that to restart the phone, which will be now rooted on 5.1.1 OF6 update.

That’s it. Enjoy root access! And let us know if you need any help with T-Mobile S5 5.1.1 root access.

If you need any help with this, let us know via comments below and we will try our best to help you out.

  • 2616 Posts
Kapil still loves his Galaxy S2 i9100! No, really. And Galaxy Nexus! Need we say more what kind of guy he is? And he's also a die-hard Liverpool FC fan. Email:
  • Jeremy L

    The kernel breaks the S5 camera.
    Any solutions to that?

    • Krishna

      New version of trapkernel added, which is actually what you need to use in order to get root access properly without breaking camera. try it and let us know. It should fix camera. If it doesn’t let us know.

      • RNST13

        I installed the version on the link above and camera is not working..

  • jpize

    i know it says no other device but metro pcs has 5.1.1 and ive always used tmo guides for it. would this work on my metro s5?

  • Roor is 100% effective but camera fails. Please help

  • romulus777

    Anyone have a workaround for the camera?

    • Krishna

      What problem you facing with camera exactly?

      • Jason

        It says “Warning – Camera Failed” and you cannot use that camera at all in any application that uses the camera. It just shows a black screen too so it doesn’t work. I need a fix for this too. I need to have the camera working. Please help!!!

        • Krishna

          Hi, a new version of trapkernel added, which is actually what you need to use in order to get root access properly without breaking camera. try it and let us know. It should fix camera. If it doesn’t let us know.

          • Soccerdad

            Hi, everything went smoothly for me but the camera does not work for me either. Also, there seems to be no difference with this root. I still can not disable bloatware. Can I revert to a state where my camera will work? I have kids in sports.. I take a million pics

          • Retailcorp

            Did everything correctly and my camera wont work. USB functions are alsonot working properly. Short of a factory reset can I reverse this? At least get camera function back?

          • RNST13

            Can you give download link to new version of Trapkernel?

  • Mr.lee

    Help me. I upgraded from 4.4.2 kikat to 5.1.1 (FOG6) on S5 G900T. But root checker app say that “sorry! …properly…”. So do must i follow guide above?

    • Yes, follow the above guide.

      • Le Van Tho

        Thank you so much, but I’m worry, I see above everybody saying the camera fail

        • Krishna

          The download link has been updated after users reported fail camera problem. Use the FOG6 kernel from above, and you will be fine.

  • Ido

    Thank you!!! Easy as pie even for a begginer like works great and everything else.

  • Gilbert

    Hi i,m complete the process successfully ,but can,t completed installation of SU app, so my galaxy s5 was rooter just shorty period,what i need to do

  • j macgre

    I have an SM-G900T3, but the guide says do not attempt this on any phone other than a SM-G900T.
    So I guess I won’t try it…

  • Hi, I mistakenly chose to install SuperSU after kernel installation in TWRP, before first reboot.

    The instructions from the dev page at XDA say not to do this; I would ask there but I have not enough posts (6 out of 10) for the proper permissions.

    Is there a disadvantage to doing this? SuperSU seems to have installed fine on my device. What would the process be to do it as instructed? A simple reflash?

    Thanks in advance!

  • I got stuck at TWRP flash, due to an FRP lock. I found that I needed to unlock the bootloader:
    Settings > Search “OEM unlock”

  • Chris

    I tried flashing an after the flash it says no OS installe

  • Just Ernie

    Thank you, easy to follow, worked great, no camera problems!

  • Marc

    i flashed recovery and odin showed everything as it was supposed to but once i put the phone into recovery its not showing the twrp recovery still shows….

    Android system recovery

    • Marc

      i just redid the whole process it works now, no clue why twrp didnt take to the device the very first time.

  • jay

    the twrp file will nit load up in Odin. any idea why?

    • Krishna

      You are selecting the .tar file, right?

  • Chad Bosworth

    God Bless Krishna and ShinySide!! THANK YOU

  • Cesar

    Will this work on baseband FOJ4?

  • Cal

    Hi, I’ve heard that FOJ4 5.1.1 can use the FOG6 kernel to root without a problem.
    Is this true?

    • Cesar

      It worked for me without problems.

  • damon

    No matter what I do it still shows FOJ4. I have done everything twice with both kernels.

  • me

    ok i have Sm-G900t from tmobile with 5.1.1 android but my build number ends in FOJ4, will this method still work? got it off craigslist so not worried about a warranty or anything.

    • Dallin

      I would like to get a confirmation for this also. I downloaded hispasian kernel foj4_v8. Is this the correct kernel to use on F0j4 while following this method for rooting?

  • RomeSC

    During the Odin step, I click on the options tab, but all the items are greyed out. I am unable to deselect “Auto Reboot”. The log shows “Added” and the ID:COM box is blue as disussed in the guide. But I am unale to untick the Auto Reboot box. please advise if you see this post. Thank you.

    • Dallin

      I can go to the options tab and select everything without having my phone selected. You might have a corrupt version of odin. try downloading it and starting over.

  • Louis

    Hi, I also would like to know if I can root my SM-G900T from T-Mobile with FOJ4. Thanks.

  • davidboogerds

    Buidlnumber ending in FOJ4 bump.
    Will there be an update of the TrapKernel?
    Is it possible to downgrade my device?

    • Krishna

      Are you looking to install TWRP and root both? or only Root?
      If you only want root, then simply flash this cf root kernel from here –
      It will work with FOJ4.
      If you want TWRP too, then after rooting with above kernel, download goomanager app from play store and install recovery from that app — that’s the easiest way to install TWRP on rooted devices.

      • davidboogerds

        Thanks for the prompt reply Krishna. I tried rooting by flashing the cf root kernel you linked. I did not exactly know how so i guessed using Odin. My phone got stuck into a reboot cycle. I managed to reset it, but now it’s (a) not rooted and (b) i can’t do regular updates anymore. Probably related to the yellow “Set Warranty BIt: kernel” message i get in the top left corner during start up now.

        I want to try root my device (SM-G900T) again.

        Could you please provide a link to a how-to with a step by step description of how to “simply flash a cf root kernel”?


        • davidboogerds

          Did this (no success)
          1: backup user data using easy backup to my google drive
          2: wipe data/factory reset
          2a: reboot VolUP+power+home; b select “wipe data/factory reset” (click power); c: select Yes -delete all
          3: wipe cache partition (similar to step 2);
          4: reboot to bootloader (similar to step 2);
          5:Read the screen, it says:

          ODIN MODE
          PRODUCT NAME: SM-G900T
          CURRENT BINARY: Custom
          SYSTEM STATUS: Custom
          KNOX WARRANTY VOID: 0x1 (4)
          RP SWREV: S1, T1, R1, A1, P1
          UDC START

          6: unplug usb cable; plug it back in
          7: start Odin3 v3.10.7 (also tried Odin3 v3.10.6)
          8: Verity that it says “ADDED”. It does
          9: in ODin: press AP, select file “CF-Auto-Root-kltetmo-kltetmo-smg900t.tar.md5” (34061 kB)
          10: in Odin, under tab “options”, uncheck everything except “Auto reboot” and “F. reset time”
          11: in Odin, press button “Start”
          12: Odin does it;s thing (says PASS ultimately in green)
          13: The phone reboots, it says “Recovery is not Seandroid Enforcing”
          14: red one-eyed android is there. Text flies by in white. Unfortunately, it says something fails, it starts again (too fast to remember the error). It loads the recovery instead. I get to set up Android from scratch. (i can run this again if you think this will contain vital clues)
          15: Using Check Root I confirm that rooting has indeed failed.

          Any suggestion on how to do things differently?

          • Krishna

            Please check and tell the build no. on your device, under Settings > About device.

          • Krishna

            Well you did everything alright, otherwise you wouldn’t get PASS message. Seems CF Root is broken. Anyway, flash this kernel –
            Should work. Let me know. No need to do a wipe data/factory reset in recovery BTW when flashing a kernel, or recovery, cf root, etc. That is required only when you are installing a firmware, and has a custom ROM installed previously (and that too not in all cases).

  • Louis Spilker

    Is anybody still moderating this? How do you transfer trapkernel to device?? put it where?? Will it work with foj4 or not???

  • Louis Spilker

    Page had not refreshed for me and only saw replies after. Sorry.. Still lost 🙁

    • Gally

      I have done all the steps but when it was time to install zip file at end there was no zip file. I dropped trapkernel file directly to phone where all other system folders are. It came up as an img file on my pc. Not sure why. I could not find zip file anywhere to install. went exploring and found option to install super su file. it said i was not rooted and this would root it. Went ahead and hit install. phone has been in downloading state for a long time now. What do i do ??

  • Gally

    Phone wont boot anymore. Stays stuck on Samsung logo. Shoot me now please.

  • Erica

    hello can you please advise about Camera fail or at least ho to revert back to previous state, there is no new or updated Kernal where Cam doesnt fail… pleeeeeeease help!!

    • Krishna

      The FOG6 version provided in the article doesn’t result in camera fail.. have you tried it?

      • Erica

        yes, I used according to my build from above- Build OF6 — Link | File: (12.8 MB)

        • RNST13

          I have the same issue. I used the links above to download and after the root, camera fails. any help pls…..

  • mike


    I did all the above and got to the reboot screen where it asked about installing the SuperSU which I DID NOT install. The note on the reboot screen said that the phone didn’t appear rooted and did I want to install the SuperSU…some confusion. How can I now tell that my phone has been “Rooted”?

    Thanks for this!

    • mike

      Hi there…DDG’d it…using a terminal app, I checked and am indeed rooted!!! Woohoo!

  • i also followed the instruction to the “T”. everything went according to plan but i also have a problem with the camera failing issue. what do i do to fix this? can i now install custom roms? how do i remove the touchwiz interface and just have a stock google phone? thanks in advance for your anticipated cooperation and advice. u guys r GREAT!!!! -tony the tiger voice

  • Tom

    My s5 is already rooted and the camera does not work on it. Can I just install the kernel or do I have to uninstall root and everything and redo the process?

    • Tom

      UPDATE: I tried to just install the new kernel with TWRP Recovery and my camera still does not work and shows Camera Failed. What next?

We’re hiring writers from India! Apply here.