yashsingh1/xdaforums huggingface dataset:
[AT&T Samsung Galaxy S 4 General] joseph230:
Hello All,

I have an ATT GS4 I337 which I have been using it on Tmobile Network for a while. To convert it into a fully functional T Mobile phone, I have went through many threads and melted down the steps to what you will see here. It works for me and I am using it as my daily device.

On different threads I saw many people were asking about the same issues that I encountered and some could not figure it out how to overcome them.

Finally I decided to put the steps I went through along with links to what I have used to make the process noob friendly.

Note: I am not the main developer of what is being presented here. What I have here is combinations of what I have seen on different threads.

Disclaimer: You are the one who are deciding to use what I am presenting here, All the risks are on you.

NOTE1: my phone has a locked bootloader so I am only explaining what needs to be done for locked bootloaders. If you are not familiar with this concept, make some research and make sure if you want to proceed.

NOTE2: This has nothing to do with sim-unlocking the phone. If your phone does not accept tmobile sim, first sim-unlock your phone (I am not Google!) then come here and go through the steps.

Approach:

I assume that your ATT i337 has been soft bricked and therefore I will go through all the steps from bringing it back to life until converting it to a M919 equivalent.

Sections:

1-Prerequisits

2-Bring the phone back to life (fresh start)

3- Update to Latest ATT ROM (NI1)

4- Root NI1 Rom

5- Installing SafeStrap

6-Converting it to Tmobile Phone

7-[Optional] Installing missing Tmobile/Samsung apps/widgets <--> and UNDO it!

8-[Only IF] you do not want to be on NI1

9- 4.4.4

Thanks to:

http://xdaforums.com/showthread.php?t=2679913

http://xdaforums.com/showthread.php?t=2616221

http://xdaforums.com/galaxy-s4-att/general/how-to-root-i337ucufni1-t2881298”
[AT&T Samsung Galaxy S 4 General] joseph230:
Prerequisites

1- Have Samsung USB drivers installed. I personally install Samsung Kies (which installs the required drivers with it). Here is the link to kies: http://www.samsung.com/us/kies/ (I installed 2.6 version)

Note: After installing the KIES, connect you phone and make sure that it gets detected by kies. This a confirmation that you will not have any issues along the way.

2- Having ODIN software: download version 3.09 from here:https://www.androidfilehost.com/?fid=95747613655042250

3- Stock odinable ROM. I personally go with this rootable NB1: I337UCUFNB1_Rootable_Full_Odin.rar

4- NI1 Update from NB1 zip file: https://www.androidfilehost.com/?fid=95747613655042260

5- SafeStrap Ready Stock 4.4.2 Tmobile ROM: Joseph230_V1.0__Fenny_V1.3_STOCK_M919NB4_for_I337NI1.zip

6- [Optional] Missing Samsung and Tmobile Apps/Widgets: Joseph230_V1.01_Missing_Sam_TMO_Stuff.zip

Stock Recovery:

How to: hold volume UP + home button and then press and hold power button. When you see a galaxy logo with a tiny blue line on up left side of screen let go of power button but keep holding the volume up and home power. After couple of seconds you will enter stock recovery. Now let go of all buttons.

Download Mode:

How to: hold down volume rocker + home button, Then hold power button. When you see a warning screen, release all buttons, then press UP on volume rocker. Now you should be in download mode.

I am putting following links here in case you need to be on NB1/NC1. Refer to post 9.

Towelroot-v3.apk

I337_NI1_Stock_Kernel.tar.md5

I337_NC1_Stock_Kernel.tar.md5

I337_NB1_Stock_Kernel.tar.md5

ATT_NC1_Update_From_NB1_2400258.zip

ATT_NI1_modules.zip

ATT_NC1_modules.zip

ATT_NB1_modules.zip
[AT&T Samsung Galaxy S 4 General] joseph230:
Bring the phone back to life (fresh start)

As long as your phone can be entered into “Download Mode” you have a way out.

1- Put the phone on “Download mode”.

2- Connect your phone using a (original) USB cable to a USB (version 2.0) port on your PC.

3- Give windows some time to detect and install required drivers. ( You should have gone through prerequisites section prior this step.)

4- Run ODIN program.

5- You should see a com port value under most left side of the top row of odin. This means odin has detected the phone.

6- Extract the file from “Step 3” of prerequisites.

7- click on “AP” button on ODIN and select I337UCUFNB1_TWRootable_Full_Odin.tar.md5 file.

8- Be patient. Odin will need some time to check the file and make sure it is not corrupted or anything. (odin will not be responsive during this time).

9- When you see “Leave CSC” on ODIN window, this means you are ready to flash the stock rom.

10- Hit the Start button on ODIN and give it some time until it flashes the stock rom. Phone will be rebooted 2 times. Do not disconnect the phone until you see a PASS on odin and see your phone booted correctly.

NOTE: some times you will see a pass on ODIN but your phone never passes the boot animation screen. In this case unplug the usb cable from phone, remove battery and put it back. Now enter into stock recovery screen.

Use volume rocker to select factory reset line and hit power button. Then agree that you want to do a factory reset. This 99% of time will solve your boot loop issue that you experienced.
[AT&T Samsung Galaxy S 4 General] joseph230:
Update to Latest ATT ROM (NI1)

1- Copy “I337_NB1toNI1_OTA_Update.zip” into your external sd-card (not internal).

2- Power off your phone.

3- Go to “Stock Recovery”.

4- Select “apply update from external storage“ and then hit power button.

5- use volum rocker to select “I337_NB1toNI1_OTA_Update.zip” file and then hit power button.

6- Be patient while phone applies the NI1 update.
[AT&T Samsung Galaxy S 4 General] joseph230:
Root NI1 Rom

If you have followed all the steps now you have a STOCK ATT 4.4.2 NI1 Rom on your phone.

1- Follow steps 1 to 6 from “http://xdaforums.com/galaxy-s4-att/general/how-to-root-i337ucufni1-t2881298” to gain root.

2- Install “SuperSu” from Google play. Run it. When it asks to install the binary hit “continue”, then hit “normal”. After it finished installing, it will detect the KNOX, let it disable it. If not succeeded, reboot the phone run the supersu again and let it disable the knox (for me it always works second time).
[AT&T Samsung Galaxy S 4 General] joseph230:
Installing SafeStrap

1- Install v3.72 SafeStarp from http://xdaforums.com/showthread.php?p=45693712#post45693712

2- Install “Busybox” from Google Play. Then Run busybox and hit “install” to let the app install required files.

3- Install “SELinux Mode Changer” from Google Play. Run the app and then select “Permissive”.

4- Now run the SafeStarp that you installed on step 1. Hit the “Install Recovery”.

5- you should see “State:Installed” on SafeStarp main screen. Now go ahead and hit “Reboot to Recovery”. You will need to hit it 2 times. First time it gets the root access, second time it actually will reboot.
[AT&T Samsung Galaxy S 4 General] joseph230:
Converting it to Tmobile Phone

1- Copy “Joseph230_V1.0__Fenny_V1.3_STOCK_M919NB4_for_I337NI1.zip” into you phone (internal/external sd-card)

2- Reboot your phone.

3- When on SafeStrap screen, hit recovery to enter into SafeStarp Recovery.

4- Hit “Wipe”. Hit “Advanced Wipe”. Select “Dalvik Cache”, “Data”, “Cache” and “System”. (Do not select “Micro SDcard”).

5- Swipe to wipe.

6- Go back to main screen of SafeStrap.

7- Select “Install” then select “Joseph230_V1.0__Fenny_V1.3_STOCK_M919NB4_for_I337NI1.zip”.

8- swipe to install.

Note: You do not need to flash any ATT modules since the above rom has NI1 modules.

9- Reboot the phone, be patient until it boots up.

Now you should have a Fully working (even wifi calling) M919 4.4.2 Rom on I337 GS4. This rom is stock-ish rom so go ahead and do your own modifications.
[AT&T Samsung Galaxy S 4 General] joseph230:
[Optional] Installing missing Tmobile/Samsung apps/widgets <--> and UNDO it!

After Step 6 you have a Stock-ish Tmobile 4.4.2 Rom on you I337 GS4 which works flawlessly. UNLESS you are one of those fellows that like 100% stock with all the Tmobile and Samsung apps and widgets; To make this more clear, that rom you have running right now misses Samsung weather widget!!! and etc...

I am using Fenny's V1.3 as base and he has removed bunch of stock apps/widgets for his own reasons. I decided to have a separate zip that you can flash after step 6 to bring back all the missing apps/widgets.

You can [dirty] flash "Joseph230_V1.01_Missing_Sam_TMO_Stuff.zip" and get all the missing stock apps/widgets.

Obvious Note: Having root access, you always can remove what bothers you :)

Dirty Flash:

Flashing without clearing "data" and "system". It is always recommended to clear "Cache" and "Dalvik" if you are not executing "Step 7" immediately after "Step 6".

How undo the optional step:

In case you installed the optional apps/widgets and then changed your mind:

1- Download "Joseph230_Undo_V1.01_Missing_Sam_TMO_Stuff.zip"

2- Go into recovery mode and install the zip

3- Clear Dalvik/cache and reboot.

Note: the above step exaclty deletes all the files that get installed via Joseph230_V1.01_Missing_Sam_TMO_Stuff.zip, nothing less, nothing more.
[AT&T Samsung Galaxy S 4 General] joseph230:
[Only IF] you do not want to be on NI1

I started the thread with the assumption that people prefer to be on the latest modem (NI1). Now I see there are some folks that want to be on NB1 or NC1 due to signal/battery/personal reasons (*****This posts is for you guys****).

Get the necessary files from "Prerequisites" post.

If you want to be on NB1:

Do followings:

1-if you need to bring your phone back to life or want to have a fresh start, do the Step 1

2-Install Towelroot-v3.apk and root your phone.

3-Put your phone in "Download Mode" and use ODIN to flash "I337_NB1_Stock_Kernel.tar.md5"

4-Install Safestrap

5-Convert it to Tmobile Phone

6-Reboot into Safestarp and install "ATT_NB1_modules.zip"

If you want to be on NC1:

Do followings:

1-if you need to bring your phone back to life or want to have a fresh start, do the Step 1

2- Update to NC1

2-1- Copy “ATT_NC1_Update_From_NB1_2400258.zip” into your external sd-card (not internal).

2-2- Power off your phone.

2-3- Go to “Stock Recovery”.

2-4- Select “apply update from external storage“ and then hit power button.

2-5- use volume rocker to select “ATT_NC1_Update_From_NB1_2400258.zip” file and then hit power button.

2-6- Be patient while phone applies the NI1 update.​

2-Install Towelroot-v3.apk and root your phone.

4-Install Safestrap

5-Convert it to Tmobile Phone

6-Reboot into Safestarp and install "ATT_NC1_modules.zip"
[AT&T Samsung Galaxy S 4 General] joseph230:
4.4.4

Now that ATT has rolled out 4.4.4 update, we can use Tmobile 4.4.4 Rom. (Note: we needed the official 4.4.4 kernel by ATT to have a fully functioning M919 ROM working on our ATT GS4).

At this point, you should have a 4.4.2 with Safestrap on your phone (no need to be tmobile)

Steps:

1- First use " Alternative Method for Safestrap Users:" from muniz_ri thread to update to latest ATT 4.4.4 ROM. This makes sure that we have latest kernel, modem, ....

Note1: While at the thread, do not forget to hit Thanks and give a thumps up to "muniz_ri" for his good work.

Note2: I personally did not use data back up and recovery... Not sure if you encounter any difficulties or not. I always go for a fresh install to prevent any conflicts and potential headaches.

2- Download "M919_NH7_for_I337_NJ4.zip" and copy it to the phone.

3- Download "UPDATE-SuperSU-v2.02.zip" and copy it to the phone.

4- Reboot into Safestrap and do a full wipe (except for sd card).

5- Install M919_NH7_for_I337_NJ4.zip

6- Install UPDATE-SuperSU-v2.02.zip

7- Just to be sure, do a dalvik/cache wipe

7- Reboot, be patient while phone boots up, now enjoy your 4.4.4 Tmobile Rom on your I337 ATT GS4.
[AT&T Samsung Galaxy S 4 General] Tsuul:
I have installed a tmobile modem on my att s4 (http://xdaforums.com/showthread.php?t=2291589) to use the TMobile bands. Will I need to go through that again if I follow your guide?
[AT&T Samsung Galaxy S 4 General] devil_2:
Woot, thanks it worked perfect....

Idk if it just me however, I lost the clock and Calendar widgets?
[AT&T Samsung Galaxy S 4 General] hyl4me:
I read on the fenny's thread, he removed these apps. If you want, dl v1, extract these apps and places those in system folder.
[AT&T Samsung Galaxy S 4 General] joseph230:
Seems that you have a unlocked bootloader! If I were you I would stick to it. My phone has locked bootloader and I only can use safestrap.

Anyhow, you can skip the flahsing using ODIN to keep your modem and bootloader as is.
[AT&T Samsung Galaxy S 4 General] joseph230:
Yes, You are right, Fenny's 1.3 has some of Tmobile's apps removed.

I may go ahead and make an update just to add missing tmobile apps. (I personally use some of them).

Side note: You can install most of them from google play.
[AT&T Samsung Galaxy S 4 General] joseph230:
Glad to hear that :)

You are not alone. That is what Fenny has done in its V1.3 ROM. I will make an update to bring all the missing apps back.
[AT&T Samsung Galaxy S 4 General] Tsuul:
I wish I had an unlocked bootloader, instead I am on MF3.
[AT&T Samsung Galaxy S 4 General] devil_2:
oh that would be sweet

Anyway i managed to recover some of what I needed for the most part from stock rom of galaxy s4 and s5

S planner apk

S planner widget

weather clock widget

Those where the only stockish apps that I used anyway :) ..... Other than that Its great, I appreciate you going out of your way and uploading the edited version of the rom to work on our devices(in which i failed miserably at :silly: )
[AT&T Samsung Galaxy S 4 General] joseph230:
Glad you managed it.

My Stock update will be uploaded soon, in case someone needed it.

Mean while, would you share your version of APKs that worked for you. I will try to make a zip update out of them in case someone wanted to use them.
[AT&T Samsung Galaxy S 4 General] devil_2:
I tried adding the Calendar from stock galaxy s4< it kept crashing (so i gave up on that, probably was missing a side app that goes with it, oh well :p )

So Instead I installed S planner (galaxy s5 version), it looked nicer and it worked.

As for the Calendar widget I used the S4 one (widgets: 4x4 monthly works, 4x2 daily crashes, if you want 4x2 daily you can install the google calendar)

weather Clock widget (installed Galaxy s5 version, looks the same, and it works perfect)

https://www.dropbox.com/sh/qrvtby5iove2ssg/AAD2sLU5ZJE_aDG4WeD_Uat6a?dl=0

For Calendar Install both:

S Planner and Splanner widget apps and place in system/App/ give them full permisions/ and reboot

For Weather Clock stock widget

Install accu weather and weatherdeamon (no need for system app placement but recommended (i am not sure if daemon was already installed on the phone, if it is add extension .bin to the older version, before placing this one in system app)
[AT&T Samsung Galaxy S 4 General] joseph230:
Update:

I have made a small update that has all the missing apps/widgets. Also Step 7 has been added that guides you through it. Check it out :)
[AT&T Samsung Galaxy S 4 General] joseph230:
Thanks for sharing, I will check them out.
[AT&T Samsung Galaxy S 4 General] hyl4me:
Thanks joseph230 for the detail instruction & all-in-one flash package for the Fenny's roms. Joseph230, you have used all NB1, NC1, and NI1, which one do you think gives best battery life/signal? Thanks. The reason I ask because I read a thread that many people are complaint about the NI1 stock roms. I brought my phone used, so I can't tell if the problem is the battery or the kernel.
[AT&T Samsung Galaxy S 4 General] joseph230:
To be honest I have not examined the basebands specifically for battery/signal.

Personally I have not noticed any significant difference. My main reason for going through updates were just to get bug fixes that might accompany the patches.
[AT&T Samsung Galaxy S 4 General] uvt_novice:
I have AT&T I337 with MK2 baseband. So, cannot flash I337_AWS.QCN (made for older versions) to be able to use on Wind in Canada (same as TMO in US).

I am just not clear - after all this done, would the phone be able to pick AWS band? Thanks.
[AT&T Samsung Galaxy S 4 General] joseph230:
No, this has nothing to do with unlocking the AWS bands.
[AT&T Samsung Galaxy S 4 General] kokoman:
I have NC1, anyone knows if I can start from step 6 (Converting it to Tmobile Phone)?
[AT&T Samsung Galaxy S 4 General] joseph230:
Assuming you mean that you have root and safestrap all installed and ready, then yes you can jump to step 6.

BUT

since the rom on step 6 is modified for NI1 baseband, you only need to flash ATT_NC1_modules.zip after doing step 6.

Let me know how it goes :)
[AT&T Samsung Galaxy S 4 General] nyyankees325:
hi, these steps worked great i left off at the NI1 after going to the tmobile rom. but the sim card was locked so i used the region unlock and had to but the modem to mf something. now i flashed it to NB1. is that ok ? it seems to be working fine
[AT&T Samsung Galaxy S 4 General] joseph230:
Sure it is fine. When you do a SIM unlock it sticks forever and flashing new modem or even doing a full odin flash will not change it.

One more thing, If your baseband is NB1/NC1/NI1, it is better to flash corresponding ATT_NB1/ATT_NC1/ATT_NI1 modules via Safestrap, This will ensure the flawless signal/wifi functioning.
[AT&T Samsung Galaxy S 4 General] nyyankees325:
ok i found the ni1 modem i guess ill use this and that will put it to where it was originally. as long as the unlock sticks.

---------- Post added at 03:00 AM ---------- Previous post was at 02:54 AM ----------

the baseband is ni1 and the build is nb4 is that ok ?
[AT&T Samsung Galaxy S 4 General] nyyankees325:
the baseband is ni1 and the build is nb4 is that ok ?
[AT&T Samsung Galaxy S 4 General] joseph230:
Yes, you are exactly where you want to be. Actually if you look at the post 7 I have a picture that exactly shows the end result of the process. NB4 + NI1 is the goal :)
[AT&T Samsung Galaxy S 4 General] joseph230:
Some Update

Guys, I added a new step for those who do not want to be on NI1 and prefer NC1/NB1.

I also updated other sections to reflect the new section. :cool:

Hope this is helpful :)

Please let me know if you notice any issues. :confused:
[AT&T Samsung Galaxy S 4 General] nyyankees325:
Hey any idea why I would be getting a reg90 unable to connect , for wifi calling.
[AT&T Samsung Galaxy S 4 General] joseph230:
Have you set a 911 address on your tmobile account?

Check this: http://support.t-mobile.com/message/419580#419580
[AT&T Samsung Galaxy S 4 General] nyyankees325:
oddly enough it happened after i installed those extra apps . maybe i should uninstall them. idk how to do that though.
[AT&T Samsung Galaxy S 4 General] cephasara:
Great guide

Wow! Thanks for the awesome guide. Works great. Yours is one of the few that has managed to even get my phone to a working state, yet alone with T-Mobile wifi calling.
[AT&T Samsung Galaxy S 4 General] joseph230:
I will see if I can make a zip to revert back extra apps.

Glad to hear that :)
[AT&T Samsung Galaxy S 4 General] wipecache:
Thanks!
[AT&T Samsung Galaxy S 4 General] joseph230:
How to undo "Step 7: Optional apps"

Check out post 8 for undoing "[Optional] Installing missing Tmobile/Samsung apps/widgets"
[AT&T Samsung Galaxy S 4 General] froteros:
Hi, I followed the instructions step by step, twice. However, each time after step 8 of "Converting it to Tmobile Phone", when I reboot the phone it gets stuck in the boot screen and keeps displaying the Samsung Galaxy s4 logo. Anything I can do about that?
[AT&T Samsung Galaxy S 4 General] joseph230:
>>> I used to see the bootloop when I messed the kernel, tried to flash a kernel, used a script that was messing /system, and .....

I think you are missing something or ignoring a difference!

So now:

Do you have GS4 I337?

Does it have locked bootloader?

Did you do the ODIN part?

Did you use the ROM that I provided?

Did you make sure to not erase /system?
[AT&T Samsung Galaxy S 4 General] froteros:
7920

my answers are above
[AT&T Samsung Galaxy S 4 General] joseph230:
Scratch that.

Did you have Safestarp installed? After reboot, did you see it being installed ?
[AT&T Samsung Galaxy S 4 General] froteros:
yes, I installed it and rebooted to recovery via that, just as you described. After installing the Fenny rom when I rebooted the phone it got stuck in the Samsung Galaxy s4 screen.
[AT&T Samsung Galaxy S 4 General] froteros:
I was looking at instructions from another site for this and it is saying this:

" install the ROM normally but after installing ROM, install KTweaker kernel."

galaxys4root[dot com]/galaxy-s4-tutorials/how-to-install-gt-i9505t-mobile-custom-roms-on-att-galaxy-s4/

Could that be something I need to be doing?
[AT&T Samsung Galaxy S 4 General] joseph230:
Just to be clear, you should not install Fenny's rom, It will break the phone and will cuase the bootloop. You should install the one that I provided "Joseph230_V1.0__Fenny_V1.3_STOCK_M919NB4_for_I337N I1.zip" from "Prerequisites" section.

Since GS4-I337 has a locked bootloader, doing so will break our phones. We CAN NOT have cutome kernels :(
[AT&T Samsung Galaxy S 4 General] froteros:
yep, I downloaded the link you provided. Until Step 8 of "Converting it to Tmobile Phone" everything went exactly as you said. Even the SuperSU didn't disable KNOX the first time and it disabled it after the reboot.

I am missing something but not sure what. I don't have tmobile reception in my office, so unless I can make the WiFi calling somehow work I would need to sell the phone or change my carrier, both of which will be costly :(
[AT&T Samsung Galaxy S 4 General] joseph230:
I feel you man, I could not live without wifi calling and I went thorugh a lot to figure this out. That is why I started the thread to make it easier for others :)

I am not sure if I asked you this, but are you doing "3- Update to Latest ATT ROM (NI1)" and "4- Root NI1 Rom". (maybe you are doing something wrong while flashing back and forth the kernels while rooting the NI1)

To help you out: if you can! record what you are doing step by step, upload it to youtube and send me the link so I see what you are doing and what might be the issue. <<--- this is all I can think of right now.
[AT&T Samsung Galaxy S 4 General] froteros:
277

Yep, I am doing that part also. The only thing I just realized is that as you know under "Root NI1 Rom" you have that link with steps 1-6. I don't do Step 1 there, assuming I already have installed the NI1 OTA update with “I337_NB1toNI1_OTA_Update.zip” in the previous step . I only do 2-6. Do you think that is the issue? I have attached the screenshot of the phone settings after step 6 (after flashing the I337_NI1_Stock_Kernel ). Does anything seems odd about this?

Thanks a lot anyways, I really appreciate people taking time to write these detailed instructions to help out others. Taking a video would be a little tricky but I will see whether I can do that. Maybe I can wait a while, perhaps someone more knowledgeable than me on these things will face the same issue and figure out a solution.
[AT&T Samsung Galaxy S 4 General] joseph230:
You are right about skipping that step.

It all looks fine to me. Not sure what goes wrong !!!
[AT&T Samsung Galaxy S 4 General] alex_bgnet:
Thank you, you are the man! Did it in about an hour and a half without any glitches. :good::good::good::good::good:

Have been trying to do this for the past year or so.
[AT&T Samsung Galaxy S 4 General] joseph230:
Glad you found it helpful :)
[AT&T Samsung Galaxy S 4 General] garlicbreathmeh:
Thank you very much. Great job pulling all the information together in one spot. I've been researching this for a week with a million tabs open and getting confused and lost and saying screw it and going to t-mobile to buy a new phone.

I followed your guide step by step and it worked perfectly.
[AT&T Samsung Galaxy S 4 General] joseph230:
I went through all that confusion and trouble and when I got it working decided to share it with others; but I didn't know many others are looking for same thing!

Glad it helped you out :)