Notes from inside TouchWiz ATT S4 SGH-I337

The Heimdall stock flash worked, in that it got the OS reinstalled on the phone.  GPS never seemed to work.  TowelRoot still works. To get “Wireless Hotspot & Tether” working I installed WanamXposed and if I recall correctly “X Tether” module.  Anyhow, this all worked on Bell up north.

There is another version of the stock image called “337UCUFNB1_100%_Stock” which can be rooted also with TowelRoot, this module and some of the Google Play Edition TW /SafeStrap ports of the SGH-I9505 also worked with GPS.

Currently here’s what I’m running / the process:

1) SafeStrap (has to be installed over a stock rooted ROM, ODIN, Hemidall, etc).

2) Advanced wipe everything but the SD card with the installer data on it (ROM, NB1 modem modules, SU Update).

3) Graviton S4 v3.2 for SafeStrap (4.4.2 NB1).

4) [MOD][Script] SmartDebloater [4.3-4.4] (note: don’t remove Samsung Calendar as TW requires it, I also left the camera and calculator)

To get the Google Now Launcher to work correctly as the default (and not TouchWiz Home) I installed Nova Launcher, disabled the Google Now Launcher, set Nova to default, and then re-updated/installed the Google Launcher.

I installed Wanam Xposed, a few modules, and GravityBox.  Graviton has a number of tweaks baked in.  I tried the “SlimSung NI1 ROM” but the radio seemed screwy since it was built for the NI1 update, the NB1 radio seems okay in Graviton, GPS and wifi seem to work fine.

Quickoffice isn’t available on the Play Store anymore, but this link goes to a Google support page, that launches a “browser only” Play Store whereby you can install the app to your device via the web play store interface.  Worked for me anyhow.  I’m sure the APK is available somewhere as well.  All other apps can be installed via the Play Store.

GravityBox has a tweak whereby you can set the double-click behavior of the home button to launch Google’s Voice Search which is nice.  The Google Now Launcher swipes left-to-right from the home screen to get to Google Now.  You could also just leave “Google Now Listening” on from all screens.

Another nice GravityBox tweak is changing the number of home screen icons to display, the stock GNL is 4×4 which looks huge on the S4, I think 5×5 or even 6×6 means you might only need a single page.

The one “feature” of TouchWiz which seems impossible to get around is the ability to take photos from the lock screen while using a PIN or password unlock.  I’ve tried nearly every conceivable hack, it simply doesn’t work.  If you have no security (e.g. swipe unlock) you can take photos, but any sort of PIN or pass means you have to unlock to get to the camera.  Oh well.  The S4 camera seems pretty decent, definitely an upgrade from the N4.  Probably not from the 5S.

 

Heimdall AT&T S4 Mavericks

This post should help you recover an AT&T Galaxy S4 SGH-I337 back to stock 4.4.2 using a modern 64 bit version of OS X, I tried 32 bit 10.6.8 and Heimdall wouldn’t run, so I presume you need OS X 10.7 64bit and above to run Heimdall.

First off, you need to uninstall Samsung Kies so Heimdall has USB access to the S4 drivers, it will require a reboot and possibly command line uninstalls:

Secondly, you need your recovery file.  I used the big ass stock file from Stockroms (dot) net /file /GalaxyS4 /SGH-I337 /4.4.2 /”the big one there”.  You’ll need to rename it to just .tar, then untar that file, and put it in a folder from which you’ll run Heimdall.

Third, install Heimdall.

Read through this post over on XDA:

Follow the OP’s steps, but see 8d) below:

linus$ heimdall flash --RECOVERY recovery.img --SYSTEM system.img.ext4 --HIDDEN hidden.img.ext4 --BOOT boot.img
linus$ heimdall flash --MDM modem.bin --APNHLOS NON-HLOS.bin --ABOOT aboot.mbn --TZ tz.mbn
linus$ heimdall flash --CACHE cache.img.ext4 --PERSDATA persdata.img.ext4
linus$ heimdall flash --SBL1 sbl1.mbn --SBL2 sbl2.mbn --SBL3 sbl3.mbn --RPM rpm.mbn

Sudo doesn’t seem necessary. I added that 4th line per Trevor7.  Thanks to tom_callahan for the original post, for which all things considered made this quite painless for an Android wipe.

As the original poster said, each push will require a boot back into Odin’s Download Mode, hold the ‘volume down & home’ buttons in between reboots as soon as the screen goes black, then press volume up to ‘continue’.  After step #4 you’ll want to boot to the stock Recovery Mode (volume up on boot) and do a “Factory Reset / User Data Wipe”; this will insure you’re good to go.

It should boot to an AT&T logo with a startup sound, it will take a couple of minutes, then you should be back to stock TouchWiz / AT&T bloated stock 4.4.2.  Godspeed.

Update: I updated the above lines.  It should be noted I’ve had issues with the GPS since this flash.  I have been able to make it work again using a GPE “vanilla” edition with a modified TW kernel, but it’s unclear why the GPS wouldn’t work on what should’ve been a fully stock ROM (NB1 vs NC1 rootability or kernel incompatibilities?).  There is apparently a way (using Windows and Samsung KIES) to do a full recovery per the manufacturer.  I haven’t tried this method yet.  For the time being, I was excited to have GPS working, albeit with a fairly unstable AOSP/GPE/Vanilla ROM.  My hope of hopes would be to get this back to fully stock 4.4.2 NB1 and sell it, fully functional 100%.  That may be wishful thinking.