[Galaxy S I9000 Android Development] RazvanG:
As of today, August 25, this thread is for INFORMATiONAL PURPOSES ONLY and NOT Updated Anymore. For a complete guide on unlocking, please use this thread and donate to all who made this possible (XDA devs: GalaxySGuy, DaGentooBoy, RazvanG, rbnet.it and marcoponand and rhcp0112345)

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=

=======================================================================

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

YOU ARE NOT ALLOWED TO USE THIS METHOD IN YOUR FREE SOFTWARE WITHOUT PROPER CREDITS ADDED TO IT.

YOU SHOULD ALWAYS MENTION MY NAME AND MY PAYPAL ACCOUNT FOR DONATIONS IN YOUR SOFTWARE IF YOU CHOOSE TO DISPLAY THE UNFREEZE CODE !!

Remember the places online to get a code (NCK & UN-FREEZE), want $25-30 so please donate

PLEASE give credit (and donations if you can) to

RazvanG for finding The Solution, writing this Tutorial and the Automated Script (PayPAL Donation)

rhcp0112345 for finding the file and giving me (and others) a place to start (PayPAL Donation)

rbnet.it and marcopon for the cool SGUX2 utility to extract the code (donate to marcopon and rbnet.it here)

DaGentooBoy for finding a way to extract the .bin file on an un-rooted phone (PayPAL)

For those of you that have donated THANKS!

1. DEV Solutions; Canada

2. Mobile Solutions; Thailand

3. Helio Gastao; Angola

4. Daniel Costin; United States

5. Javier Vidal Mata; Spain

6. Ryan Holzer; United States

7. Kapildev Vyas; Canada

8. Johann Grabner; Austria

9. Valentin Reznik; Israel

.. and a bigger THANKS to those who will donate in the future !!

If your phone has a "Phone Freeze" / "Phone Freeze SIM Unavailable Please Contact Service Provider" or a similar message displayed when you enter a not yet accepted SIM card, this is because you have entered too many wrong unlocking codes previously.

To fix this, you'll be using ADB (Until someone writes down a script) Auto_process via Script file.

Make sure USB debugging is enabled when getting the .bak file from a rooted phone or the .bin file from an un-rooted phone.

(Settings->Applications->Development->USB Debugging)

Step 1. – Get the file

For rooted phones

(Advanced Users):

adb shell

su

cd /dev/block

dd if=/dev/block/bml3 of=/sdcard/bml3.bak

For un-rooted phones

(EASY method for everyone that uses Windows):

Download the file from the attachment (eXtract C0des.zip)

Extract it

Connect your phone to the PC (Make sure USB debugging is enabled)

Double click: Extract_CODES.bat

Jump to Step 3 (Enter the Code)

OR

Install Better Terminal Emulator 3.17 App

Launch the App on the device. It will give you a command prompt (shell)

cat /efs/nv_data.bin >> /sdcard/nv_data.bin

Mount USB storage and copy the file off the internal SD card

Rooted phones: search for bml3.bak

Un-Rooted phones: search for nv_data.bin

Step 2. – Find the code

Download SGUX2 (v.0.92b): http://www.multiupload.com/81WAY99VHH

It's a win32 executable. Run the program from command line with the blockdevice backup as parameter:

Rooted phones:

c:\sgux2.exe bml3.bak

Un-Rooted phones:

c:\sgux2.exe nv_data.bin.bak

It returns the Freeze Code, Unlock Code/Control Key (NCK) and Network Code (MCC/MNC) for your phone.

OR

Open the file in a HEX editor

Search for SSNV (in ASCII Mode)

At the end of this block of data there should be a string of numbers

(my freeze code started at 00180036)

The format will be freeze_code.freeze_code.unlock_code.network_locked_to

eg.: 1234567812345678.34826952.00000022610

Blue = FREEZE Code (First 8 Digits)

Green = Network Control Key (NCK)

Orange = MCC/MNC the phone is locked to

Step 3. – Enter the code

Power on phone with wrong sim inside so phone displays "Phone Freeze, SIM unavailable. Please contact service provider"

Now type FREEZE CODE that you extracted from the .bak/.bin file and press OK (no digits will be seen on display when entering this code)

Now phone will ask you for Network Code, so enter the NCK code extracted from the .bak/.bin file and press OK.

Now your phone should be un-freezed and unlocked.

HOW TO LOCK SAMSUNG GALAXY S - FOR WARRANTY PURPOSES ONLY

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

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

YOU ARE NOT ALLOWED TO USE THIS METHOD IN YOUR FREE SOFTWARE WITHOUT PROPER CREDITS ADDED TO IT.

YOU SHOULD ALWAYS MENTION MY NAME AND MY PAYPAL ACCOUNT FOR DONATIONS IN YOUR SOFTWARE IF YOU CHOOSE TO DISPLAY THE UNFREEZE CODE !!

PS: For devs only: SP=00000000; CP=00000000 (default in every GT-I9000)

If you want me to extract the code for you just PM me with a link to your zipped bml3.bak/nv_data.bin file and I will send you back the code. If it works please feel free to donate via Paypal