[MOD] SGS4G Carrier Unlocker (Nov 7)

Status
Not open for further replies.
Search This thread

FBis251

Senior Member
Mar 21, 2011
3,418
3,716
www.fernandobarillas.com
I have released my paid app that will let you easily unlock your phone with a native Android app at the touch of a button! If you have trouble using my free unlock methods the app will be able to unlock your phone even if the unlock code did not work.
Check the app thread for more info: http://xdaforums.com/showthread.php?t=3005777




I recently did a carrier unlock on my SGS4G and thought it was too much of a hassle to have to use hex editors to find your code so I decided to make this tool.

unlocker_news.png

November 7, 2012
Hopefully fixed all the bugs related to sh syntax (needs testing and confirmation)

unlocker_features.png

* Gets your carrier unlock code
* Easy to run script, no more using hex editors!

unlocker_notes.png

* You will need to boot up your phone without a sim card in it, though you might need to get on Wifi.

unlocker_prerequisites.png

* Root
* Busybox. You can use my CWM Busybox Installer

unlocker_instructions.png

1) Download the script file, save it on the SD card
2) Download Script Manager from the market
3) Open Script Manager and run the script from the SD card
4) When the dialog comes up asking you to run the script, tap Run
5) Your unlock code will be shown on the screen and will be saved as unlock_code.txt on your sd card
6) You can now use the unlock code when you put in the non-T-Mobile sim into your phone and unlock your phone. You can check the unlock status by dialling *#7465625#. All the locks should say "OFF".

unlocker_downloads.png

Script Manager (Android Market)
sgs4g_unlocker.sh
CWM Busybox Installer

unlocker_source.png

Unlocker on GitHub

unlocker_screenshots.png

unlocker1.png
unlocker2.png


unlocker_changelog.png

Here's the changelog:
November 7, 2012
Hopefully fixed all the bugs related to sh syntax (needs testing and confirmation)

October 10, 2012
Updated busybox checking (for people who refuse to read the OP and instructions)
Made the script more SH-like
Made sure that the programs/commands the script use are the ones provided by busybox
Fixed a derp with a then clause

January 30, 2012
Updated screenshots in OP to reflect the script's output
The script no longer requires superuser access (though you will still need it to install busybox)
Added debug output for dd command
Added ERROR function and error code to catch when nv_data.bin is not found.

January 22, 2012
Changed script's working directory
Added version number and creator info to the top of the script
Added a message in case the unlock code is not found (added by stephen_w)
-- Adapted to sh instead of bash
Cleaned up the script to only show debug messages when wanted.

January 22, 2012
Added a link to the git repository holding the script's source code:
https://sourceforge.net/p/teamacid/unlocker/

January 14, 2012
* Vastly increased performance gain. Now copies nv_data.bin instead of doing a bml3 dump so you get your code in around 1 second after running the script.
* Should now find your unlock code even if you unlocked your phone already.

December 31, 2011
Updated to version 0.3
* Added a switch to the grep command (provided by stephen_w) to hopefully eliminate the duplicate code bug.

December 30, 2011
Updated to version 0.2
* Fixed the duplicate unlock code bug thanks to a bml dump from bswann

December 30, 2011
Initial release

unlocker_credits.png

sanfranx415 and SS2006 for the steps to unlock
stephen_w for his contributions to the project
ultimakillz, bhundven and raverx3x for testing
bswann for providing a bml dump to find a duplicate code bug
 
Last edited:

xolanir

Senior Member
Jul 19, 2011
900
148
Springville
Worked like a charm! So just to be clear, in order to be fully unlocked, I'd need a different sim in my phone and then input the code when prompted?

sent from my CommandCenter using xda premium
 

bswann

Senior Member
Mar 12, 2011
1,006
519
Mobile,AL
This is what I got -

snap20111230_213417.png


Man...I feel dumb! I just just posted the screenshot and only just now noticed that the number sequence repeats itself so there is a 8 digit code...twice. I wish I had a different sim to check and see if the first eight will work or not.
 
Last edited:

cnote74

Senior Member
Nov 26, 2010
4,159
2,564
50
oklahoma city
Do you have busybox installed? I had it installed already and got an error so I used busybox pro and updated busybox to v1.19.3. It worked after that although I'm showing 16 digits but it is just 8 digits repeated.

Your suggestion of reinstalling busybox fixed my problem thank you.

Sent from my SGH-T959V using xda premium
 

xolanir

Senior Member
Jul 19, 2011
900
148
Springville
This is what I got -

snap20111230_213417.png


Man...I feel dumb! I just just posted the screenshot and only just now noticed that the number sequence repeats itself so there is a 8 digit code...twice. I wish I had a different sim to check and see if the first eight will work or not.

You're right. The code repeats itself. Typed in the first set of 8 and it unlocked. Used an old Verizon world phone sim card to unlock. Will post a screenie once I get a working AT&T sim to show success. FB you're the man dude!!!

sent from my CommandCenter using xda premium
 

FBis251

Senior Member
Mar 21, 2011
3,418
3,716
www.fernandobarillas.com
December 30, 2011
Updated to version 0.2
* Fixed the duplicate unlock code bug thanks to a bml dump from bswann

It turns out that it was caused by the script finding the code twice in the bml dump and the way the script outputs the code bunches the numbers out together without any line endings. If you check your /sdcard/bml/ folder and look in the unlock.txt file you'll see what I mean bswann.
 
Last edited:

iHelper

Senior Member
Jan 3, 2011
234
52
Thnx! Worked flawlessly! I can't believe how EASY that was!

-Sent From My Amazing SGS4G-
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 39
    I have released my paid app that will let you easily unlock your phone with a native Android app at the touch of a button! If you have trouble using my free unlock methods the app will be able to unlock your phone even if the unlock code did not work.
    Check the app thread for more info: http://xdaforums.com/showthread.php?t=3005777




    I recently did a carrier unlock on my SGS4G and thought it was too much of a hassle to have to use hex editors to find your code so I decided to make this tool.

    unlocker_news.png

    November 7, 2012
    Hopefully fixed all the bugs related to sh syntax (needs testing and confirmation)

    unlocker_features.png

    * Gets your carrier unlock code
    * Easy to run script, no more using hex editors!

    unlocker_notes.png

    * You will need to boot up your phone without a sim card in it, though you might need to get on Wifi.

    unlocker_prerequisites.png

    * Root
    * Busybox. You can use my CWM Busybox Installer

    unlocker_instructions.png

    1) Download the script file, save it on the SD card
    2) Download Script Manager from the market
    3) Open Script Manager and run the script from the SD card
    4) When the dialog comes up asking you to run the script, tap Run
    5) Your unlock code will be shown on the screen and will be saved as unlock_code.txt on your sd card
    6) You can now use the unlock code when you put in the non-T-Mobile sim into your phone and unlock your phone. You can check the unlock status by dialling *#7465625#. All the locks should say "OFF".

    unlocker_downloads.png

    Script Manager (Android Market)
    sgs4g_unlocker.sh
    CWM Busybox Installer

    unlocker_source.png

    Unlocker on GitHub

    unlocker_screenshots.png

    unlocker1.png
    unlocker2.png


    unlocker_changelog.png

    Here's the changelog:
    November 7, 2012
    Hopefully fixed all the bugs related to sh syntax (needs testing and confirmation)

    October 10, 2012
    Updated busybox checking (for people who refuse to read the OP and instructions)
    Made the script more SH-like
    Made sure that the programs/commands the script use are the ones provided by busybox
    Fixed a derp with a then clause

    January 30, 2012
    Updated screenshots in OP to reflect the script's output
    The script no longer requires superuser access (though you will still need it to install busybox)
    Added debug output for dd command
    Added ERROR function and error code to catch when nv_data.bin is not found.

    January 22, 2012
    Changed script's working directory
    Added version number and creator info to the top of the script
    Added a message in case the unlock code is not found (added by stephen_w)
    -- Adapted to sh instead of bash
    Cleaned up the script to only show debug messages when wanted.

    January 22, 2012
    Added a link to the git repository holding the script's source code:
    https://sourceforge.net/p/teamacid/unlocker/

    January 14, 2012
    * Vastly increased performance gain. Now copies nv_data.bin instead of doing a bml3 dump so you get your code in around 1 second after running the script.
    * Should now find your unlock code even if you unlocked your phone already.

    December 31, 2011
    Updated to version 0.3
    * Added a switch to the grep command (provided by stephen_w) to hopefully eliminate the duplicate code bug.

    December 30, 2011
    Updated to version 0.2
    * Fixed the duplicate unlock code bug thanks to a bml dump from bswann

    December 30, 2011
    Initial release

    unlocker_credits.png

    sanfranx415 and SS2006 for the steps to unlock
    stephen_w for his contributions to the project
    ultimakillz, bhundven and raverx3x for testing
    bswann for providing a bml dump to find a duplicate code bug
    6
    If you haven't noticed, this has been posted on the XDA Portal! Thanks FB, i haven't been here that long but that's the first time i've seen our phone on there! :D
    6
    I got pretty excited. :) Thanks for the heads up.

    Of course man!

    Sent from my SGH-T959V using xda premium
    6
    :). Pretty soon I'm going to release the app I'm working on to make unlocking a matter of just having root. It'll work on Froyo/GB and ICS ROMs. Initially it will only support the same features as this script (displaying your unlock code).

    The next version will support unlocking by editing the nv_data.bin file in addition to support making and restoring backups of the efs partition.

    Note that it will be a paid app.
    5
    Thanks. I was so sleepy yesterday that I hadn't realized how easy it was to finish the script. I had a mental block deciding on how to convert the hex codes back to ascii using only programs available on busybox.