Android is the most popular operating system for mobile with billions of user base which is growing by leaps and bound. The capabilities, features and  flexibility of the platform, the variety of devices that suit every budget, and millions of apps that can help you do anything you can imagine on your smartphone— these are the things that have made it what it is today.

But there is another great thing about that infatuates people with the soul of a geek, and that is the Open Source and openness of Android. If you wish to envisage the true color of this beautiful operating system and make the most out of your phone or tablet, you must root it first. Now, rooting is a term that you must be aware of if you own an Android device. Often compared to jail-breaking in iOS sphere, rooting is despised by most Android users and also by OEMs.

Is Rooting a Crime?

I often wonder why the Google Play Store has those thousands of apps that require root permission, if rooting is considered so punishable an offense that it voids the warranty of the device!  Being able to run the software one wants on devices one owns without losing hardware warranty should be a right by law. Root by itself is not a crime, nor a pointer that a device is broken in any way that should not fall under warranty. But in the eyes of  the OEMs it seems we are criminals. One of the reasons for the popularity of Samsung devices over those by other OEMs is the very fact that they are easier to root and modify.

We have no problem if we lose hands off the warranty of the device in case we flash a custom ROM but rooting is so essential a thing for Android that makes our mobile experience better. It complements and expurgates the deficiencies or the OS.

The greatest reason why most people keep away from the rooting stuff is the loss of warranty and the fear of bricking the device, the former also being the most probable reason for the desire to unroot an Android device.

You Might Also Like:

How to Root Samsung Galaxy S4 GT-I9500

Root and Install CWM Recovery on Sprint and T-Mobile Galaxy S4

How to Root AT&T/Sprint/T-Mobile Galaxy S4

How to Root Samsung Galaxy S4 GT-I9505

How to Root Verizon Galaxy S4 SCH-I545

If you have a rooted Samsung Galaxy S4 and want to take  your phone to the state of an unrooted device so that you might reclaim the warranty, we have a little guide for you. In fact the steps described here can be used on any Galaxy device from Samsung to unroot it. The easiest way to unroot your Samsung Galaxy S4 is to install the official firmware and reset the flash counter to “0” (zero).

Compatibility and Downloading Official Firmware:

The following tutorial can be used to unroot any variant of the Galaxy S4, irrespective of  model. Just careful about picking the correct firmware for your device model. You can check it from Settings> More tab> About.

Here is a more exhaustive guide that sheds light on all aspects of installing an official firmware to Samsung Galaxy S4. Read the following tutorial:

Gather the Tools and Resources:

  • Download and install the Triangle Away app from the Play Store. This step is mandatory and applicable only if you want the warranty of your device back. The app currently does not support GT-I9500: Link
  • Download the Odin3 tool and unzip it:
  • Download and install Samsung USB Drivers on your computer: Download
  • Download the suitable firmware according to your device model number, country/region or CSC and extract the zip file. If you do not know the CSC code for your country, refer to this article. Download the firmware from here: Link
  • Backup your contacts, messages, call-log, apps, etc: Use these apps
  • Enable USB Debugging on your phone. If you do not know how to do it, read this tutorial.
  • Ensure more than 60% battery on your Galaxy S4.

How to Unroot the Galaxy S4:

  1. Open the app drawer and run Triangle Away and follow the on-screen instructions to reset the flash binary counter to zero.triangle-away
  2. Triangle away is capable of making your phone system think that it is not rooted, despite the fact  it is rooted. Thus you are able to claim warranty.
  3. You can also unroot your device from within the SuperSU app itself. Open the app, tap on Settings and scroll down to the Full Unroot option and select it.super-user-unroot
  4. If you want to completely unroot your Galaxy phone, install the stock firmware on it using Odin. But before you do that, download the appropriate firmware for your Galaxy S4, boot the phone into Download Mode. To do this, press and hold Volume Down+Center+Power buttons together for 3-5 seconds till you see a warning screen. Now press Volume Up to continue to the Download mode.
  5. Now open Odin folder, launch the program by double-clicking and then connect the phone to PC using USB cable.
  6. Wait till the device drivers are installed and Odin detects the phone which is indicated by the ID:COM port turning to Blue and “Added!!” at the message box on Odin.
  7. Make sure that only “Auto Reboot” and “F Reset Time” options are selected.
  8. Now click on PDA and select the firmware file with .tar.md5 extension.
  9. Finally, hit Start button and wait till installation is complete and you see “PASS!!” signal followed by automatic reboot of the device.


The phone will finally boot and it will be unrooted.

Fixing Bootloop on Galaxy S4:

In case, your Galaxy S4 is stuck on the Samsung logo for more than 5 minutes and is caught into a bootloop, do this:

  1. Pull out the battery, wait for about 30 seconds and put the battery to its place again.
  2. Now boot the device into Stock Recovery mode: hold down Volume Up+Center+Power keys till the screen turns up and the Samsung logo blinks for two times. Then release the Power button but keep other keys pressed till you see a blue menu. Here you’ll have to use the volume and power keys to scroll up/down and select options respectively.
  3. Go to “wipe data/factory reset” option and wipe it.
  4. Now “wipe cache partition”
  5. Finally, “reboot system now”.

The bootloop should be fixed now. In case the device still doesn’t boot, install the firmware again. For more stuff and tutorials on Samsung Galaxy S4, click here.

Do Not Miss !

How to Unbrick Samsung Galaxy S4


  1. Hie there, i got my galaxy s4 (GT-19500LUCNC4) that keeps turning off on its own so i have tried factory reset but the problem still persist. The firmware i cant find it, can u help me?

  2. When I plug my device in while in bootloader, odin does not recognize it. It works when I actually boot my custom ROM (CM11) so it’s not the cable. I did notice that it says in the top right in gray text

    eMMC: enabled

    What can I do?

  3. Hi, I can not find the file for the phone I have, it’s a Canada model I337MVLUAMG1 4.2.2 I’ve been trying to unroot for a while now as my phone will not connect with a PC through USB cable and I would like to update to 4.4.2. I bought the phone rooted.

  4. hi and hello admin greeting from malaysia.
    my phone galaxy s 4 GT-I9500 auto updated to 4.4.2 and its official update. all things are good but just annoying status icon bar cos a just white icon and there is a lot running application, i don’t want that so i want to downgrade my phone .. please help me. still got 6 month samsung warranty..not rooted phone.

  5. Thank you. It works for me. Now I have an “new” GS4 whit no signs of void warranty.
    Best regards.

  6. Thanks for your quick response.
    My phone is currently on MDL version, the same on the links you posted.

  7. There is no file listed for AT&T Galaxy S4 SGH-I337
    Can you help me finding the right place?

  8. Will this restore the stock recovery mode?, because I have the cwm recovery and I want the phone just like if it was brand new… thanks for your help by the way

  9. i use odin for restire to stock firmware but it gives error of complete(write)
    and in download it shows write protected enable im using (mf3) sgh i337 what to do i have mf3 version and not it is rooted i want to un root but it didinot flash what to do????

  10. No, i never enabled USB debugging before attempting to install the ROM in the 1st instance. But now is too late, I can’t enable the usb debugging because I can’t access the phone menu 🙁

    good to know that the warranty is not voided.

  11. Do you remember enabling USB Debugging before to started the procedure?

    Also, your system status says official and that means the warranty is not void.

  12. Hi Rakesh, it happened again, i took some picts instead of recording… im so annoyed.. damn. it!! Any idea or suggestions please

  13. No I can’t give up!! & i don’t want to give up – No didn’t use the PIT file, because its usually the PDA file that it prompts me to add in the instructions to install a stock room. I am doing it wrongly??

    Ps: i must confess, i am a beginner when it comes to this stuff Rakesh.

  14. Thank you, & yes I did try installing the firmware you pasted above. I did it via Odin & it still failed to install. I’ll record the video later on and show you what I mean.. perhaps I am doing something wrong. The main issue here, is that I can’t get into ASR (android system recovery) to wipe my cache & do a wipe data/factory reset. I also tried using the recovery mode and then fix it via Kies “firmware upgrade & initialisation”… & “emergency Firmware recovery”.. both methods failed… again & again…… But i’ll try the Odin version you sent me, and then try install the original stock & see how that goes… I’ll record the process just for evidence…. Many thanks so far… I am so grateful (although I haven’t fixed the phone yet)

    ps: can I still send the phone to samsung in case i can’t fix it? I only got the phone about 6 months, is the 1 year warranty is still valid?

  15. that was the 4.2.2 I then tried to install after I got the problem.. I have deleted the 4.3 file (amateur right!). I have been trying to put that stock rom, but each time I attempt to install the file through Odin, it fails… I am not sure if I hard bricked my phone (not even sure what that exactly means) or broke something internally…

  16. i got it from samMobile – stupidly I have deleted the zip file because I was running out of space on my Vmachine.

  17. hi, maybe i tried installing the wrong stock rom firmware. Can you advise which one should i download? my model is the GT-I9505 im in UK and the original carrier was EE, but the phone is now unlocked.

  18. I do have a regular windows to test and I’ve done tried before (not with the Odin u just gave me), however it also failed to install the stock Rom, both 4.3 and the carried one.

    I’ll create a youtube video and show you the process that I am facing, i hope the new odin will work, but my hopes aren’t high 🙁 Can I past the youtube link here once I’ve done it?

  19. Give it a try at least and use a regular Windows machine instead of VM.

    Unlocking does not hinder with installing an official firmware. I doubt it is a case of corrupt bootloader instead.
    Try odin 1.85 and let me know.

  20. thanks for the link, however, I don’t think the issue to be with Odin but the the transfer process… do you know, or ever herd if the model gt-i9505 after being unlocked can crash while installing a stock rom?

    also, i tried using Kies to do firmware emergency recovery, but this also failed, in the process where kies was attempting to download the rom onto my phone. I am extremely desperate. I’ve been without my phone for 1 week now. Any extra advise or tips you or anyone else can give me?


  21. hi rakesh, i tried installing the 4.3 official rom on my GS4 gt-i9505 model. I was doing it via Odin on a windows 7 virtual machine. I’ve used odin on the VM before for my previous Gs3 and the process always worked. For some reason while installing the file, the process failed. and then I had to reboot my phone, which is now stuck in the samsung logo.. I tried fixing the bootloop but when I try to access the Stock recovery mode, when it reaches the android logo laying with its belly open, it crashes and reboots again 🙁

    Any help please… phone never been rooted before.. i was just in a rush to have the offical 4.3 version. Im in U.K and im not very good with this rooting, process, but Im eager to learn.. i’ve spent many hours researching but can’t find a fix. HELP PLEASE – thank you.

  22. Traingle away app is incompatible with GT-I9500 model of Galaxy S4, it is only working on Qualcomm based models and not on Exynos based models.
    Kindly check!!!

  23. I rooted my phone the Factory reset now my phone wont work just turns on but sim wont work no wifi. i hope this method works. i need factory settings and that ICON unlock custom when i boot it

  24. Ok i had my phone rooted then I unroot it with the Odin method n stock firmware. But there’s a problem when I wipe cache in stock recovery. my phone automatically reboot. Why is that.? I’m thinking rooting my phone again to try that new wicked rom on the m919. What’s the successful step to flash everything all over with the root again? I’m worried having problem with my clockwork because last time I try to root my super binary fail 🙁 . Dat why i unroot it first of all n now wipe cache crash on stock. Whattttt do I do!?

  25. I did all the steps but when i triy to go into clock work recovery i dont get the root your device option plz help. Am using a GT-I9500

  26. after getting my phone stuck in a boot loop (i just got the S4 Yesterday) i will wait until the phone has been out for a while longer. the only reason i used the root was to take advantage of directory bind to free up memory. I will probably root again later, after the warranty has expired.

This site uses Akismet to reduce spam. Learn how your comment data is processed.