How to Unroot Galaxy S5 with ODIN and Stock Firmware!

For those of you who need to fix “firmware encountered” error or you simply want to re-install stock firmware on your Galaxy S5, you can easily do so using ODIN and stock firmware tar.md5 file.

This will get your Galaxy S5 completely back to 100% stock and unrooted.  This can also be very useful if you are returning your Galaxy S5 to the store for warranty purposes or you want to unroot your phone completely.

Before we begin, please MAKE A BACKUP of everything on your Galaxy S5 by copying your personal files to your hard disk (or microSD).  You can even make a backup copy of your backup ROM if you intend to restore your ROM on another phone.

Step 1. Power off your Galaxy S5 then hold down Volume Down, Center Home, and Power buttons together for about 3-5 seconds until you see a warning screen.

howto-unroot-galaxys5-1

Step 2. Hit Volume Up key next to put your Galaxy S5 into ODIN MODE.

howto-unroot-galaxys5-2

Step 3. Connect a micro-USB 2.0 cable from your Galaxy S5 to your computer.

howto-unroot-galaxys5-3

Step 4. Go to this page and download the stock firmware for your Galaxy S5.

howto-unroot-galaxys5-4

Step 5. Unzip the stock firmware you have downloaded, you should get a file ending in tar.md5.

37 Responses

  1. ming says:

    My s5 is SM-G900F
    But there haven’t this
    Can send it for me?
    thanks!!!

  2. Matt says:

    Hi max
    i’ve got a galaxy s5 from t-mobile when i traveled to USA
    but i’m from Brazil so i’d like to change t-mobile stock rom to Brazil’s
    I tried following all the steps but it didnt worked
    could you help mee??

    Galaxy S5 -SM-G900T

  3. Antreas says:

    if im rooted and i want return back to stock and unroot does this return warranty ?

  4. john says:

    Does this work for verizon s5 that used the most recent towel root?

  5. Kay says:

    Back to unrooted!I’ve noticed there are a couple of apps like the stock music player that are not on my phone (because I deleted them when rooted) everything else I deleted is back. How can I remedy this?

  6. Mal Ware says:

    Whats up with the dodgy links for download? It’s bad enough trying to eliminate redirects, then you have to navigate through all the nonsense just to find the file that isn’t adware. bogus.

  7. Luis Cortes says:

    hey Max, for those people who like to root, theres this problem when you root. it wont let you use Private mode anymore. IT made me lose all my data.

  8. neamat says:

    i did unlocked for my s5 at&t is this will lock my phone

  9. DFranch says:

    I have the SM-G900AZ (Cricket Galaxy s5) & I used towelroot to root it. I’m still using the default ROM, but have removed a couple of the default apps. Will I be able to install the Lollypop update when it comes out, or will I need to follow this procedure to unroot and return to the stock image?

    Thanks!

  10. Eric says:

    How do you reset the Knox counter safely back to 0x0 ? I noticed after I just rooted my phone it now shows 0x1 or I think 0x2 I heard a app called Triangle may do the trick but not sure. Any advice would be great. Just wanting to find out in the event I have to take my phone back to sprint for warranty related issues. I know I can put the sprint stock rom back on but that doesnt fix the knox issue. Wont they check Knox status too? Worst case in the event my phone craps out I would just go in say I lost it or someone stole my phone and pay the issuance deductible and get a new device.

  11. Paul says:

    Hello, so a while back i had root on my SM-G900A AT&T G5 when towelroot first came out. Then there was on OTA that i mistakenly installed and lost my root. My question is if i no longer have root, can i flash the stock at&t firmware with odin and then be able to reroot? Im trying to regain root access. Thanks for any help

  12. Justin lameda says:

    It won’t read my phone it doesn’t read it.

  13. encome says:

    Seen a previous comment but ddint much answer how I wanted. I have att, had root previous on stock firmware, did ota update and lost root. If I am flashing to remove root, do I use the stock 4.4 firmware ( ie downgrade ) when flashing. Or do I have to use the ota firmware 4.4.2? If I use 4.4 stock would that brick? Or no problem with that?

  14. justin ort says:

    i unrooted my tmobile galaxy s5 from Super user, which i thought would unroot the phone but it did not because i still cant update my phone to lollipop that tmobile just released. is there any way to do this from a mac because i do not have a PC?

  15. tyler says:

    I just completed this and it worked perfectly with AT&T GS5. I needed to get this back to stock to send it back fo ra warranty swap since my camera was broken..It used to to have the Custom and lock on the startup screen and now it doesn’t. So first all was good!

    But my new issue is the phone wont work now. I keep message that won’t stop that says “google play services has stopped” and i hit OK but it comes right back and there nothing I can do?

    • tyler says:

      ok, if anyone else has the same issue, I booted into recovery and did a factory data reset and all good now. Just like new! sending back to att in the am. oh, and i’m at 0x0 too!

  16. Albert says:

    If I unroot my phone according to the above said procedure will I be able to use the OTA updates through my phone?

  17. Caleb says:

    I have Samsung Galaxy s5 T-Mobile , How do i remove t-mobile logo and apps?

  18. Nick says:

    i have an unlocked at&t s5 and am going to flash it to the T-mobile stock firmware, do you know if there will be any issues?

  19. Marshall says:

    I followed these steps on my AT&T S5, everything seems to work, except it won’t connect to mobile data, everything works on Wi-Fi… I noticed on your tutorial, the stock firmware file contains a single file… however the .zip I downloaded for AT&T contained 4, and Odin will only allow me to install 1.

    Am I missing something obvious?

  20. riki12 says:

    I just completed this and it worked perfectly with AT&T GS5. I needed to get this back to stock to send it back fo ra warranty swap since my camera was broken..It used to to have the Custom and lock on the startup screen and now it doesn’t. So first all was good!
    But my new issue is the phone wont work now. I keep message that won’t stop that says “google play services has stopped” and i hit OK but it comes right back and there nothing I can do?

  21. rikirudy says:

    I just completed this and it worked perfectly with AT&T GS5. I needed to get this back to stock to send it back fo ra warranty swap since my camera was broken..It used to to have the Custom and lock on the startup screen and now it doesn’t. So first all was good!
    But my new issue is the phone wont work now. I keep message that won’t stop that says “google play services has stopped” and i hit OK but it comes right back and there nothing I can do?

  22. Emmanuel Ramos says:

    OMG You saved my life! I get errors like in startup boot “System Process has stopped” or “MX Application has stopped” and everything goes black. I had to erase ALL my data. Here, I just have to install it back again. Thanks 🙂

  23. Mathew Smart says:

    Hey Max, I’m trying to downgrade to 4.4.2 for my sm-g900i but can’t for the life of me “adds and pop-ups and so forth” get a download or mirror to work so I can. Mainly as I just got a Casio G-Shock GBA-400 watch that says it can be paired with a S5 kitkat, but no longer able to pair with lollipop version. I just want to see it work. It only list 3 Android devices, all 3 devices are Samsung as well. But almost every model of that Seedy apple crap. Any help would be, some help I guess lol. Thanks for sharing your brain too, as I watch all three of your channels on youtube, definately learned alot from you and Jordan and T.K.from XDA

  24. Mrs L Prather says:

    So very new to this, I own an unlocked, rooted Galaxy S5 T-Mobile phone and recently my child messed with the finger scan on phone and I was locked out even from my alternative access to my phone. I called T-Mobile and I had to reset to factory mode,that locked me out completely to just the logo of the Samsung S5 when the phone is turned on. So I was instructed to to do a master (hard?) reset and the phone has this strange information like when you do a factory reset and nothing else. I cannot believe how much trouble I am going through. I bought this from my friend’s husband who unlocked and rooted the phone, but no IT personal will direct or discuss what I have to do. Please help me?

  25. Mrs L Prather says:

    By the way my “Help Me ” is how to access my phone so that I may restore it to the unrolled version.

  26. Mrs L Prather says:

    unrooted version

  27. s5master says:

    It worked thank you!

  28. Jas says:

    Hi,

    Just tried this and it failed with a message saying it can’t open the serial (COM) port. Any suggestions?

    Thanks!

  29. Walid says:

    Bonjour
    Mon galaxy s5 SM-Ghana
    -il est rooté
    J’ai un problème
    Quelle version je que je telecharge qu’elle le qu’en vin
    Un autre problème
    Je suis algérien si il me demande le débloquâge SIM après la mise à jour
    Merci de me répondre

  30. Walid says:

    Bonjour
    Mon galaxy s5 SM-G900h
    -il est rooté
    J’ai un problème
    Quelle version je que je telecharge qu’elle le qu’en vin
    Un autre problème
    Je suis algérien si il me demande le débloquâge SIM après la mise à jour
    Merci de me répondre

  31. Shultz says:

    A great tutorial but not as easy as it looks when the PC is running Windows 10 that messes with the USB ports. I couldn’t get ODIN to see the phone with the 3.0 USB ports on the side of the ASUS PC but the USB 3.0 ports on back worked great. I see a lot of people have problems with this as Samsung Kies sees the phone and ODIN does not. Sometimes its ADB debugging in developer mode not turned or a driver issue, and also a port problem like mine. Bought a new phone totally messed up and this fixed it better than new. Keep up the valuable great work.

Leave a Reply

Your email address will not be published. Required fields are marked *