yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] steffe.jst:
Should be permanent as firmwares usually doesn't touch the /efs folders at all (well, except the JPC but we all know that by now). The problem is solved like that cause likely the phone is using nv_data.bin to resolve the pin code with the CSC in some way but as we've edited and replaced that file the phone's not getting enough permissions. Something along those lines anyway.

EDIT*

I'm now getting another problem. My pin works and everything but I can't connect to my provider's network (being Telia). It shows up and APN is entered correctly but it says my SIM is not allowed to enter this network or something similar. I'm also getting an error when entering recovery mode saying "multicsc : can not access to /system/csc/XEE/system". It seems changing the mps_code.dat to KOR (or whatever) changes the destination this tries to fetch, so considering a similar permission problem. I'll report back when I've tried a few things or if maybe someone already has the solution?
[Galaxy S I9000 Android Development] steffe.jst:
This just keeps getting better and better... now the phone doesn't recognize the sim card at all anymore :(
[Galaxy S I9000 Android Development] Narcissus85:
i also noticed a problem changing the csc ... if i change it with the *#272*hhmm# command and reboot u can see that the csc doesnt change...
[Galaxy S I9000 Android Development] tokinux:
Uhmmm I've tried to change CSC using commands *#272*0902# and all works fine.

I found another file that contain CSC code, it's under /system/csc/. That file is .xml but I don't remember the name. Try to change it and reboot.
[Galaxy S I9000 Android Development] steffe.jst:
Phone still can't recognize my sim card. Does anyone know if I can rule out messing with these files as the problem? Gonna try with someone else's sim card later on but wouldn't mind ruling things out.
[Galaxy S I9000 Android Development] tokinux:
@steffe.jst

Did you have a backup of your nv_data.bin or .bak? Previous to yesterday...
[Galaxy S I9000 Android Development] steffe.jst:
'fraid not :/

*EDIT*

Earliest I can find (got a few around by now) is from 00:49 though I don't remember when I started changing things, might have been before or after that timestamp. Either way looking in the file its got the product code the way it was before this mess (KOR first enty XEE other one).

I got some progress though, sort of... My phone randomly started to recognize my sim card so I guess that's good, but it still won't allow me to connect to Telia's network.

Trying to do busybox cp /efs/nv_data.bin /efs/nv_data.bin.bak to try a few tings gives me the error "write error: Numerical result out of range" - not entirely related I suppose but annoying non the less, it works if I copy to say sdcard.

Opening up the current nv_data.bin I can't find any kind of product code, not even searching for I9000.

I've got a few backups of the nv_data.bin from yesterday, that I wanted to try and change to but not being able to make a backup of the current file to same EFS folder buggs me.

*EDIT*

SUCCESS!! Wooop! Changed the first entry of product code in the nv_data.bin back to KOR (Or well reverted to the 00:49 one), chowned, rebooted and now everything works fine. *phew* I suppose that means my original product code might've been KOR in the first entry (This is based on this fact and that when I did backup restore when being on JPC the first entry still showed KOR). No matter the reason, it now works and I'm happy :> thanks everyone
[Galaxy S I9000 Android Development] :
Still no Solution for wrong pin, if downgrade from JPC :(.

Tried downgrade with Kies to JM1, but didnt work either. Hope we can use further Froyo Releases. For now just stick at JPC and better dont change anything.
[Galaxy S I9000 Android Development] tokinux:
@gpnda

Have you tried my tips in previous page? http://xdaforums.com/showpost.php?p=8147411&postcount=64

@steffe.jst

I'm happy for you!! :)
[Galaxy S I9000 Android Development] justsimple1:
dude...i have the same problem and my product code is KOR...I got ur instructions but i dont knw how to root my phone...i m using jgh 2.2...pls guide ...waiting...
[Galaxy S I9000 Android Development] justsimple1:
dude pls help me getting back my product code...rite now i m on 2.2 jph thru kies...my product code is KOR and i m in INDIA...i dont knw how to root this phone...pls guide...
[Galaxy S I9000 Android Development] justsimple1:
dude pls guide me to get back my product code...rite now i m on JPH thru kies and my product code has changed to KOR and i m in India...i even dont know how to root my phone...pls guide...
[Galaxy S I9000 Android Development] EarlZ:
When I open my nv_data.bin the program does not seem to find ANY KOR string, can anyone here edit it for me i might be doing something terribly wrong.. just message me if your upto the small task.
[Galaxy S I9000 Android Development] lpy:
WORKS !! WORKS !! WORKS !! I can now use my SIM on 2.1 again. :-)
[Galaxy S I9000 Android Development] miracle33:
Worked perfect for me!!!!

Thank You

Is there a way to restore my IMEI, i'v now something like 00499.... but mine is 351751...

Thanks!!
[Galaxy S I9000 Android Development] bezil:
IMEI corrupted

Your guide worked. I´ve changed my productcode to thr original XEE, but now my IMEI is corrupted... I don't have a backup, but the imei file in /efs still contains the original imei. How do i change it back?
[Galaxy S I9000 Android Development] diamond69:
@bezil + miracle

take your prevoisly downloaded nv_data.bin and change it with an hex editor instead of with notepad.

then follow the instructions you quoted and see if your imei is correct now.
[Galaxy S I9000 Android Development] BakaSenpai:
How about for those that have a product code of XXXXXXXXX. I've tried looking for something but I don't see anything that could possibly allow me to change that back.
[Galaxy S I9000 Android Development] SC001:
I have succesfully edited everything and i didn't use the Terminal emulator but i copy/pasted the file using the latest root explorer!!!!

Also i had the simcard issue also but i could successfully repair it with the info above described

My only issue is that the phone keeps hanging on GPRS instead off 3g wich i always had in my house so any ideas????

Also i can´t get my old imei code back and i have lost nv_data.bak and i don´t have a backup of it.

I also have 00499 and so on, could someone please tell me how to restore or edit it.

I´m pretty dumb so please describe it for a 6 year old lol
[Galaxy S I9000 Android Development] bezil:
I still have a problem with my Imei. Using a hex editor didn't do it for me...
[Galaxy S I9000 Android Development] EarlZ:
How about for those who cant find the KOR on their nv_data.bin ???
[Galaxy S I9000 Android Development] SC001:
Well your problem is pretty easy to solve.

I had that issue before to find the KOR in the nv file just flash your phone to JPC with the code csc and modem file.

Then root the phone and use root explorer to copy/paste the file to your sd card.
[Galaxy S I9000 Android Development] dajumper:
is not working for me every line i write in terminal he say no such user?

damn anyone can help me?
[Galaxy S I9000 Android Development] SC001:
Don´t use the terminal but gain root access and install root explorer then fire root explorer up go to the efs folder and press long on the nv data file.

Then you will see a pop up wich also gives the option copy then copy it to the folder called sdcard.

Then shutdown root explorer and connect the phone to the pc.

go to your sd card folder and you will see a file called nv data.bin

Copy it to your pc desktop and install PSpad. When PSpad is installed do a right click on the nv file and select pspadHEX

Then in the top menu look for the optin called search and typ in KOR

Then you will find 2 files called KOR just press with your Mouse on the K from KOR and put in your Code (PSpad changes the letters during typing)

Then click file, save and then reupload the nv file to your sd card.

Fire up root explorer again, do a long press on the nv file and select copy, browse to the efs folder and press the button paste and select yes to overwrite and you are done
[Galaxy S I9000 Android Development] ilovebytes:
hi i read the whole thread - as i have the same problem after flashing jpc so i would need to change the product code back to Austria.

but i am not sure if i should risk it, as some people seem to have problems with a false imei after applying the corrected nv_data.bin

if i copy all files from efs with root explorer to the sdcard an apply the new nv_data.bin - that if anythings wents wrong - i can copy the old files with the korean product code but with the reight imei back - would this work ?

am i on the safe side with this to apply the procedure ?

and by the way does anyone know the right product code for austria ?
[Galaxy S I9000 Android Development] dajumper:
where to find pspad? on market not shown
[Galaxy S I9000 Android Development] SC001:
http://www.pspad.com/
[Galaxy S I9000 Android Development] ilovebytes:
has anybody an idea what product code i need for austria
[Galaxy S I9000 Android Development] :
product code for austria: ATO
[Galaxy S I9000 Android Development] bezil:
Are there no solutions how to change IMEI back to original?
[Galaxy S I9000 Android Development] ilovebytes:
thx a lot

great
[Galaxy S I9000 Android Development] dajumper:
i try everything but KOR is not gone! **** i don't think i get it in original state anymore :(
[Galaxy S I9000 Android Development] dajumper:
my phone starts now but i can not have acces on it, when i wipe on screen to unlock nothing happend :( we must have KOR the is nothing to do on it.

hope samfirmware comes also with original 2.2
[Galaxy S I9000 Android Development] milkaa13:
I just did this and it worked perfectly for me as well. Besides editing the nv_data.bin file, have to delete the nv_data.bin.md5 file. reboot. Then I got my original product code back. Thanks!
[Galaxy S I9000 Android Development] vancouver_hawk:
*#272*xxxx#

*#272*xxxx# (xxxx=time i.e 0945) worked for me now I have all bell stock apps, apn worked automatically and product code changed :)
[Galaxy S I9000 Android Development] phoenixno:
i flashed to JPC and it changed my product code from XEU to KOR, so i just flashed back to JF3 and it changed my product code back to XEU all by its self
[Galaxy S I9000 Android Development] beat.kitano:
Damn. Now my phone has a fake imei... The product code is XXXXXXXX.

Please help me!
[Galaxy S I9000 Android Development] beat.kitano:
Can somebody help me? :(
[Galaxy S I9000 Android Development] froilson:
Hi,

I make changes in the nv_data.bin to change the product code from KOR to the original one, a make the correct changes, but I saw inside bml3 file the wrong code and decided to changed it, copy with cp command to a bml3.bak then in my PC change with a HEX Editor and know back to the phone with cp and reboot, now the phone has not ask to enter the pin code.

Then I make a copy of original bml3.bak I made but know with the dd command. This hasn't work. Studing more, I discovered that the efs is not mounted and can not take acces to the /dev/block/stl3 with any command (dd, cat, cp, mount, ...)

Like I have original .nv_data.bak files I make a test. Is this situation the efs is not writable, because File system of root is ro, so if I remount the root with rw permisions and copy the original .nv_data.bak* files to efs directory, the phone prompt the pin. But this is reset in previous reboots of the phone, then I made an sh file and made the playlogos1 trick to call this sh, the code inside is:

/system/xbin/busybox mount -o bind /data/efs /efs

before that I copied all the .nv_data files in /data/efs and now, when I reset the phone, it prompts for the pin in all the resets. And my IMEI is the correct one.

This is a crossover solution not the good one.

How can I recovered bml3 and stl3 blocks? I think, bml3 contains a copy of the required files, it contains the IMEI, and the product code like nv_data.bin and the MD5 code like in nv_data.bin.md5.

Maybe the bml3 is process only one time, when you flash it. Because I reflash some many times with different ROM versions, bml3 is changed without the product code and IMEI, and the stl3 is not mounted over efs directory, if i change with dd or "redbend_ua recovery" function then the bml3 is the good one, but the stl3 doesn't mount any more.

BML3 has FSR_STL header, Is possible to mount this over one folder in sdcard and take the contend of this partition? I try it but the content is like /mnt/.lfs directory, Did I make something wrong?

And the last one, I don't have backed up the complete content of efs, I don't have the /efs/imei directory and the mps_code.dat and other directories, I don't know how much. I know this directories are personal and have the imei information, but maybe if someone pass me all this files, and the bml3.bak and stl3.bak can I make some testes to recover the situation and then give the results to the community, obviously changing the IMEI from that files.
[Galaxy S I9000 Android Development] bezil:
@froylson

Send me a private message with instructions. Perhaps I can help you.
[Galaxy S I9000 Android Development] Kjeldmis:
Very, very nice! Thank you so much for your work!
[Galaxy S I9000 Android Development] dawen:
I get CP not found after i enter line 4, any help?
[Galaxy S I9000 Android Development] dawen:
nvm, all i had to do was install busybox

ok after i change it back from KOR to BMC (bell) now i have no signal

wow alamost had a heart attack after knowing i couldnt restore my signal lol then i read the post 1

**IF YOUR SIMCARD DOESN'T WORK AFTER THIS, EXECUTE THE FOLLOWING**

- adb shell

- su

- busybox chown 1001:1001 /efs/nv_data.bin

- reboot

Now is all good, thanks
[Galaxy S I9000 Android Development] Fr4gg0r:
So I also have KOR product code... but why should I matter?

I have had no issues with that..
[Galaxy S I9000 Android Development] EarlZ:
The product code barely matters, its the IMEI is the problem that will become worse in the future especially of your provider decides to block that invalid/duplicate IMEI
[Galaxy S I9000 Android Development] Fr4gg0r:
Yeah and If I have read right, the IMEI problem arised with restoring the product code lol
[Galaxy S I9000 Android Development] PHiL_G4:
exactly the same to me :(
[Galaxy S I9000 Android Development] ferdyh:
Mine is

ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿMP 0.800 ÿSER GT-I9000HKDXEN

I'm dutch, don't know what to change it too... Seems that XEN is dutch?
[Galaxy S I9000 Android Development] dnsp:
If you are sure you still have in the EFS folder both original *.bak files, delete the nv_data.bin and nv_data.bin.md5 ones and reboot.
[Galaxy S I9000 Android Development] ferdyh:
There are no .bak files in my /efs folder...
[Galaxy S I9000 Android Development] nblakqori:
kor prod code

hi, can some one tell me what happens when the product kode is changed to KOR, because mein changed to KOR after jph flash, but i dont see any thing wrong,

do i have to change it back to original (europe, austrian) or can i just leave to KOR, because there is nothing wrong with the phone.

thanks in advance,
[Galaxy S I9000 Android Development] Nitephyre:
Ok, I'll ask my question here as it's similar.

I've come across EFS problems and I don't have my original backed up, as I didn't see any warnings of that before playing with JP2/JPC etc. Now, I've been having odd problems with the phone ie: ADB says "adbd cannot run as root in production builds" but it's now running stock Optus JG4 again. I've done multiple hard resets, re-flashes etc and nothing seems to fix it. I believe that JPK broke it for me.

So, how do it get the phone to re-create it's ORIGINAL /efs folder and hopefully get ADB running properly again... stupid JPK :(
[Galaxy S I9000 Android Development] nblakqori:
Any one?
[Galaxy S I9000 Android Development] djharsha:
Yep Any one . . . .

I have bakup of my efs and how can i restore it . ..

and SGS tools show me my .bak file . . tell me way to restore it .......

thanks
[Galaxy S I9000 Android Development] awia:
somebody know something new to restore the original IMEI number?? :rolleyes::rolleyes:
[Galaxy S I9000 Android Development] [Ramad]:
If you have done the smart thing by backing up your efs folder then your device must be rooted, have busybox installed and Android Terminal Emulator (busybox and ATE can be installed from the Market), then do the following:

Look in the efs folder that you have backed up and copy the file nv_data.bin to the internal sdcard of your phone.

In the efs folder you will find a folder with the name imei, copy the file mps_code.dat from there to the internal sdcard of your phone.

Start terminal emulator and execute (you have to watch the spaces in the commands) :

#su (must choose Allow if prompted)

#rm /efs/imei/mps_code.dat

#cp /sdcard/mps_code.dat /efs/imei/mps_code.dat

#rm /efs/nv_data.bin

#cp /sdcard/nv_data.bin /efs/nv_data.bin

#rm /efs/nv_data.bin.md5

#reboot

An now you have restored the IMEI-number and CSC.

Good luck.
[Galaxy S I9000 Android Development] iamshridhar:
It works great... solved with method mentioned in 1st post from Methyldioxide..

I was on JM1 official first, than moved to JM6 -> Jm8 -> JPC... later i dint like beta froyo, and thought of coming back to JM1 or Jm8, and soon i recognised, that my sim was locked, and used to see "NO SERVICE" all the time...

foloowing the steps mentioned in post 1, i am back to JM8 :)

thank you
[Galaxy S I9000 Android Development] Foobyte:
Can someone tell me what the original product code for T-Mobile USA is?

I think JPK was the first rom I installed and ever since I'm having problems. Many ROMs don't get service and so far I have not been able to fix my wifi. Product code is currently set to KOR, but why does it matter and how does it affect anything?
[Galaxy S I9000 Android Development] irkkso:
z3x samsung tool

http://forum.gsmhosting.com/vbb/f453/i9000-galaxy-s-imei-repair-please-help-1108836/

I think that IMEI repair function will be available soon from z3x samsung tool
[Galaxy S I9000 Android Development] hulkyhulk:
Hello everyone if someone could help me id be very grateful:

Right im on a (U.K Vodafone Contract) and now i flashed my firmware to the jpk

course the features were good flash, e.g but it was quite slow compared to jm8 so i flashed with odin to JPK and when the phone starts up and takes you to the recovery mode in yellow writing i see multi csc and it says KOR :confused:

I would like to change this back to my old product code and i tried the first post but i don't think i backed up anything because im not really good with files so pease help thanks
[Galaxy S I9000 Android Development] mapas:
Is there any reason to restore the original product code ?

Or you just do it for fun and the adrenaline kick ?
[Galaxy S I9000 Android Development] satyrus:
Respect..

I was badly dissapointed from my attemps to restore my product code.. I managed to mess my imei and wasn't really sure that I 'd backed up the folders the right way..

But well after all the dissapointment it worked. Seems I ve backed up the right stuff after all.

Thanks mate.
[Galaxy S I9000 Android Development] Narcissus85:
is Z3X another box like the SPTboxtool?
[Galaxy S I9000 Android Development] edwinlinkt:
2 reasons:

Need to restore to original product code in order to upgrade official firmware through KIES. Or else you'll get "Device version cannot be upgraded." message.

(But can still flash new official firmware through Odin :p)

For warranty purposes.
[Galaxy S I9000 Android Development] manniakk:
i`m looking at my nv_data.bak and it looks like this:

0.800.....ÿKOR........GT-I9000HKDMTL

does this mean that if i delete the new nv_data i`ll have my product code back and why there is KOR before my product code....
[Galaxy S I9000 Android Development] hulkyhulk:
Sim card not showing

hello ive tried the post on the first page and now my sim card is still not showing please help asap because its annoying me thanks
[Galaxy S I9000 Android Development] Gohst_oc:
A few days ago, I was flashing JPM with ODIN.

Now I changed the product-code like written in the first post.

But something is strange:

After I added the Code for Switzerland (GT-I9000HKD

SWC

) Asphalt 5 disappeard from Samsung Apps...

I installed the SGS Toolbox from the Market (the one from uiterlix) to check again.

If I use "Check product code" it says:

Product code backup .nv_data.bak:

I9000HKASWC

That confused me because:

I flashed with ODIN, so how is it possible that the tool can find a backup?

I never made one manually.

And I see, that the correct code should be "I9000HK

A

SWC"

Why changed the D to that A?
[Galaxy S I9000 Android Development] jbakers:
SGS Toolbox showed that my bak files had the correct product code.

What I did was use root explorer (available on market) and went inside the efs folder and deleted nvdata.bin and nvdata.bin.md5

After that rebooted the phone and it used the bak files to restore the original product code.

SGS Toolbox now shows the original product code and also still have my original IMEI
[Galaxy S I9000 Android Development] Gohst_oc:
Hmmm if the System recreated the file, where are the informations stored?

Did you flash with KIES?

I can't find Asphalt 5 in "Samsung Apps" since I changed the Product-Code to my old one!!!

Is this problem related to the product code of my device?

EDIT:

Stupidity hurts... the apps are disappeard from "Samsung Apps" because I installed the. Same with crazy kart...
[Galaxy S I9000 Android Development] jbakers:
if youd have red a bit more into it you wouldve known that they are stored in the EFS folder.

If you use SGS Toolbox you can clearly see the product code from the current nvdata.bin AND ALSO from the backed up one. (if available)
[Galaxy S I9000 Android Development] Gohst_oc:
Yes I know.

But how can I have a backup if I flashed with ODIN?

I have on (at least the SGS Toolbox told me).

Maybe I have to ask uiterlix who made the SGS Toolbox?

But thanks for the tipp to delete the original files.

I'll try it later.

So if this works everytime, it would be a much easyer way.
[Galaxy S I9000 Android Development] lafaya:
When I check the nv_data.bin file I see

ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿMP 0.800 GXEE GT-I9000HKDXEE

should I change the "G" with ÿ instead? My Product code should be OPS.
[Galaxy S I9000 Android Development] jbakers:
You need to change the last 3 letters to your product code (XEE in this case).

Im not sure if what you say is right (OPS).

seeing that yours doesnt say KOR, I think you shouldnt change anything.
[Galaxy S I9000 Android Development] Kunki:
Thanks it works.

I had a problem with my product code after flash via Kies with the modified registers.

I use your instructions and everything is OK
[Galaxy S I9000 Android Development] vBB:
Hello, I have problem with method from this topic.

I've restored original PC for my SGS (Poland - XEO), and rebooted SGS, but my sim card isn't read now. I've read that we can fix it by doing this:

And when I did second method (on the phone) terminal says:

"No such user '1001:1001"

and when I did first method (on my computer) cmd says:

"Operation nor permitted"

In both cases I'm trying to execute this:

1) busybox chown 1001:1001 /efs/nv_data.bin

or this

2) chown 1001:1001 /efs/nv_data.bin

Now, I've replaced my backup and sim card is read well, but I would like to restore my original PC. How to fix problem which I showed you?