[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'm glad you got it working. I haven't updated the busybox installer in a good while, and some ICS+ recoveries might not like installing it.

I've been working on a native C binary that gets you your unlock code which doesn't have any external requirements. I think the script manager method might be easier for it since AROMA can be unstable at times.
 

rdorje1

Member
Dec 30, 2011
18
8
Thanks, but asking about IMEI

Hi,

Thanks for the work in this phone. My question is kind of noobish and I appreciate your patience answering all of the questions in this and the manual unlocker thread.

Is it common for the IMEI to read 00000000000 after this procedure? I can re-lock and restore and the IMEA comes back But while unlocked the IMEI number is all zeros.

Regards

Dorje
 

FBis251

Senior Member
Mar 21, 2011
3,418
3,716
www.fernandobarillas.com
Hi,

Thanks for the work in this phone. My question is kind of noobish and I appreciate your patience answering all of the questions in this and the manual unlocker thread.

Is it common for the IMEI to read 00000000000 after this procedure? I can re-lock and restore and the IMEA comes back But while unlocked the IMEI number is all zeros.

Regards

Dorje

No it's not common. Your IMEI should read whatever it did before the procedure, so it's odd that it comes back after you re-lock.

Do all your phone functions work after unlocking, texting, data, voice? If they do I wouldn't worry too much about it.
 

rdorje1

Member
Dec 30, 2011
18
8
No it's not common. Your IMEI should read whatever it did before the procedure, so it's odd that it comes back after you re-lock.

Do all your phone functions work after unlocking, texting, data, voice? If they do I wouldn't worry too much about it.

Hi,
Thank you for your reply.

It is a t959v (of course or I'd be in another forum) which I got originally as a T-Mobile device. After applying your unlock, and with the IMEI all 000s I can insert my daughter's ATT Sim card in and it works perfectly. Text messages, phone and data all work well.

When I insert my wife's T-Mobile SIM it does not work...

If it helps you to know, just doing a hex lock and rebooting will not bring the IMEI back. With the HEX lock in place, booting with a T-Mobile SIM card in will not restore IMEI either.

Doing an an EFS restore and reboot even without a SIM card in will restore the IMEI. Then when I place an active T-Mobile SIM in the device it will then work for texting, data and phone.

Thus over all I have all of the functionality I personally need. It would be nice in the unlocked state if I could just slip in any SIM I wanted to without need for re-locking and restore but to have to do these things to get back to a T-Mobile SIM use is not really a bother to me.

Having the option of the EFS backup and restore is quite useful and appreciated.

Thanks
 
  • Like
Reactions: FBis251

billyckot

Member
Sep 23, 2008
20
0
Your script didn't work, but the Unlocker program worked

Hi,

First, thanks for your posts and info.

I tried running Script Manager and your script many times, but could not get it working on my S 4G. My phone is a Wind SGH-T959W, rooted and flashed with CWM 6 recovery and SlimBean's ROM. The phone now shows itself as SGH-T959V.

When running your script, the very first line it shows an error, something to do with invalid path (which I didn't write it down and can't quite remember exactly). Then it showed an invalid parameter --r, "Unlock code not found", and then an invalid parameter --p.

I tried for many times, and got exactly the same errors. Then I finally downloaded your Unlocker, and it worked on the first try. Got the unlock code, entered it in and the phone is now unlocked.

Thank you very much. I hope you can fix up the script file for other users based on the little info I have above.

Billy
 

FBis251

Senior Member
Mar 21, 2011
3,418
3,716
www.fernandobarillas.com
Hi,

First, thanks for your posts and info.

I tried running Script Manager and your script many times, but could not get it working on my S 4G. My phone is a Wind SGH-T959W, rooted and flashed with CWM 6 recovery and SlimBean's ROM. The phone now shows itself as SGH-T959V.

When running your script, the very first line it shows an error, something to do with invalid path (which I didn't write it down and can't quite remember exactly). Then it showed an invalid parameter --r, "Unlock code not found", and then an invalid parameter --p.

I tried for many times, and got exactly the same errors. Then I finally downloaded your Unlocker, and it worked on the first try. Got the unlock code, entered it in and the phone is now unlocked.

Thank you very much. I hope you can fix up the script file for other users based on the little info I have above.

Billy

Thanks for your purchase!

Unfortunately the script manager method is heavily reliant on the correct version of busybox being installed. It's been hard to bundle the right version with the script, which is why I had been working on the AROMA version of this method, but that proved to be unreliable too. Basically, the easiest way to try to unlock using the script manager method is to try to get the unlock code after installing Team Acid's CM9 roms since they are the ones I tested on before I released the script.

I had a little more control with the app, and it's worked reliable for almost everyone who has tested it, so I'm glad to see that it also worked for you!
 

bogante

Senior Member
Apr 11, 2012
769
140
Obregon
busybox problem

scrip says i have a problem with busybox, I install the busybox that u put in the OP but i have the error.
 

jeffsf

Senior Member
Mar 7, 2011
1,121
976
San Francisco
A little more information would be helpful to figure out what is happening.

You can also just get in with adb and execute the commands in the script one at a time.

Then again, it is pretty likely that the phone in your hands is no longer under contract and T-Mobile will email you the unlock code on request.
 

bogante

Senior Member
Apr 11, 2012
769
140
Obregon
A little more information would be helpful to figure out what is happening.

You can also just get in with adb and execute the commands in the script one at a time.

Then again, it is pretty likely that the phone in your hands is no longer under contract and T-Mobile will email you the unlock code on request.

Apparently i have the code now, but when I insert the SIM card is not show the camp for put the numbers, what can i do?
 

FBis251

Senior Member
Mar 21, 2011
3,418
3,716
www.fernandobarillas.com
Hey guys,

I spent some time writing a new unlocker in pure C. It's worked perfectly fine on the 3 test nv_data file I've used so far.

Once I get it cross compiled I'm going to need some testers to try running it for me (since I don't have a phone to test this on). Anyone who is interested please reply.
 

FBis251

Senior Member
Mar 21, 2011
3,418
3,716
www.fernandobarillas.com
Hey guys, I just released version 2.0 of my unlocker app. You can check the details here:
http://xdaforums.com/showthread.php?t=2243585

As far as the free version, the binary version I made works fine, jeffsf tested it for me and I finally got to test it on an actual SGS4G myself and it works fine.

I've added a nice new feature too, a lock status checker. It will tell you whether or not your phone is unlocked, in addition to giving you your unlock code.

I'll try to have a zip download for you guys tomorrow! It probably won't have all the AROMA goodness, but it'll make it easy for you guys to use script manager to get your codes.

Hang tight!
 

bajoagua

New member
Dec 8, 2014
4
0
Something wrong

Great App, works just fine. But I had a little problem, found the unlock code, but the phone won't take it. Still says Incorrect Code, any ideas?
 

FBis251

Senior Member
Mar 21, 2011
3,418
3,716
www.fernandobarillas.com
Great App, works just fine. But I had a little problem, found the unlock code, but the phone won't take it. Still says Incorrect Code, any ideas?

You can try the unlock method here by hand:
http://xdaforums.com/showthread.php?t=980157

Note that you should make a backup before trying any of the steps in that guide! It does teach you how to make a bml3 backup though, so that should be enough, but make sure to back that file up elsewhere.

You can also try my app. It costs $3 and you can unlock your phone with just a tap of a button.
http://xdaforums.com/showthread.php?t=2243585
 
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.