There are plenty of reasons to root an Android device (e.g., OS updates, de-skinning, getting rid of bloatware, customization). But it can be a scary path to travel if you have no clue what you’re doing. Especially if you want to return your phone back to the way it was when you bought it. Below, we’ve outlined how to delete your root as well as put your phone back to stock factory firmware.

Warning: Rooting voids the warranty of your device. We and the developers of these files are not responsible if anything happens to your device. Use this rooting guide at your own risk!

  1. You must do this tutorial on a Windows XP/Vista/7/8 PC.
  2. This WILL erase everything on your phone, so make a backup!
  3. Ensure the battery of the phone is charged to more than 50%.
  4. The stock firmware download below is ONLY for the Galaxy S4 I9505 model. If you are using a different device, please search for your phone’s specific file before continuing with this tutorial.

For Non-Samsung Phones:

  1. LG Phones: LG PC Suite
  2. HTC Phones: Search your phone + “ROM Upgrade Utility” and download the correct files


Returning Your Phone to Stock:

  1. Plug your phone into your computer and make sure all drivers are installed properly.
  2. Put your phone into “Download Mode” by restarting and holding in the Power and Volume Down buttons.
  3. Click Volume Up when you see this screen.
    Rooting Galaxy S4 - Download Screen
  4. Right click on Odin.exe and click on “Run as Administrator”.
  5. Make sure a yellow box shows up, if it doesn’t then try using a different USB port or cable.
  6. Click on PDA and then search for the stock firmware you downloaded earlier.
  7. Click on Start and let the process finish. If you get a green “PASS” then it worked properly.

If Your Phone is Stuck on Boot Screen:

  1. Restart the phone and put it into recovery mode by holding the Volume Up button while it’s booting up.
  2. Go down to “Wipe Cache Partition” and click the Power Button.
  3. When that finishes go to “Wipe Data/Factory Reset” and click the Power Button.
  4. Then reboot your phone.

Resetting Binary Count:

  1. You must re-root your phone to do this. Follow the previous tutorial on how to root your phone.
  2. After you are rooted, download Triangle Away from the developer’s website.
  3. Click on “Reset Flash Counter” and then follow the instructions to complete the resetting process.
    Galaxy S4 TriangleAway
  4. To unroot, just click on SuperSU, click on Settings, and click on “Full Unroot”.