5,595,497 Members 47,258 Now Online
XDA Developers Android and Mobile Development Forum
View Poll Results: What model did this work on?
GT-I9000 2,042 49.41%
USA Vibrant 969 23.45%
USA Captivate 570 13.79%
Bell I9000 275 6.65%
Other 277 6.70%
Voters: 4133. You may not vote on this poll

[REF] How to unlock/unfreeze all SGS Models [NOW WORKS ON Vibrant 4G][Updated 4-9-11]

Tip us?
 
dagentooboy
Old
(Last edited by dagentooboy; 16th July 2011 at 07:53 PM.)
#1  
dagentooboy's Avatar
Senior Member - OP
Thanks Meter 116
Posts: 507
Join Date: Feb 2008
Location: Kansas
Arrow [REF] How to unlock/unfreeze all SGS Models [NOW WORKS ON Vibrant 4G][Updated 4-9-11]

Vibrant 4G/SGS 4G manual method here

PRO App also works on Vibrant 4G/SGS 4G for anyone who doesn't feel comfortable with a hex editor

Do NOT try this or any other unlock method on the SC-02B Docomo phone. Please see thread here for progress on the SC-02B

Please note the same information used to develop the app is in the guide for free... the app just makes it easier

ALL METHODS FOR NEWER PHONES REQUIRE ROOT... PLEASE GO GET ROOT ON YOUR PHONE AND THEN COME BACK.

Oh and BTW... I cannot be held responsible for anything that happens to your phone.... EVER!


Before you start... if you don't have root you WILL need it unless you are on a really old version of android 2.1 (look in Appendix A for depreciated methods)

Step 1. - Retrieve nv_data.bin file
use "adb shell" or a terminal emulator to get a terminal prompt and run the following commands
Code:
su
cat /efs/nv_data.bin >> /sdcard/nv_data.bin
Step 2. - Edit nv_data.bin file
mount the internal SD Card on your computer
make a backup copy of the nv_data.bin file on your computer
using your favorite HEX editor open the nv_data.bin on the sdcard
jump to address 0x181468

you should see a string like this
ff 01 00 00 00 00 46 46
there are 5 different types of locks in 5 different bytes
the FF byte should be left alone
the first byte after the FF is the network lock
the next byte is the network subset lock
the next byte is the sp lock
the next byte is the cp lock
the last byte appears to be a data lock.
the 46 46 should be left alone
Change any 0x01 to 0x00 (or 0x00 to 0x01 to lock for warranty)
It should read ff 00 00 00 00 00 46 46 for unlocked
save and close file
unmount SD Card

Step 3. - Replace nv_data.bin file
I want to say it again so no one misses it MAKE SURE YOU HAVE A BACKUP OF YOUR NV_DATA.BIN FILE BEFORE YOU CONTINUE!!!!!

use "adb shell" or a terminal emulator to get a terminal prompt and run the following commands
Code:
su
rm /efs/nv_data.bin
rm /efs/nv_data.bin.md5
cat /sdcard/nv_data.bin >> /efs/nv_data.bin
chmod 755 /efs/nv_data.bin
chown radio.radio /efs/nv_data.bin || chown 1001.1001 /efs/nv_data.bin
reboot
your phone is now unlocked... enjoy

[OPTIONAL] Use the PRO app [OPTIONAL]
Please note that this step is ONLY here for people that are not comfortable using a Hex editor.
Search "Vibrant unlock" in the market or scan the QR code:


Install and run app
press menu
press Unlock Phone
Select phone
allow root
at this point if you get an error code make SURE you mount your internal SD card on your computer and backup the nv_data.bin.orig file that is there.
press unlock
restart and your phone is now unlocked

to lock your phone for warranty
press lock instead of unlock
restart your phone, remove root, and take your phone in for warranty


APPENDIX A (DEPRECIATED)

DOES NOT WORK ON 90% PHONES PLEASE USE THE APP

Using ADB
Make sure that Network Lock is the only thing on... go to phone and enter *#7465625#
Make sure USB debugging is enabled (Settings->Applications->Development->USB Debugging)
Using APP (Thanks ClarkeHackworth and DaGentooBoy)
ClarkHackworth's page about the app
Same thing as before if this bricks your phone sorry but we aren't responsible.

Step A.1. – Get your code
Search Samsung Galaxy S Unlock Tool in the market or scan the QR code.

Install SGS_Unlock.apk
Applications->SGS Unlock
Menu->Root Gen Codes (Root method is the most reliable method at this point)

Jump to Step A.2.

Step A.1.alternate – Get your code [B]

For Mac Updated!!! New Script

Quote:
Originally Posted by nbs11 View Post
1. Download the Samsung Galaxy S Unlocker for Mac from this here:
http://www.multiupload.com/9NEBR6FAKD

2. Mount the DMG and drag the folder onto the hard drive. DO NOT DRAG THE ICON WITH THE LOCK (the app). Once the file is finished copying continue.

3. Open the application with the lock. It should open a terminal window. Let it run for a few seconds and then it should show a screen like this:



4. Write down your unlock code
For Windows UPDATED!!! With Un-Freeze Codes
Video Guide
Download and extract the attached Generate Unlock Windows.zip.
Run Generate_Code.bat
Look for the line Network Control Key:YourCode
Save the code

Step A.2. – Enter the code

Power down your phone
Put in a SIM card from another carrier
Power up your phone
When it boots up it will ask for the unlock code that you found above

OR

NO SIM Method (Thanks RazvanG)
(Apparently this just adds another SIM to the accepted SIM list... can someone confirm?)
remove sim card
power on phone without sim
enter *7465625*638*# and relock the phone to another network other than the one u have u'r sim card (eg 22610)
power off phone
insert sim card back
power on and enter nck code extracted from .bak file
phone unlocked

Step A.3. – Flash back (IF THE CODE DIDN'T WORK)

Flash back to an older firmware (I9000XXJF7 with 513.pit worked for me on an I9000)
Now enter the unlock code you generated in Step 2.


Quote:
Originally Posted by RazvanG View Post
HOW TO LOCK SAMSUNG GALAXY S - FOR WARRANTY PURPOSES ONLY (TESTED)

After you get the NCK code using the method above, enter: *7465625*638*#
There will be a pop-up box.
Complete the first field (MCC/MNC) with the network you want your phone locked to (eg. 226 10 where 226 = romania; 10 = orange etc.) and the second field (Control Key) with the NCK extracted from the .bak file.
Press OK and your phone should relock.
RazvanG
Guide in Spanish here
Guide in Italian here
Guide in Chinese here

LEGAL NOTES (because information should be free for all):
YOU MAY NOT, BY ANY MEANS, USE THIS SOLUTION/CODE OR PART OF IT FOR COMMERCIAL PURPOSES.
DO NOT USE THIS EXTRACTION METHOD COMMERCIALLY



PLEASE give credit (and donations if you can) to
For those of you that have donated THANKS! (You know who you are... you paid for my developer account so I could post the app)

DaGentooBoy For this AWESOME guide, the free and PRO apps, finding the other unlock bits, the original mac and windows scripts, the no root cat nv_data method, the unfreeze code portion of the mac script, and a lot of troubleshooting (Paypal)

dawen, Helroz, and NWolf for discovering the hex location of the lock bit in the nv_data.bin file (donate to NWolf here)

RazvanG for pointing galaxysguy in the right direction, finding the Freeze Code location in the .bak file, the code for re-locking the phone to any network, and the solution to unlock with only one sim card (Paypal)

rbnet.it and marcopon for the cool SGUX utility for windows to extract both the Unlock and Unfreeze codes (donate to marcopon and rbnet.it Here)

nbs11 for the new mac script that makes it REALLY easy (donate here)

Bowsa2511 for the command to extract the unlock code on a Mac (Paypal here)

rhcp0112345 for finding the file and giving me (and others) a place to start (Donate here)

galaxysguy for confirming that I was looking at the right code (Paypal here)

AllGamer for starting the Bounty thread and giving the XDA devs the motivation to get started.

If you want me to extract the code for you just PM me with a link to your zipped bml3.bak or nv_data.bin file and I will send you back the code. If it works please feel free to donate via Paypal
Attached Files
File Type: zip Generate Unlock Windows.zip - [Click for QR Code] (305.9 KB, 198217 views)
File Type: apk SGS_Unlock.apk - [Click for QR Code] (64.1 KB, 60761 views)
Free Unlock For
Samsung Galaxy S variant here
Samsung Galaxy S 4G here
Galaxy Tab here
If you find my guide or advice helpful please donate

Galaxy Tab Unlock QR SGS Unlock PRO QR


In a world without walls and fences who needs Windows and Gates?
The Following 43 Users Say Thank You to dagentooboy For This Useful Post: [ Click to Expand ]
 
Benjamin Dobell
Old
#2  
Recognized Developer
Thanks Meter 544
Posts: 842
Join Date: Jul 2010
Location: Melbourne

 
DONATE TO ME
Great work dagentooboy. I was working on a free unlock myself but approaching it from a slightly different angle. Unfortunately bricking my phone held me up a lot but I'm glad to see someone has done it now.
 
AllGamer
Old
#3  
AllGamer's Avatar
Retired Forum Moderator
Thanks Meter 1571
Posts: 11,517
Join Date: May 2008
Location: buried under loads of work IRL

 
DONATE TO ME
re: credits
apparently marcopon helped rbnet.it to write that sgux utility.

Donation is appreciated but not required, a cup of Coffee would suffice

Samsung i9000m: on CM10
Samsung Nexus S: on JB 4.2.2
Samsung Galaxy S II SGH-T989: on CM10
Samsung Galaxy NOTE SGH-i717r: on CM10
Samsung Galaxy NOTE 3 SM-N900W8: stock 4.3
 
dagentooboy
Old
#4  
dagentooboy's Avatar
Senior Member - OP
Thanks Meter 116
Posts: 507
Join Date: Feb 2008
Location: Kansas
Quote:
Originally Posted by AllGamer View Post
re: credits
apparently marcopon helped rbnet.it to write that sgux utility.
thanks... I saw the bounty thread is updated. Feel free to link to the instructions on this thread so that they all go to one place.
Free Unlock For
Samsung Galaxy S variant here
Samsung Galaxy S 4G here
Galaxy Tab here
If you find my guide or advice helpful please donate

Galaxy Tab Unlock QR SGS Unlock PRO QR


In a world without walls and fences who needs Windows and Gates?
The Following User Says Thank You to dagentooboy For This Useful Post: [ Click to Expand ]
 
rbnet.it
Old
#5  
Junior Member
Thanks Meter 1
Posts: 25
Join Date: Aug 2010
Location: Umbria
Quote:
Originally Posted by AllGamer View Post
re: credits
apparently marcopon helped rbnet.it to write that sgux utility.
Yes! It's shown in the credits:



Uploaded with ImageShack.us
 
Jreddekopp
Old
#6  
Junior Member
Thanks Meter 0
Posts: 18
Join Date: Jul 2010
Location: Edmonton
This is just the thing I've been looking for. Thanks a lot. Just out of curiosity, why do you have to flash back to older firmware after entering the unlock code?
 
marcopon
Old
(Last edited by marcopon; 21st August 2010 at 07:18 PM.) Reason: Added a thank you note!
#7  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Apr 2010
Yes, I usually go by the Mark0 nick but it was already used in the forum (IIRC).
I want also to thanks andars05 for a post he made that provided some inspiration.

Nice to see that the tool is proving to be useful!

Feel free to donate to the PayPal link rbnet.it provided!
 
TheNaturat
Old
#8  
Member
Thanks Meter 2
Posts: 32
Join Date: Aug 2010
Got "Permission denied" after su in step 1 - I've got rooted Captivate with stock firmware - I know that is probably problem with access to root account, but all apps are working properly with it. Any idea for solution?

I've Windows 7, tried running command line with administrator privileges, but it didn't helped.
 
rbnet.it
Old
(Last edited by rbnet.it; 21st August 2010 at 11:05 PM.)
#9  
Junior Member
Thanks Meter 1
Posts: 25
Join Date: Aug 2010
Location: Umbria
Quote:
Originally Posted by TheNaturat View Post
Got "Permission denied" after su in step 1 - I've got rooted Captivate with stock firmware - I know that is probably problem with access to root account, but all apps are working properly with it. Any idea for solution?

I've Windows 7, tried running command line with administrator privileges, but it didn't helped.
After "su", have you allowed the root access on the phone?
 
dagentooboy
Old
#10  
dagentooboy's Avatar
Senior Member - OP
Thanks Meter 116
Posts: 507
Join Date: Feb 2008
Location: Kansas
Quote:
Originally Posted by Jreddekopp View Post
This is just the thing I've been looking for. Thanks a lot. Just out of curiosity, why do you have to flash back to older firmware after entering the unlock code?
Sorry That is what it took to unlock mine. I updated the first post... you don't have to do that if the code works.
Free Unlock For
Samsung Galaxy S variant here
Samsung Galaxy S 4G here
Galaxy Tab here
If you find my guide or advice helpful please donate

Galaxy Tab Unlock QR SGS Unlock PRO QR


In a world without walls and fences who needs Windows and Gates?

The Following User Says Thank You to dagentooboy For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes