Unroot and Restore Back AT&T Samsung Galaxy Note 2 SGH-I317 to Original Firmware Stock ROM

Here ‘s how to remove root or unroot the AT&T’s version of Samsung Galaxy Note 2 (SGH-I317). This process is useful if you need to restore and revert back your Galaxy Note 2 to its official Android firmware from any modification has made unto your device such as installing a modified ROM  or having issues updating your device to official OTA (over the air) updates.

Installing official or original firmware will automatically remove root to your device once after flashing. Since rooting and installing unofficial firmware already voids your device warranty, that’s because the binary flash counter is has triggered when you flash any modified or rooted ROM.
Reset custom binary flash counter AT&T Samsung Galaxy Note 2 SGH-i317
Do I need to reset the flash counter when already tripped?
Yes! If you need to completely restore back without a trace of any modification, you should reset the flash counter. You may check it via download mode – pressing and holding  (volume down + home + power buttons) then press “volume up” button to continue. Look for the Custom Binary Download, it shows a count of  how many flashing has made.  If it’s not tripped then you may not need to reset it, but if  it showed like 0/1 and modified, then you should reset it to 0 count.  You can simply alter it using Chainfire’s Triangle Away apps, it’s free to download it here.

Triangle Away for Samsung Galaxy note 2

Is this method useful in any other way?
Aside from bringing back your device from using unofficial firmware, this is also useful for fixing soft-bricks. If you messed-up from rooting or installing modified ROM then you need to fix it by restoring back the original firmware and bring back your device to be useful again. You can also use this method if you can’t update your device from OTA update and its show software update failure or install interrupted.  Using the stock ROM, it’s actually the same process like updating from OTA or Kies. The only differences that this is developers method, updating on OTA and Kies is ordinary end-users method.

Software update fialed

Disclaimer: We should not be held responsible if anything happens to your device. Proceeding and Use of this guide is solely at your own risk!

1. Important Reminders before Restoring or Flashing a Stock ROM on Samsung Galaxy Note 2 SGH-I317

  • Make sure that your Galaxy Note 2 battery is fully charge.
  • Stock ROM packages comes in two formats the ‘Full-Wipe’ (delete your stored data after flashing) and the ‘Non-Wipe’ (it doesn’t delete your phone’s stored data) but it is highly recommended to make a back up of all important files stored from your phone’s internal memory – contacts, SMS, emails, apps, photos, videos etc.  before flashing, no-matter if it is Full-Wipe or Non-Wipe stock ROM version,  just to be safe and ensure that your stored data are in  safe place  if something went wrong during the flashing process. Use any data back-up apps to easily do this task.
  • Use a PC or laptop that runs in Windows OS, with a good and perfectly working USB serial port.  Odin will not work on MAC OS.
  • Use the supplied USB cable for your Galaxy Note 2.
  • Enable USB debugging from your phone’s settings. Go to Settings > Applications > Development, and tick the box that says ‘Enable USB Debugging’.
  • Ensure that KIES is closed and not running in the system tray! Kies will interrupt and doesn’t like Odin, it will block you from flashing.

2. Download the needed tools for flashing

USB Driver: Note 2_USB_Driver
Odin Flasher Tool: Odin3_v3.07

Grab your Samsung Galaxy Note 2 SGH-I317 Original Firmware or Stock ROM
Download it here -> choose SGH-I317 Stock ROM

3. Install the USB Driver and Extract the downloaded stock ROM
Install the USB Driver first to get rid of flashing failures. Also need to extract the downloaded file which is packed in zip format, so that you’ll get the tar.md5 file. You can use winrar, winzip, 7zip or any tool you had in your computer.
4. Run and Configure Odin
Run Odin downloader Odin3_v3.07 on your PC desktop. Watch out the check-boxes options on the right top of Odin, ensure that the ‘RE-PARTITION’ is unchecked, only the ‘AUTO-REBOOT and ‘F.RESET TIME’ checkboxes are both remained checked.

5. Reboot your Galaxy Note 2 into Download Mode

To reboot the Galaxy Note2 into download mode , you need to turn the power off. After it completely shut down, just press and hold the Volume Down key, Home button and the Power ON/OFF button simultaneously.
androidayos galaxy note download mode
You should then prompted into a warning screen and asking you to press volume up if you want to continue or volume down to cancel, just simply press volume up to get into download mode. The download mode then displays an Android robot and say’s “Downloading.. Do not turn off target!!”

6. Connect your Galaxy Note 2 to Computer or Laptop

Once you already reboot the phone in download mode, simply connect the phone to your PC or laptop USB.
In Odin window – the ID:COM box will turn to blue color and indicates the COM port number and a word “Added” on a log box will prompt you that the device is already detected or recognized by Odin. Your COM port number might be different from mine. If you do not see a COM port number then there’s something missing or wrong. You may read again from the top of this post.

7. Set and load and the binary .tar.md5 file 
The stock ROM is pack in One .tar.md5 file only. Now, you need to just simply click on the PDA button, then browse to the folder where the .tar or .tar.md5 you have previously extracted and then select and load it.

8. Begin Flashing the stock ROM
Once if all set and ready to fire-up, hit the “START” button in Odin to begin flashing the stock ROM.
Do not ever interrupt the phone while already in flashing progress, like disconnecting the cable or turning off the device. Just wait until it completely finish.
Odin Flashing AT&T Samsung Galaxy Note 2 SGH-i317 Stock ROM9. Wait for the word PASS!!
When the Stock ROM installation successfully completes, you will then see a word “PASS” in Odin. This indicates that the flashing was already finish, and on the log box it says “All threads completed. (succeed 1 / failed 0)”. The phone will just then automatically reboot, then it’s time to remove it from PC or laptop USB connection.

Confirm if you successfully restore your Samsung Galaxy Note 2
Confirm your fresh firmware installed by typing *#1234# or
Go to Settings>About Phone>Firmware info.
You can also do factory reset by dialing *2767*3855#.

Possible errors that you may encountered, this is based on my experience while flashing stock ROM on Samsung Android devices. These are just a few hints on how to resolved it.

Q: I got an error message that says “Set-up connection Failed” ?
A: 1. Check your USB connection from the phone to PC,
2. Connect to another PC USB port
3. Check and try to another USB cable
4. Re-install the USB driver.
Q: Odin just suddenly stuck in the middle of nowhere while in flashing progress, It isn’t responding at all?
A: Check for possible program that might interrupt the process, like disabling the anti-virus and closing any running programs.Try to use another PC or laptop,
Q: I experienced bootloop or the phone just stuck on Welcome Logo (phone always stop at bootanimation) and it won’t boot normally?
A: You can fix it via recovery mode option, do this:
Boot in recovery mode
1. Press and hold Volume Up, Home and Power button.
2. Use volume keys to select, Up and Down and Power or Home key to select the option
3. Select Wipe Data/Factory Reset using the Home button.
4. Next select the Wipe Cache Partition
5. Lastly, select Reboot System Now to reboot your Galaxy Note 2 in Normal mode.That’s it! Just let us know how’s it going.
 Let us know if this solution works to restore and unroot your Samsung Galaxy Note 2 AT&T (SGH-I317 ) to its original firmware.

10 thoughts on “Unroot and Restore Back AT&T Samsung Galaxy Note 2 SGH-I317 to Original Firmware Stock ROM”

  1. i downloaded and extracted the stock firmware, but when im on odin to flash it over it doesnt show up when i got open the file it says meta-inf then below says system. But wont let me open the correct thing to load onto my phone, any suggestions?

  2. Hi-

    I was not able to use the Triangle Away to reset my counter since it stated that I need to install SU which will mean that I have to root my device. How can I reset my counter without rooting my device? or do I need to do root my device first, reset my counter and then restore the OS? Thanks, Patricia

    1. Yes, you need root first to reset the binary counter and then restore the official OS. Restoring back to stock/official firmware or OS considerably means that your device was already rooted, runs with custom recovery, modified kernels, MODEM, ROM, that is why you need to reset it first to remove the binary custom count from the recovery. Some root kernels, custom ROMs are already built with SuperSU. So, if the apps looks for SU binaries authorization, you should have to be rooted and/or had installed SU.

      You’ve probably directly flash the original OS without having in-mind resetting the binary counter first. It’s pretty sounds like “Yepeey! I’ve finally restored back to official OS! 🙂 but wait OMG! why the heck my counter still shows my modification counts” :(. lol! And then now, you want to use the Triangle away apps that certainly will not work, that’s because your root was gone.

    1. possibly not for everybody but in my case flashing the stock firmware gave me back my efs folder and my phone is working,,thanks

  3. Thanks for the great site. My i317 (ATT) did go into a loop on the startup screen, but your suggestion to go into recovery mode, and Select Wipe Data/Factory Reset using the Home button.
    4. Next select the Wipe Cache Partition – worked perfectly. Now its time to start all over with Rooting and flashing firmware again!!
    Thanks again,

Leave a Reply

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