[Galaxy S 4 Q&A, Help & Troubleshooting] roms4eva:
Greetings, I have used your services a lot (different ROMS and tutorials) and appreciate all the effort the XDA community has provided to users of all levels. However now, I am unable to find the solution that I have been working on for quite some time.

For the last week or so, I have been trying my best to SIM unlock my S4. I know I could just ask my provider and save the headache of all this but I do find there is a great sense of accomplishment and learning when things are done yourself. I will list the phone's info below and the methods I have tried. I have ran multiple roms on this device: Stock --(wanted to be different)--> Slim ROM --(wanted to try something new)--> Resurrection --(had too many mic issues) --> CyanogenMod (now GPS doesn't work so I might try a new ROM)

S4 - SGH-i337M (jfltecan/jflte)... verified root

CyanogenMod version 11-20160815-NIGHTLY-jflte

Baseband version: I337MVLUGOH1

Build number: cm_jftle-userdebug 4.4.4 KTU84Q e2d38f60cf

Android 4.4.4

Kernal: 3.4.104-cyanogenmod-g8b03f0c

Recovery is via CWM

Locked Network info (via Phone INFO and SIM Card Information app):

Original CSC Code: FMC (Fido Canada)

Active CSC Code: FMC (Fido Canada)

The phone was bought from Fido a couple years back.

Network Operator Code: 302720 (Rogers Wireless - I think this what my Network atm is for emergency calls)

This is all the information I could get, please let me know if you need more info

I tried the popular method of doing this via ServiceMode by dialing #*0011# but nothing shows up on screen when I do that, the numbers don't even disappear (they just sit there taunting me); the same goes for *#197328640#. The only code that I have seen work is *#06# (IMEI). I looked up multiple android codes and either the numbers would stay and nothing would happen but sometimes the numbers would just disappear when i completed the code with no changes on the screen. I have downloaded and ran Service Mode Shortcut and Service Mode app and when I click ServiceMode on them, it says "Not Supported." in a little caption bubble at the bottom of the screen.

I then ran GalaxySim Unlock App and it states "Your device should be unlockable if you downgrade your baseband to MDJ or before. When I click on How to do it?, it pretty much asks me to download a stock version of my phone and try the app again.

I would like some advice on what steps I should take next.

Thank you for your time,

roms4eva

THE SOLUTION FOR ME:

Hi, I am going to leave a summary of what I did to fix my sim! Thanks to [MENTION=4673498]audit13[/MENTION]!

All the download links can either be found via google or on some on this thread. The link in post#2 has useful download links within it!

PLEASE MAKE SURE YOU BACK UP ALL YOUR IMPORTANT SELFIES, FILES, VIDEOS, ETC... My steps will require a clean installation, if you do not want a clean installation, just skip step 10 where you have to do a factory restart and just continue as is.

Short instructions - if you are already familiar with the content:

Flash 4.4.2 stock(.tar.md5), flash modem 4.2.2 (.bin) (if you can't, try another odin), flash TWRP (.zip), install SuperUS (.zip), install and run RegionLock Away 1.3 (.apk), reflash 4.4.2 or 5.0.1 if you wanna newer ROMs on.

Long instructions:

Download Stock firmware of 4.4.2 for your provider (via Google)... extract it out until you get the .md5 file out (ie. I337MVLUFNE1_I337MOYAFNE2_I337MVLUFNE1_HOME.tar.md5)

Download modem 4.2.2 for your provider (via post #2) (ie.modem.bin)

Download TWRP (via post #2) (ie. twrp-3.0.2-0-jfltecan.img.tar)

Download SuperUS.zip (via post #2) (ie. SuperSU-v2.79-201612051815.zip) and put it onto your s4 storage (via MTP setting and USB debugging on)

Download Regionlock Away 1.3.apk (via post #2) (ie. RegionLockAway-v1.3.apk) and put it onto your s4 storage (via MTP setting and USB debugging on)

Download Odin v3.12.3 and/or v3.07 (via post#2 or Google) (if one does not work, ie. stays stuck in "file analysis...", try the other odin)

Verify that Odin can recognize your device (plug s4 in via download mode status [Turn off, then hold Down + Power] and see if oden says "Added!!")

Run Odin 3.12.3 w/ administrator powers, make sure your device is "Added!!", click AP and select the .md5 file you downloaded(its the 4.4.2 in step 1).

Give Odin some time as it verifies the md5, then click start once that button is available. Then click start again once it says "Leave CS..." [this one took me an embarrassing two hours to figure out... LOL)

Let the s4 boot up and then restart into recovery (turn off phone, then hold UP Volume + Power), and do a factory reset (select on factory reset/data wip and choose Yes)

Restart the phone and go to download mode again (Down Volume + Power).

Go back to Odin 3.12.3 with admin power and under CP select the modem file for your carrier (modem.bin) and click start. If you are stuck on file analysis... after doing this and it has been over one minute, close Odin 3.12.3 and try it with odin 3.07 with admin power... the modem.bin file goes into Phone section.

While in download mode still, you could restart odin and flash the TWRP with any of the odin programs (odin 3.12 via AP section, or 3.07 via PDA)

start the phone up in recovery mode (UP vol + power), click on install, then find the SuperUS.zip file and install it.

Start the phone up normally with the SIM inside if you haven't put it in yet. (internet connection not required and it doesn't matter if SIM was in or not in the previous steps)

Go to File Manager or File Explorer, find the RegionLockAway-v1.3.apk you put in and run it... make sure you enable the ability for apks to be manually installed.

Go to apps and open the RegionLock Away app.... Click on Region Unlock button and grant it the superUS permissions it requires... then reboot!

The SIM Network Unlock Pin should disappear and your phone is now SIM Unlocked! If it asks again, wait a minute and restart the phone. If that doesn't work, retry the steps or make a thread and someone might be able to help you out.

Repeat step 8 again! You need to reflash! [note that this will remove your TWRP recovery, so reinstall that again like you did in step 13 if you want that. You will also lose root due to reflashing (so install superUS again)

Good luck!