Related
I don't take the responsibility for any damage caused by the information included.
This is not my intention to reveal any secrets of HTC Company. All this information was known earlier. I've just collected it in one place and used it for repairing my broken HTC device.
Although it was successfully tested on Herald from Dopod, it should work on any Herald and as far as I know this is the only hope, especially for Heralds with low SPL number, broken by flashing with HardSPL
If you find this tutorial useful, do it on your risk.
I've spent a lot of time in searching of a solution for my bricked Dopod C858. It has been bricked after Hard-SPL by Olipro. When this Hard-SPL was first introduced, there wasn't any warnings about minimum SPL and GSM versions requirements. That's why there is a lot of people with their Heralds stuck in the bootloader mode without a possibility of successful flashing in any way.
One of the symptoms was Invalid Update Tool 300 Error when I was trying to flash even with the official RUU. The other symptom was "GetDeviceCID: Error - InitDecoder" when getdevinfo command was typed at MTTY console.
Finally I was able to recover from this state. I successfully created the goldcard - a micro SD card with the special header, which gives us a temporary SuperCID status (security level 0). In this way we are able to flash the new ROM via SD card, instead of using the official RUU (ROM Update Utility). If it is not enough to flash successfully, we can use a wonderful service tool included in Herald's diagnostic image (heradiag.nbh).
All the credits goes to "itsme" and his hard work. It wouldn't be possible without his knowledge, his help and his great software. Willem agreed to make this tutorial and share this knowledge on the forum.
Thank you Willem!
I would also like to thank "pof" for his effort and although he couldn't find a solution, he tried to help me, so thank you Pau!
The other person I would like to thank is "canonyang_China". I know he is accused of stealing Olipro's ideas of Hard-SPL. I only want to thank him for posting heradiag.nbh file. This is the great tool which together with the goldcard can do a lot.
I would also like to mention one person. It's "jockyw". He has almost identical solution but he has found it by himself. If you find this tutorial too hard to deal with I recommend to contact "jockyw" and he will help you for a small paypal donation.
TUTORIAL:
***********************************************************
Requirements (not tested on other configurations):
1) Windows XP with SP3
2) ActiveSync 4.5
3) ActivePerl 5.8.8.822
4) Crypt-DES and XdaDevelopers-NbfUtils PERL packages
5) typhoonnbfdecode.pl PERL program
6) itsutils tools
7) working mobile device with any Windows mobile OS (2003, 5.0, 6.0)
8) any .nbh ROM file from the official Herald's RUU
9) heradiag.nbh file
10) micro SD card (tested on 512MB and 1GB)
Ad.2) download your language verion of ActiveSync and install it:
Ad.3) download and install MSI installer of ActivePerl 5.8.8.822 from http://www.activestate.com
http://www.activestate.com/store/download_file.aspx?binGUID=e5c71329-b7a6-4563-8199-e1483f751c4f
Ad.4) run Perl Package Manager from Windows Start Menu
change PPM Preferences (run Preferences from the Perl Package Manager menu and switch to the repository tab):
- Add repositories:
Name: itsme
Location: http://www.xs4all.nl/~itsme/projects/perl/ppm
- Add repository:
Name: theoryx
Location: http://theoryx5.uwinnipeg.ca/ppms/package.xml
After database synchronization install those packages (at the main window of Perl Package manager find those packages, mark them for install (the icon with green plus, next to the search bar) and run marked action(green arrow icon)):
-Crypt-DES
-XdaDevelopers-NbfUtils
If you can't find those packages on your list, please make sure you have selected "All packages" from "View" menu in Perl Package Manager main window.
Ad.5) download typhoonnbfdecode.pl from http://www.nah6.com/~itsme/cvs-xdadevtools/xda2nbftool/
Save it to "C:\itsutilsbin"
Ad.6) download itsutilsbin package from http://www.xs4all.nl/~itsme/projects/xda/tools.html. Unpack it to "C:\itsutilsbin"
http://nah6.com/~itsme/itsutilsbin-20080602.zip
Ad.7) Find a working Windows mobile device and use it to format your micro SD card as FAT32. It's important to do this on working mobile device with any Windows mobile OS (2003, 5.0, 6.0) because PC USB card readers causing troubles with making a goldcard because of a different MBR interpretation.
- Activesync your working Windows mobile device with SD card inside
- On your PC enter windows command mode (Start->Run... cmd)
- Choose your itsutilsbin directory (cd C:\itsutilsbin),
- Run this command (l means a letter 'el' - not a digit 'one'):
psdread -l
If you have problems with running psdread -l you probably have problems with the security configuration of your mobile device. There are many options to change it. In my case I was using Device Security Manager PowerToy for Windows Mobile 5.0
It is recommended to save your security configuration, then change it to the Security Off level and after the whole goldcard preparation process, load saved configuration preset if you don't want to leave your Windows mobile device Security Off. You should have your mobile device ActiveSync with your PC when you are using this tool.
- If everything went OK, look at the result at the cmd window after psdread -l and find something like that:
remote disk 1 has 1984000 sectors of 512 bytes - 968.75Mbyte
SerialNr: 75 63 00 49 8a f2 00 80 47 31 30 55 53 44 53 03
- in the next step you will have to replace the first byte ( in this case '75' ) with '00' and write this ID without spaces between numbers - this will be your modified cardid
In this example your modified cardid will be 006300498af200804731305553445303
(Thank you "hookcard" for reporting troubles in this step)
Run this command, where <cardid> is your modified cardid:
perl typhoonnbfdecode.pl -p cardid=<cardid> -p keys=tornado -p seclevel=0 -d goldcard.img
- Your goldcard image will be saved in your current directory (C:\itsutilsbin)
- If you have error message connected with msvcr71.dll file, please download this file or try to find it somewhere on your system partition and then copy it to the directory containing typhoonnbfdecode.pl (C:\itsutilsbin)
Then repeat the previous step with running typhoonnbfdecode.pl
If everything went OK, run this command, where <number> is a number under which you have your SD card during psdread -l command, for example, "remote disk 1 has 1984000 sectors of 512 bytes - 968.75Mbyte" means that your <number> is 1:
psdwrite -<number> goldcard.img 0 0x120
Now you have a card which gives you SuperCID - you can test it with MTTY and see that g_cKeyCardSecurityLevel = 0
Ad.8) Remember to have more than a half of the battery capacity available before you start this step!
- download any official Herald's RUU and extract it to the directory, where you should find RUU_signed.nbh ROM file. (It was tested with Dopod's ROM). Copy this .nbh file to your goldcard changing its name to heraimg.nbh
- Enter the bootloader mode. When you will see on your Herald's screen the question: "Update SD image?" you will have 10 seconds to press Volume Down button and this way to start flashing
Unfortunatelly, if something will go wrong and i.e. you will see SD update failed you will have to use heradiag.nbh file to enter special menu during the start of the bootloader mode. If you have problems with flashing, please read the step below:
Ad.9) download and unpack heradiag.zip file from this thread:
http://forum.xda-developers.com/showthread.php?t=332413&highlight=heradiag.nbh&page=6
Remember to have more than a half of the battery capacity available before you start!
- Copy heradiag.nbh on your goldcard together with any official .nbh ROM from ROM Update Utility from the previous step.
- boot your Herald in bootloader mode and you will see the diagnostic menu where you will have Reflash Image option. Choose Reflash Image and after the flashing process (about 5 minutes) please softreset your device.
That's all! You should see your Herald properly booting Windows OS.
Good luck!
Anyone had any luck with this?
I tried.
Everything is O.K.
ok first of all thank you very much for as a hope gain to bring our herald to live again.
but there is some point at this thread i didnt get it so plz if u could help me
1-
run Perl Package Manager from Windows Start Menu
change PPM Preferences:
- Add repository: itsme http://www.xs4all.nl/~itsme/projects/perl/ppm
- Add repository: theoryx http://theoryx5.uwinnipeg.ca/ppms/package.xml
After database synchronization install those packages (mark them for install and run marked action):
-Crypt-DES
-XdaDevelopers-NbfUtils
what is crypt -des
and when i open the link (add rep.by itsme )
there is too many files to download.
which one is that files u mean
i download them all but it seems they work on linux not in windows
so plz if u make that point more clear or at least post some pictures..
2-
does any official room will work .or it must be the exact cid room.
I've updated this tutorial and now it should be more clear.
According to your question about the ROMs - if you successfully create the Goldcard you will be able to flash any ROM, not only those matching your original CID.
halder said:
...............
what is crypt -des
and when i open the link (add rep.by itsme )
there is too many files to download.
which one is that files u mean
i download them all but it seems they work on linux not in windows
so plz if u make that point more clear or at least post some pictures..
2-
does any official room will work .or it must be the exact cid room.
Click to expand...
Click to collapse
how come i cant find XdaDevelelopers-NbfUtils package?
i have added the repository correctly.
i can see from the status screen:
Synchronizing Database ...
Downloading ActiveState Package Repository packlist ... done
Updating ActiveState Package Repository database ... done
Downloading itsme packlist ... redirect
Downloading itsme packlist ... done
Downloading itsme Win32-API-0.41WJ PPD ... done
Downloading itsme XdaDevelopers-CompressUtils PPD ... done
Downloading itsme XdaDevelopers-NbfUtils PPD ... done
Downloading theoryx packlist ... not modified
but i just can find the module (ie. XdaDevelopers-NbfUtils)
i have also tried the command line installation but no luck..
anyone??
maybe someone can post the perl folder, with the required modules installed?
Do you have "All Packages" chosen through View Menu?
klikman said:
how come i cant find XdaDevelelopers-NbfUtils package?
i have added the repository correctly.
i can see from the status screen:
Synchronizing Database ...
Downloading ActiveState Package Repository packlist ... done
Updating ActiveState Package Repository database ... done
Downloading itsme packlist ... redirect
Downloading itsme packlist ... done
Downloading itsme Win32-API-0.41WJ PPD ... done
Downloading itsme XdaDevelopers-CompressUtils PPD ... done
Downloading itsme XdaDevelopers-NbfUtils PPD ... done
Downloading theoryx packlist ... not modified
but i just can find the module (ie. XdaDevelopers-NbfUtils)
i have also tried the command line installation but no luck..
anyone??
Click to expand...
Click to collapse
Hi there! I also have a bricked Herald. I'm in Brazil and a store wants around 200 US dollars to fix the phone and it's too high.
I saw that the file itsme XdaDevelopers-NbfUtils PPD has just a text indicating an e-mail adress.
I saw in another site that this file has another content.
May be this is why we cannot find the package to install.
If i find a way to fix my Herald here i will do a very good donate!!
Thanks,
Alencar
alencarfr said:
Hi there! I also have a bricked Herald. I'm in Brazil and a store wants around 200 US dollars to fix the phone and it's too high.
I saw that the file itsme XdaDevelopers-NbfUtils PPD has just a text indicating an e-mail adress.
I saw in another site that this file has another content.
May be this is why we cannot find the package to install.
If i find a way to fix my Herald here i will do a very good donate!!
Thanks,
Alencar
Click to expand...
Click to collapse
Go to this thread, it will explain how to fix your phone....
http://forum.xda-developers.com/showthread.php?t=345411
Hi Mkoz,
Tried your procedure but when start bootloader it do not read the SDcard. I copied Heradiag to the card but it do not run. The bootloader remains the same as before.
No Signal. With MTTTy I gave the command set 32 1 and get the message:
================================================
+ SD Controller init
- SD Controller init
+StorageInit
SDInit+++
PL_SDSetSlotNumber() - MPUIO_SDIF_SEL1=0, MPUIO_SD_IF_SEL=0
SDCmd8 Command response time-out. MMC_STAT = 80
SDCmd8 Command response time-out. MMC_STAT = 80
SDCmd8 Command response time-out. MMC_STAT = 80
SDInit - SD ver1.0
SDCmd1 Command response time-out. MMC_STAT = 80
SDCmd1 Command response time-out. MMC_STAT = 80
SDCmd1 Command response time-out. MMC_STAT = 80
SD clock to 24MHz
***** user area size = 0x79280000 Bytes
SDInit---
SDInit OK
Unlimited time!
GetDeviceCID: Error - InitDecoder
g_cKeyCardSecurityLevel = 0
HTCE
=======================================================
So, please could you help me ? Thanks! Alencar
Hi,
Where did you format your SD card before preparing Goldcard? In Windows Mobile device or in laptop or PC card reader?
alencarfr said:
Hi Mkoz,
Tried your procedure but when start bootloader it do not read the SDcard. I copied Heradiag to the card but it do not run. The bootloader remains the same as before.
g_cKeyCardSecurityLevel = 0
So, please could you help me ? Thanks! Alencar
Click to expand...
Click to collapse
Hi Mkoz,
I formatted using Pocketmechanics in my HTC universal in mode FAT32.
I'm really looking forward to see the mobile working.
Thanks!! Alencar
please SIR how can i change cardid ?
and witch tool i use ?
Hi,
I've sent you my private message but you haven't answered so I have to ask you in this thread:
- What is the size of your SD card? I successfully tested it with 512MB and 1GB cards.
alencarfr said:
Hi Mkoz,
I formatted using Pocketmechanics in my HTC universal in mode FAT32.
I'm really looking forward to see the mobile working.
Thanks!! Alencar
Click to expand...
Click to collapse
Sucessfully tested with 2gb card
BTW, HardSPL'd devices doesn't want to load heradiag!
i can see from the status screen:
Synchronizing Database ...
Downloading ActiveState Package Repository packlist ... done
Updating ActiveState Package Repository database ... done
Downloading itsme packlist ... redirect
Downloading itsme packlist ... done
Downloading itsme Win32-API-0.41WJ PPD ... done
Downloading itsme XdaDevelopers-CompressUtils PPD ... done
Downloading itsme XdaDevelopers-NbfUtils PPD ... done
I found -Crypt-DES but not found -XdaDevelopers-NbfUtils
Please help me! Thanks
same here
already try restarting my windows still no luck
I guess you are doing something wrong because there are people who were successful with this tutorial. Maybe you don't have "All packages" chosen from the menu.
I have updated point 4 of my tutorial so please take a look.
I've also posted in this thread my answer to someone who had the same problem like you and he didn't answered anymore so I guess as a result he created Goldcard successfully.
If it will help you, please let us know.
TINDUNG10 said:
i can see from the status screen:
Synchronizing Database ...
Downloading ActiveState Package Repository packlist ... done
Updating ActiveState Package Repository database ... done
Downloading itsme packlist ... redirect
Downloading itsme packlist ... done
Downloading itsme Win32-API-0.41WJ PPD ... done
Downloading itsme XdaDevelopers-CompressUtils PPD ... done
Downloading itsme XdaDevelopers-NbfUtils PPD ... done
I found -Crypt-DES but not found -XdaDevelopers-NbfUtils
Please help me! Thanks
Click to expand...
Click to collapse
please help me delete 1 post
This NEEDS to be stickied in here so everyone can use it.
I copied this from the i9000 forum.
Ok before we get started I need to make this REALLY clear. This did not work for my i9000 at first…. I cannot guarantee you will find your code…. If your device freezes (to many attempts) I am sorry but I cannot be held responsible.
Using ADB
Step 1. – Get the file
You need to have root
Code:
adb shell
su
dd if=/dev/block/bml3 of=/sdcard/bml3.bak
mount USB storage and copy the file off the internal SD card
Step 2. – Find the code
Try this
Originally Posted by rbnet.it
Try this: http://www.multiupload.com/2IAYWWGF8A
It's a win32 executable. Run the program from command line with the blockdevice backup as parameter:
c:\sgux.exe bml3.bak
IT returns the unlock code fory your phone.
It's based on the tip posted on this thread by rhcp0112345.
It's works with european sgs.
Click to expand...
Click to collapse
OR
Open the file in a HEX editor
Search for SSNV
At the end of this block of data there should be a string of numbers
(my unlock code started at 0x18005a)
The format will be numbers.unlockcode.numbers
Step 3. – Enter the code
As far as I know the *#0111*code# and #7465625*638*Code# codes don’t work so you MUST
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
Step 4. – Flash back (IF THE CODE DIDN'T WORK)
Flash back to an older firmware (I9000XXJF7 with 513.pit worked for me)
Now enter the unlock code you generated in Step 2.
PLEASE give credit to
rhcp0112345 for finding the file and giving me (and others) a place to start
rbnet.it and marcopon for the cool utility to extract it
galaxysguy for starting the other thread and confirming that I was looking at the right code
Click to expand...
Click to collapse
Think this is the 3rd post I've seen on this, but this has been CONFIRMED to work!
sweet, just unlocked mine!! thanks guys!
ill make sure this gets stickied
Hi,
I have used this procedure but was unsuccessful since I don't have the SIM from another carrier? Which method did you use? also I am currently running JH3 firmware.
thanks
TZ
tzones said:
Hi,
I have used this procedure but was unsuccessful since I don't have the SIM from another carrier? Which method did you use? also I am currently running JH3 firmware.
thanks
TZ
Click to expand...
Click to collapse
you NEED another sim from another carrier to invoke the message to enter the unlock code.
Error: unable to find file <bml3.bak>. can some1 help? thx
i had sgux.exe and bml3.bak copy to drive c: "windows 7"
Yep, put an old no longer working TMobile sim in, it asked for my code and voila! worked like a champ.
file not found on JH3
_____________________
did a direct copy and paste of string from thread and it copied properly.
Unlocked successfully from JH3!!!!
Yeah *****es!!!!
akachay said:
Error: unable to find file <bml3.bak>. can some1 help? thx
i had sgux.exe and bml3.bak copy to drive c: "windows 7"
Click to expand...
Click to collapse
Krad said:
file not found on JH3
Click to expand...
Click to collapse
Remember after opening adb, type su enter
then
cat /efs/nv_data.bin >> /sdcard/nv_data.bin
mount your card, and transfer nv_data.bin along with sgux.exe to your c :\ drive
then open command prompt, and cd C:\ [ENTER]
C:\sgux.exe nv_data.bin [ENTER] and you should get your code.
Make sure you have su (superuser) working, you can tell if there's a #in the adb prompt
If there's no # in the adb prompt, then open adb, type su [ENTER] look at your phone, and wait for the Super User prompt to pop and enable/give permissions.
The Bishop said:
Yep, put an old no longer working TMobile sim in, it asked for my code and voila! worked like a champ.
Click to expand...
Click to collapse
Thanks for this mail since I was under the impression that it requires a working SIM. Can't believe that my phone is unlocked!!
nice guide... but why are there so many different unlock guides lol
Honestly, I just found a guide that I thought had the best instructions and made a thread about it, hoping that it would be stickied, becasue this does not need to fade away off the first page. If it were stickied, it'd be even better. I contacted the person over this board, but they have yet to reply.
Extracting the unlock code on Ubuntu
Once you get the file off of your phone you can use hexdump and grep to find the unlock code easily:
cat bml3.bak | hexdump -C | grep -A 10 SSN
Ideally we could figure out how to do this directly on the phone using busybox, but I haven't figure that out yet.
Bad ass! worked like a charm on JH3.
i need help, i havent been able to get my phone unlocked.
I've tried all the methods (except Paying for a code) and none have worked !!!
I tried this one and it gave me the code but when i put in the TMO sim and entered "the code" it came back as no good.
Now, sgux.exe states looking for code and then it moves to the next command line (as if it was finished) but it doesnt find the code.
Help me plz !!
PS: I got the files out of the phone, both the bml3.bak and the nv_data.bin !
Be aware that places online charge $25-$30 for the code, so please donate.
PLEASE give credit (and donations if you can) to:
DaGentooBoy For optimizing the mac and windows scripts, and a lot of troubleshooting (Paypal)
rbnet.it and marcopon for the cool SGUX utility to extract it (donate to marcopon and rbnet.it Paypal)
RazvanG for pointing the un-freeze code (Paypal)
Bowsa2511 for the command to extract the unlock code on a Mac & Pc (Paypal Paypal)
nbs11 for fixing and optimizing my original mac script, and making it an easier 1-click program. Paypal
This code may not work. If you enter the unlock code wrong to many times or if it gives you the wrong unlock code your phone may become bricked. By continuing you will take full responsibility for any damage. I am not liable
Prep:
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)
Step 1: get the code
For Mac
Download the Samsung Galaxy S Unlocker
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.
Open the application with the lock. It should open a terminal window. Let it run for a few seconds and then it should show the unlock code
Save/write down the code
Jump to step 2.
For Windows
Download and extract the attached Galaxy S unlocker windows.
Run Generate_Code.bat
Look for the line Network Control Key:YourCode
Save the code
Jump to step 2.
Step 2: Entering 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 now enter the unlock code you generated in Step 1.
Don't have another sim to unlock the phone with? (Thanks RazvanG)
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 3: Flash back (IF THE CODE WAS UNSUCCESSFUL)
Flash back to an older firmware.
File mirrors:
Download the Samsung Galaxy S Unlocker for Mac here:
{Mod edit: Links removed. Not accepted as filehost on XDA - Oswald Boelcke}
Download the Samsung Galaxy S Unlocker for PC here:
{Mod edit: Links removed. Not accepted as filehost on XDA - Oswald Boelcke}
DATA:
To make use of your carrier's data, make sure to change the APN settings appropriate to your carrier.
APN settings for all, if not most carriers: Here
Guide in Spanish 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
i can't see the attached file
DarkVasyaK said:
i can't see the attached file
Click to expand...
Click to collapse
I was experiencing problems with xda app, I included the links now.
But may you do me a favor? Re-upload to media fire
Until I access my laptop for a proper attachment
I am glad you got it working. How did you end up automating it?
Also I uploaded it to a mirror for you because some people had trouble getting it. You are free to use the links i give
{Mod edit: Links removed. Not accepted as filehost on XDA - Oswald Boelcke}
these links include pretty much every popular file sharing site.
nbs11 said:
I am glad you got it working. How did you end up automating it?
Also I uploaded it to a mirror for you because some people had trouble getting it.
Click to expand...
Click to collapse
Thank you, I'm on my laptop now (Captivate tethering ftw)
I worked with DaGentooBoy for the script, he worked it into a shell script for mac (They always get it easier XD), and he made a adb/push one for windows that utilizes sgux.exe.
Bowsa2511 said:
Thank you, I'm on my laptop now (Captivate tethering ftw)
I worked with DaGentooBoy for the script, he worked it into a shell script for mac (They always get it easier XD), and he made a adb/push one for windows that utilizes sgux.exe.
Click to expand...
Click to collapse
Thats great. Would you mind showing me how to run the script on a PC for the guide? I have it for the Mac already.
nbs11 said:
Thats great. Would you mind showing me how to run the script on a PC for the guide? I have it for the Mac already.
Click to expand...
Click to collapse
Just download the zip for the pc unlock, and run the .bat, that's it
guys, I tried to do this unlock both from Mac and Windows (parallels)
from Windows when I launch Generate_Code.bat it writes this:
what I do wrong?
===============================================================
===============================================================
Generate unlock code for any Samsung Galaxy S
===============================================================
===============================================================
'.\adb' is not recognized as an internal or external command,
operable program or batch file.
__________________________________________________________
Copy nv_data.bin
'.\adb' is not recognized as an internal or external command,
operable program or batch file.
Extract code
'.\sgux' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Windows\nv_data.bin
'.\adb' is not recognized as an internal or external command,
operable program or batch file.
===============================================================
===============================================================
Please donate to DagentooBoy for the script
Please donate to rbnet.it and marcopon for the SGUX utility used in the script
===============================================================
===============================================================
Script complete!
Press any key to continue . . .
It would seem that you do not have the android SDK installed in your windows setup.
DarkVasyaK said:
guys, I tried to do this unlock both from Mac and Windows (parallels)
from Windows when I launch Generate_Code.bat it writes this:
what I do wrong?
===============================================================
===============================================================
Generate unlock code for any Samsung Galaxy S
===============================================================
===============================================================
'.\adb' is not recognized as an internal or external command,
operable program or batch file.
__________________________________________________________
Copy nv_data.bin
'.\adb' is not recognized as an internal or external command,
operable program or batch file.
Extract code
'.\sgux' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Windows\nv_data.bin
'.\adb' is not recognized as an internal or external command,
operable program or batch file.
===============================================================
===============================================================
Please donate to DagentooBoy for the script
Please donate to rbnet.it and marcopon for the SGUX utility used in the script
===============================================================
===============================================================
Script complete!
Press any key to continue . . .
Click to expand...
Click to collapse
Thank You!!! Worked like a charm. I gave you guys the 30 that I was planning on spending on getting it unlocked as it was. Great work!
DarkVasyaK said:
guys, I tried to do this unlock both from Mac and Windows (parallels)
from Windows when I launch Generate_Code.bat it writes this:
what I do wrong?
===============================================================
===============================================================
Generate unlock code for any Samsung Galaxy S
===============================================================
===============================================================
'.\adb' is not recognized as an internal or external command,
operable program or batch file.
__________________________________________________________
Copy nv_data.bin
'.\adb' is not recognized as an internal or external command,
operable program or batch file.
Extract code
'.\sgux' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Windows\nv_data.bin
'.\adb' is not recognized as an internal or external command,
operable program or batch file.
===============================================================
===============================================================
Please donate to DagentooBoy for the script
Please donate to rbnet.it and marcopon for the SGUX utility used in the script
===============================================================
===============================================================
Script complete!
Press any key to continue . . .
Click to expand...
Click to collapse
I am not sure how to fix it on a PC, but I fixed it on a Mac. First of all download the Mac version of the script. Then extract it etc. now you need the android SDK and you need to edit the script. Add "cd ~path of tools dir. of sdk" it should work now
I don't understand how to install this Android SDK...
and how to change something using it...
DarkVasyaK said:
I don't understand how to install this Android SDK...
and how to change something using it...
Click to expand...
Click to collapse
If you're on windows, download this
http://dl.google.com/android/android-sdk_r06-windows.zip
If you're on Mac
http://dl.google.com/android/android-sdk_r06-mac_86.zip
Then download the zip file in the original post for your OS, and follow the instructions. Super easy
I downloaded this Android SDK for Mac and what's next? how to install it?
DarkVasyaK said:
I downloaded this Android SDK for Mac and what's next? how to install it?
Click to expand...
Click to collapse
Those scripts should work because they have adb in them. I will look at it tomorrow. For the full guide (including new script with the un freeze code) the original guide can be found here
I am so angry that everybody says that it's so easy and only I can't complete this damn staff ><
how to run Generate_Code.sh using terminal?
tried typing sh Generate_Code.sh and so on buy it doesn't find this file
and how to run adb (shell?) and what is it?
I'll be updating the thread later with an easier mac solution.
Sent from my SAMSUNG-SGH-I897 using XDA App
thank you so much
DarkVasyaK said:
I am so angry that everybody says that it's so easy and only I can't complete this damn staff ><
how to run Generate_Code.sh using terminal?
tried typing sh Generate_Code.sh and so on buy it doesn't find this file
and how to run adb (shell?) and what is it?
Click to expand...
Click to collapse
adb is the debugging program from Google for Android. It allows us to run shell commands and many other things. The problem you are having is on the Windows side. For some reason it is looking to the \windows\ directory.
Try this
Hit Start->Run->cmd
click ok
type in
cd \path to extracted script\ (I usually copy and paste everything after c: in an explorer window)
hit enter
Generate_Code.bat
hit enter
let me know if that works.
The current mac method does NOT work. I have created a Mac version that does work, but I am awaiting approval to post it since it uses the source code from their version.
I would like to ask Bowsa2511 not to post my version yet because I am still smoothing the edges and I am a perfectionist. But it will be online tonight. I promise.
Download the normal unlock files before you do anything!!! You can find them in the forum.
KIES needs to be off...
1 - You need your phoned to be rooted
2 - Put your phone in usb debug mode
3 - Plug in the usb cable (don't use kies or storage mode)
4 - In the run window type CMD
5 - Go to the folder where you extracted the unlock files. Example c:\Generate Unlock Windows\Generate Unlock Windows
Type dir , you should see a file called adb.exe
6 - Type adb kill-server
Type adb shell
Type su (on your phone you should see the root explorer asking if you want to allow access, choose yes xD duh)
Type cp /efs/nv_data.bak /sdcard !!!IF this doesn't work type this!!!!----> cp /efs/.nv_data.bak /sdcard
Type cp /efs/nv_data.bak.md5 /sdcard !!!IF this doesn't work type this!!!!----> cp /efs/.nv_data.bak.md5 /sdcard
7 - Closed the window.
8 - The file with the code is now on your sdcard, start storage mode and copy the files to the c:\Generate Unlock Windows\Generate Unlock Windows folder (in windows xD)
Be sure that the nv_data.bak and nv_data.bak.md5 are in the same folder as sgux.exe
9 - Edit the Generate_Code.bat
Delete all the code and paste this:
@echo off
cls
echo ===============================================================
echo ===============================================================
echo Generate unlock code for any Samsung Galaxy S
echo ===============================================================
echo ===============================================================
echo Extract code
.\sgux .\.nv_data.bak
.\sgux .\nv_data.bak
echo ===============================================================
echo ===============================================================
echo Please donate to DagentooBoy for the script
echo Please donate to rbnet.it and marcopon for the SGUX utility used in the script
echo ===============================================================
echo ===============================================================
echo Script complete!
pause
10 - Your codes should appear! Save them and send them to you gmail account so you have them for life!
I TAKE NO CREDIT FOR THIS!!!! Just want to help!
Can you please Help me?
I flash & reflash several times, and still can´t resolve this.
I don't have any file with *bak* at this moment.
the files that I have:
# find /efs
find /efs
/efs
/efs/.android
/efs/.android/testAndroid1.bin
/efs/.android/testAndroid2.bin
/efs/.android/testAndroid3.bin
/efs/nv_data.bin
/efs/.imei
/efs/imei
/efs/imei/mps_code.dat
/efs/imei/bt.txt
/efs/imei/.nvmac.info
/efs/nv_data.bin.md5
/efs/.nv_state
/efs/nv_data.jpc
/efs/nv_data.jpc.md5
and de result to nv_data.bin:
E:\Generate Unlock Windows>sgux2 nv_data.bin
SGUX v0.92b (C) 2010 By Mark0 & rbnet
Samsung Galaxy Unlock code eXtractor
(based on info by rhcp0112345 & RazvanG)
Opening file <nv_data.bin>...
Searching code block...
Found.
Searching codes...
Network Control Key: 00000000
E:\Generate Unlock Windows>sgux2 nv_data.jpc
SGUX v0.92b (C) 2010 By Mark0 & rbnet
Samsung Galaxy Unlock code eXtractor
(based on info by rhcp0112345 & RazvanG)
Opening file <nv_data.jpc>...
Searching code block...
Found.
Searching codes...
Network Control Key: 00000000
I've tried to get the code with : .nv_data.bak, nv_data.bin, nv_jpc and bml3.bak. In each case, I got the code 00000000.
I found this in a forum hope this will help
quiron said:
I flash & reflash several times, and still can´t resolve this.
I don't have any file with *bak* at this moment.
the files that I have:
# find /efs
find /efs
/efs
/efs/.android
/efs/.android/testAndroid1.bin
/efs/.android/testAndroid2.bin
/efs/.android/testAndroid3.bin
/efs/nv_data.bin
/efs/.imei
/efs/imei
/efs/imei/mps_code.dat
/efs/imei/bt.txt
/efs/imei/.nvmac.info
/efs/nv_data.bin.md5
/efs/.nv_state
/efs/nv_data.jpc
/efs/nv_data.jpc.md5
and de result to nv_data.bin:
E:\Generate Unlock Windows>sgux2 nv_data.bin
SGUX v0.92b (C) 2010 By Mark0 & rbnet
Samsung Galaxy Unlock code eXtractor
(based on info by rhcp0112345 & RazvanG)
Opening file <nv_data.bin>...
Searching code block...
Found.
Searching codes...
Network Control Key: 00000000
E:\Generate Unlock Windows>sgux2 nv_data.jpc
SGUX v0.92b (C) 2010 By Mark0 & rbnet
Samsung Galaxy Unlock code eXtractor
(based on info by rhcp0112345 & RazvanG)
Opening file <nv_data.jpc>...
Searching code block...
Found.
Searching codes...
Network Control Key: 00000000
Click to expand...
Click to collapse
same result here, followed the procedure, ended up with network code 00000000. any help?
If you need help on unlocking a 2.2 device. Please contact me.
can anybody post a link to which normal unlock files are needed, there are too many unlock files in the forum
rhcp0112345 said:
If you need help on unlocking a 2.2 device. Please contact me.
Click to expand...
Click to collapse
Yes I need it, and I am certainly not the only one.
Can you publish a guide how to proceed ?
I did manage to get rid of this bloody unlocking problem after 9 hours of struggle. I followed the advice here:
http://forum.xda-developers.com/showthread.php?p=7946031#post7946031
I don't know how it worked, I don't care how it worked, its just that now i have a full working sgs with jp3 froyo software installed.
Next rom will definitely be official froyo, no more flic-flacs for me till then.
Fallback after a KOR productcode modification by firmware JPC
I've found a solution to my KOR problem after a JPC firmware upgrade :
History:
I've upgraded my SGS to JPC firmware (2.2). My phone product code has been changed to GT-I9000HKDKOR. Since my phone is simlocked, my local SIM (SFR in France) is not the same model than the phone (KOR), so it asked me an unlock code. I found no code to remove the simlock protection (sgux computed a 00000000 unlock code).
Solution I found :
- Downgrade the SGS to the firmware JM6 (2.1).
- Downloade the file /efs/nv_data.bin to your PC/LINUX/MAC (your phone need to be rooted !).
- Open it in a hexeditor -in fact I've used Windows' notepad++- and search for the "KOR" sequence. This sequence appears 2 times in the bin file. These are nearby each others.
- Change back the KOR sequence to your original product code (this can be found in regedit CURRENT USER / Software / Samsung / Kies / DeviceDB / [a number] / ProductCode). For my personal case, it is a SFR (France) phone, my product code is GT-I9000HKDSFR and a few chars before change KOR by SFR (or whatever your op. code is).
- Then you have to compute a md5sum on the modified nv_data.bin and store the md5 in a file called nv_data.bin.md5. Make sure your md5 file is exactly 32 bytes long, there is no CR/LF at the end of the line. md5sum is available for any plateform, for myself I did it on my Linux box which is my SAN.
- Next step : push back these 2 files in your /efs/ directory and reboot.
To make sure nothing is altered during the reboot process, I've removed the battery to switch off the phone. At the next reboot, no more SIM unlock code request. I've been able to place a call, my phone is back to life !
Can someone takes some time to do this trick on a 2.2 froyo JPC firmware ?
Hope this will help others...
gouroufr2000 said:
I've found a solution to my KOR problem after a JPC firmware upgrade :
History:
I've upgraded my SGS to JPC firmware (2.2). My phone product code has been changed to GT-I9000HKDKOR. Since my phone is simlocked, my local SIM (SFR in France) is not the same model than the phone (KOR), so it asked me an unlock code. I found no code to remove the simlock protection (sgux computed a 00000000 unlock code).
Solution I found :
- Downgrade the SGS to the firmware JM6 (2.1).
- Downloade the file /efs/nv_data.bin to your PC/LINUX/MAC (your phone need to be rooted !).
- Open it in a hexeditor -in fact I've used Windows' notepad++- and search for the "KOR" sequence. This sequence appears 2 times in the bin file. These are nearby each others.
- Change back the KOR sequence to your original product code (this can be found in regedit CURRENT USER / Software / Samsung / Kies / DeviceDB / [a number] / ProductCode). For my personal case, it is a SFR (France) phone, my product code is GT-I9000HKDSFR and a few chars before change KOR by SFR (or whatever your op. code is).
- Then you have to compute a md5sum on the modified nv_data.bin and store the md5 in a file called nv_data.bin.md5. Make sure your md5 file is exactly 32 bytes long, there is no CR/LF at the end of the line. md5sum is available for any plateform, for myself I did it on my Linux box which is my SAN.
- Next step : push back these 2 files in your /efs/ directory and reboot.
To make sure nothing is altered during the reboot process, I've removed the battery to switch off the phone. At the next reboot, no more SIM unlock code request. I've been able to place a call, my phone is back to life !
Can someone takes some time to do this trick on a 2.2 froyo JPC firmware ?
Hope this will help others...
Click to expand...
Click to collapse
You sir are brilliant... back to O2U here! ) I only needed to change one key entry as could find only the one KOR in my nv_data.bin... but otherwise... perfect! )
Thank you SOOOO much... had started worrying that I'd not get my product code back!
It also means that a simlocked phone can be used with another SIM by modifying the same way the nv_data.bin...
Anyway I wont update this phone to JPC. I'll await the next one... JPD seems to be online but no infos yet on the status of this firmware.
in which line did you find the KOR?
i cant find it? >_<
Greg82uk said:
You sir are brilliant... back to O2U here! ) I only needed to change one key entry as could find only the one KOR in my nv_data.bin... but otherwise... perfect! )
Thank you SOOOO much... had started worrying that I'd not get my product code back!
Click to expand...
Click to collapse
I'm clueless here, would you mind posting a step by step including the software used?
gouroufr2000 said:
I've found a solution to my KOR problem after a JPC firmware upgrade :
History:
I've upgraded my SGS to JPC firmware (2.2). My phone product code has been changed to GT-I9000HKDKOR. Since my phone is simlocked, my local SIM (SFR in France) is not the same model than the phone (KOR), so it asked me an unlock code. I found no code to remove the simlock protection (sgux computed a 00000000 unlock code).
Solution I found :
- Downgrade the SGS to the firmware JM6 (2.1).
- Downloade the file /efs/nv_data.bin to your PC/LINUX/MAC (your phone need to be rooted !).
- Open it in a hexeditor -in fact I've used Windows' notepad++- and search for the "KOR" sequence. This sequence appears 2 times in the bin file. These are nearby each others.
- Change back the KOR sequence to your original product code (this can be found in regedit CURRENT USER / Software / Samsung / Kies / DeviceDB / [a number] / ProductCode). For my personal case, it is a SFR (France) phone, my product code is GT-I9000HKDSFR and a few chars before change KOR by SFR (or whatever your op. code is).
- Then you have to compute a md5sum on the modified nv_data.bin and store the md5 in a file called nv_data.bin.md5. Make sure your md5 file is exactly 32 bytes long, there is no CR/LF at the end of the line. md5sum is available for any plateform, for myself I did it on my Linux box which is my SAN.
- Next step : push back these 2 files in your /efs/ directory and reboot.
To make sure nothing is altered during the reboot process, I've removed the battery to switch off the phone. At the next reboot, no more SIM unlock code request. I've been able to place a call, my phone is back to life !
Can someone takes some time to do this trick on a 2.2 froyo JPC firmware ?
Hope this will help others...
Click to expand...
Click to collapse
Looks promising!
Does it have to be JM6 or can JM7 work as well ?
Can anyone with JPC and a locked phone try this and report if it works ?
If we go back to JM6 do the editing and fix the product code then back it up on the PC, update to JPC and push this back to the phone this should work right ?
Any news if its possible to restore the IMEI ?
Ok I'm stupid and I can't make a md5 file of 32 bytes with md5summer for windows, somebody can help me?
edit de file with notepad and delete the 1st 3 lines and the count 32 bytes and delete all the rest.
I tried with JM7 with CSC_I9000TMNJM1 and there is no KOR sequence in nv_data.bin FILE. instead was already TMN, but still asking me for de unlock code.
I tried with JPC and still don't work .
quiron said:
I tried with JM7 with CSC_I9000TMNJM1 and there is no KOR sequence in nv_data.bin FILE. instead was already TMN, but still asking me for de unlock code.
I tried with JPC and still don't work .
Click to expand...
Click to collapse
It means your phone is configured as TMN (dont know which country it is) but if it asks you for unlock code => your SIM is not TMN.
Change TMN to whatever your SIM is... Check in regedit for a history. Anyway downgrade to a previous firmware because JPC is suspected of breaking the nv_data.bin
I don't know if this trick works with another firmware, but theorically it should works the same way...
Nb: do not delete any line in your nv_data.bin ! This is a stupid remark, it can brick your phone.
the solution to 00000000 unlock code
finaly the solution to 00000000 unlock code
http://forum.xda-developers.com/showpost.php?p=7957950&postcount=10
or
http://forum.xda-developers.com/showthread.php?p=7957950&posted=1#post7957950
works to me.
(If this location is not correct to this thread, please, move it to the correct location. Tanks)
Hey guys!
I'm trying deodex my stock rom using the XUltimate, but XUltimate give an error.
The XUltimate give error in all of the .odex, in /system/app and /system/framework
Starting AccountAndSyncSettings.odex
*****************************************
* Deodexing... *
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: regCount does not match the number of a
rguments of the method
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont
ext.java:54)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:92)
at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
at org.jf.dexlib.Item.readFrom(Item.java:76)
at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
at org.jf.dexlib.Section.readFrom(Section.java:143)
at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
at org.jf.baksmali.main.main(main.java:265)
Caused by: java.lang.RuntimeException: regCount does not match the number of arg
uments of the method
at org.jf.dexlib.Code.Format.Instruction3rc.checkItem(Instruction3rc.jav
a:129)
at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:7
9)
at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:4
4)
at org.jf.dexlib.Code.Format.Instruction3rc$Factory.makeInstruction(Inst
ruction3rc.java:145)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:84)
... 6 more
Error occured at code address 8
code_item @0x25ec
Pressione qualquer tecla para continuar. . .
*****************************************
MAJOR ERROR!! WITH DEODEXING! AccountAndSyncSettings.odex
*****************************************
********DELETING INCORRECT FILES*********
please exit out of window "***Deodexing ADB Window, DO NOT EXIT!***"
Pressione qualquer tecla para continuar. . .
Click to expand...
Click to collapse
I have the Android SDK working properly and the Java 32bits and 64bits installed.
My O.S. from PC is Windows 8 64Bits! My ROM from Galaxy Y is the Stock UTME1 (Brazil)
Please, help-me!
And sorry by my bad bad english... But you can understand despite errors! And I'm studying kkk
JoaoMarcos said:
(If this location is not correct to this thread, please, move it to the correct location. Tanks)
Hey guys!
I'm trying deodex my stock rom using the XUltimate, but XUltimate give an error.
The XUltimate give error in all of the .odex, in /system/app and /system/framework
I have the Android SDK working properly and the Java 32bits and 64bits installed.
My O.S. from PC is Windows 8 64Bits! My ROM from Galaxy Y is the Stock UTME1 (Brazil)
Please, help-me!
And sorry by my bad bad english... But you can understand despite errors! And I'm studying kkk
Click to expand...
Click to collapse
These is not a correct thread but your answer is here
By using xultimate may people face errors but i preffer you to use Cygwin with packages and Dsixda's android kitchen it is very easy to use and very easy to Deodex the rom
Sent from my Ace-i
Use cygwin and set api to level 10 - this will get your rom deodex
marcussmith2626 said:
Use cygwin and set api to level 10 - this will get your rom deodex
Click to expand...
Click to collapse
I try with Cygwin and Kitchen but I can't open the rom (.tar.md5) with WinRAR and 7zip.
JoaoMarcos said:
I try with Cygwin and Kitchen but I can't open the rom (.tar.md5) with WinRAR and 7zip.
Click to expand...
Click to collapse
Flash stock rom to your phone & root & install busybox
use terminal commands to pull system folder into a tar file
the terminal command you run in terminal emulator on phone is
su
tar -c system/* >> sdcard/system.tar
wait until prompt appears to signal it's done
copy system.tar file from sd card into kitchen rom directory
create a working folder using the tar file
deodex rom after setting api to level 10
Repack rom & flash (take an update script from a custom rom if you get status 0 error when flashing)
more detailed instructions here
http://forum.xda-developers.com/showthread.php?t=1801690