Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[MOD] SGS4G Carrier Unlocker (Nov 7)

OP FBis251

30th December 2011, 07:47 PM   |  #1  
FBis251's Avatar
OP Recognized Contributor
Thanks Meter: 3,704
 
3,343 posts
Join Date:Joined: Mar 2011
Donate to Me
More


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://forum.xda-developers.com/show....php?t=2243585

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.


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


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


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


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


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".


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


Unlocker on GitHub





Here's the changelog:
Quote:

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


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 by FBis251; 21st April 2013 at 01:11 AM.
The Following 40 Users Say Thank You to FBis251 For This Useful Post: [ View ]
30th December 2011, 08:39 PM   |  #3  
FBis251's Avatar
OP Recognized Contributor
Thanks Meter: 3,704
 
3,343 posts
Join Date:Joined: Mar 2011
Donate to Me
More
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.
The Following 5 Users Say Thank You to FBis251 For This Useful Post: [ View ]
31st December 2011, 12:22 AM   |  #4  
bswann's Avatar
Senior Member
Flag Mobile,AL
Thanks Meter: 518
 
959 posts
Join Date:Joined: Mar 2011
More
It worked but is my code supposed to be 16 digits?
31st December 2011, 12:32 AM   |  #5  
xolanir's Avatar
Senior Member
Flag Springville
Thanks Meter: 149
 
882 posts
Join Date:Joined: Jul 2011
More
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
31st December 2011, 12:49 AM   |  #6  
FBis251's Avatar
OP Recognized Contributor
Thanks Meter: 3,704
 
3,343 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Quote:
Originally Posted by bswann

It worked but is my code supposed to be 16 digits?

It's not supposed to be. It's 8 digits. I'll contact you again when I get home.


Yes the code prompt will come up when you try another company's sim

Sent from my SGH-T959V using XDA App
The Following 3 Users Say Thank You to FBis251 For This Useful Post: [ View ]
31st December 2011, 12:58 AM   |  #7  
xolanir's Avatar
Senior Member
Flag Springville
Thanks Meter: 149
 
882 posts
Join Date:Joined: Jul 2011
More
Quote:
Originally Posted by FBis251

It's not supposed to be. It's 8 digits. I'll contact you again when I get home.


Yes the code prompt will come up when you try another company's sim

Sent from my SGH-T959V using XDA App

My code came out to 16 digits as well. Did I do something wrong?
31st December 2011, 02:00 AM   |  #8  
Fluidification's Avatar
Senior Member
Thanks Meter: 1,487
 
2,111 posts
Join Date:Joined: Feb 2011
More
I get "od: not found" after copy of bml3.

Sent from my SGH-T959V using xda premium
31st December 2011, 03:02 AM   |  #9  
Fluidification's Avatar
Senior Member
Thanks Meter: 1,487
 
2,111 posts
Join Date:Joined: Feb 2011
More
Got it working

Sent from my SGH-T959V using xda premium
31st December 2011, 03:40 AM   |  #10  
bswann's Avatar
Senior Member
Flag Mobile,AL
Thanks Meter: 518
 
959 posts
Join Date:Joined: Mar 2011
More
This is what I got -



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 by bswann; 31st December 2011 at 04:50 AM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes