[AT&T Samsung Galaxy S 4 General] David Dee:
AT&T'ers: DO NOT FLASH MY RECOVERY.TAR.MD5 FILE. IT WAS CREATED FROM AN I337M FIRMWARE BASEBAND vI337MVLUAMDJ, AND I AM NOT SURE WHAT FLASHING IT WOULD DO TO YOUR PHONE.

WARNING: Follow these instructions at your own risk! I take no responsibility for your phone, or any damage to it, as a result of anything in this guide!

Note: Part of this method entails flashing a recovery.tar.md5 file through Odin. To get this file, I pulled the Samsung stock recovery straight from the latest Rogers firmware and repackaged it as an Odin flashable tar.md5 file. I flashed this through Odin on my phone, and it replaced TWRP with the Samsung Stock Recovery without a problem. I am on Rogers, I assume it will work for other i337M carrier variants with baseband version: I337MVLUAMDJ, but I cannot guarantee it as I have not tested it. Flash at your own risk.

My instructions assume anyone who flashes this in ODIN knows how get into Download Mode, has the correct drivers installed, and has flashed in ODIN before. If not, please search for the many guides on how to do this.

Now that the warnings are out of the way, here is the procedure:

This method allows you to restore your phone without having to do a full firmware Odin flash. I don't know about you guys, but I don't like to wait the 20 mins for the full Odin restore. Call me impatient, but time is my most valuable resource these days! Here are the steps:

Step #1: Full wipe of custom rom in recovery. Restore stock rom from nandroid.

Step #2: Flash Stock Recovery File in Odin:

I used Odin3 v3.07 to successfully flash this. To flash it in ODIN, click PDA, select the recovery.tar.md5 (Download It Here). I flashed successfully with only "Auto Reboot" and "F. Reset Time" selected. MAKE SURE "RE-PARTITION"

IS NOT SELECTED

.

When done flashing in Odin, reboot into recovery and make sure you have the stock version. There will be an android lying on his back with a red triangle above him. If your phone does not boot into recovery doing the volume up/power/home button combo (happened to me), either use adb reboot recovery (only other option when root is uninstalled), or goo manager, quick re-boot or other app with a recovery reboot option.

Flashing this in Odin will increase your flash counter (Mine was already at 1 from TWRP installation). No big deal, see step #3 below.

Step #3: Open the latest version of Triangle Away (v2.90) and reset your flash counter to 0. Worked perfectly on my phone. Note: Device status will remain at "custom", even though Triangle Away may show it as official.

Step #4: Make a backup of root using Voodo OTA RootKeeper (Free app from Google Play.)

Step #5: Update your Titanium Backups as a factory reset will be required in a later step.

Step #6: Open Supersu and click the "Full Unroot" option.

Step #7: Go into your root explorer app, look in system/xbin, and make sure you delete su and busybox if they are still there.

Step #8: Reboot you phone normally.

Step #9: Go into options/about device/status and check your device status. If it says "Official", you got lucky and are done. This is unlikely, but worth the check.

Step #10: Reboot into the stock recovery. Select factory reset by using the volume keys to toggle the selection, and power button to select. Once this is done, stay in the Stock recovery and select wipe cache partition. It should reboot after this operation.

Step #11: After reboot, your device status should read official. If not, double check that you followed each step above. Still if not, I would suggest you try flashing the full firmware through Odin. This worked for me, I hope it works for you, but I have not tested beyond this. Make sure to reboot again and check your device status once more, just to be sure.

Step #12: If you are returning your device, you are done.

Step #13: Open Voodo OTA RootKeeper and select restore root. Close Voodo. Install Supersu from Google Play, install binaries, and you should be rooted again.

Step #14: Check your device status after you root. It should still say official (mine did). To be extra safe, reboot and check device status again (mine still said official).

That should be it. You are now back on rooted stock with the ability to get ota's.