yashsingh1/xdaforums huggingface dataset:
[Galaxy S II General] cosmo1987:
i don´t have any .nv files, i only have the nv-files.

when i type "chown 1001.1001 /efs/nv_data.bin" i see "unknown user/group" same when i type "radio.radio..." or "1001:radio...."

when i type "chown -Rcv 1001.1001 /efs i see

changed ownership of /efs/nv_data.bin to 1001:1001

same text by this files: nv_data.bin.bat, cryptoprop_onetimeboot,dmp/sett/system, dmp/sett/secure, dmp/sett, dmp, cryptprop_securewipedata, cryptoprop_applied_result, .files/.mp301, .files/.dx1, .files/dm33, .files, cryptoprop_essive, nv.log, efs, nv_data.bin

what should i do, to reanimate my IMEI?

i have the 0049... IMEI, GT-9100 Galaxy s2 and busybox 1.17.1
[Galaxy S II General] russpattaya:
Use this:

https://market.android.com/details?...GwsMSwxLDEsImNvbS5oZWxyb3ouR1NJSV9SZXBhaXIiXQ..
[Galaxy S II General] cosmo1987:
i tried it, but it did´nt work, because the .nv_data files are missing :-/
[Galaxy S II General] nikzDHD:
I've been rearing my head out for the past hour or so, my IMEI got screwed up first time since having this phone since the beginning tried several methods but this worked a treat. You saved my phone :) Thanks mate.
[Galaxy S II General] holyfist333:
restore imei WITHOUT sd card back up either??

so . . . in theory . . . if some one was to lose his imei number during flashing and the efs back up on the sd card . . . he can

1) make a copy of the generic efs

2)edit the IMEI is stored in ".nv_data" file and change the imei to the one specified on your motherboard

3) restore the edited verion to the rom

this process should work ryte??

all you would need is to root the phone . . export the efs files and use a hex editor to edit the imei in the ".nv_data" file.

im about to try this so lemme know if there is a flaw in this method.
[Galaxy S II General] vcosmin:
so many steps sor one easy task.

If you have an gmail account and you used to download any app from Market then go to your gmail account settings then to your dashboard and in the android devices settings you will have your phone.

from there choose more data stored for your device and IT'S A MIRACLE!!! YOUR IMEI IS IN THERE!!! WOOOOWWWW...

and if that is complicated, well, you can allways try https://www.google.com/dashboard/
[Galaxy S II General] AndyX™:
pasture nnavry

thanks friend!!
[Galaxy S II General] karendar:
EVEN BETTER: REMOVE BACKPLATE, PULL BATTERY! OMG IT'S MAGIC!!!!!!!!!!!!!!11111111oneonefail
[Galaxy S II General] vcosmin:
OMG, an easier step :)

now, c'mon, there are 100+ threads on how to recover your IMEI...
[Galaxy S II General] karendar:
And you just created another useless one. :) Congrats.
[Galaxy S II General] BJ van Beethoven:
I believe the file is encrypted, so I doubt it's as simple as just editing the IMEI number in the file.
[Galaxy S II General] scaramonga:
Not even the slightest bit funny, if it was a joke.
[Galaxy S II General] Red_81:
I tried everything in the post (and a few others) but nothing could bring back my IMEI. I had destroyed too many of the files attempting to fix it. I decided to send it off to Josh at mobiletechvideos to have it repaired. It took about 1 week and now everything is back to normal.

If you want to use his service, just PM him. He is a member here on XDA.

connexion2005
[Galaxy S II General] scaramonga:
Good. Now back that sucker up, keep copies everywhere, online and off, hell do it 10 times! ;)
[Galaxy S II General] ghassir:
Hi every body,

I am from algeria we dont have a counsumer service here???!!

I read several forums & threads, but I did not understand, I have not done a backup for my efs directory, is with that (at present) I recovered my imei/baseband?

I have a second s2 works very well, is that I can copy the directory to the efs s2 that is down?

Please help me?

thank you.
[Galaxy S II General] Logix:
you are fantastic thank you sooo much!!! i had a imei of 000000 in my vibrant 4g which wouldnt let me use ptt programs this will probally solve it imma try it i know i lost my nv tho original back up.
[Galaxy S II General] gadget069:
Would having a nandroid backup solve this issue? Also why is this file getting corrupted? Is it the rom or kerenl causing this corruption? I know the first thing after acquiring root ill be backing this file up.

sent from my SGH-I777 w/Tapatalk
[Galaxy S II General] Mr.wssn:
my IMEI is Unkown

will this method work for me ?:confused:
[Galaxy S II General] scaramonga:
A nandroid backup does not backup EFS.

I don't think we know why these files are getting corrupted, could be due to various reason?

Back that EFS up, yes, do it first before you mess with any ROM's. In the end, its the best method for recovering corrupted IMEI. ;)
[Galaxy S II General] virus786:
Very nice :)
[Galaxy S II General] DMgals:
I got my original IMEI back on

Galaxy S

(after I tried some ICS custom rom) with this procedure:

1. Delete all 2 nv_* files in "etc" folder

2. Reboot into download mode

3. Flash back to gingerbread 2.3 XXJVU stock or possibly even more back to eclair 2.1

4. To me it worked 100% and I got my original IMEI now restored.

5. I am not kidding that's how I got it really fixed from my funny looking IMEI 047000000...XX.

You can try this procedure and I hope it works for you like it worked for me.

I take no responsibility if it somehow fail to work but you should try this if you're sick and tired of searching all kinds of forums like me.
[Galaxy S II General] TRusselo:
There have been a few guides in the Samsung Galaxy Captivate forums for quite some time.

Would be great if these links could be added to OP, as the more information available, the better!

RESTORE IMEI and Product Code w/o ADB, PC (ALL DONE ON PHONE) nv_data.bin

Restore Product ID to AT&T Captivate nv_data.bin

Restoring a dd backup with Odin (A fix for a badly broken EFS)
[Galaxy S II General] o-marshmallow:
I don't have nv_data.bin in my efs folder, what can I do ?
[Galaxy S II General] norman505:
Is anyone successful recover IMEI for SG4G?
[Galaxy S II General] PunkOz:
I have a Samsung galaxy S2, I'm from Mexico, I tried this with the stock ICS LPQ

My IMEI Changed from

004999010640000 to 357974040007389, do i have my original imei? o_o

Edit: if i remove my phone's battery it says the same number but with 7986 @ the end "357974040007986"
[Galaxy S II General] blufade:
i have lost my imei and do not have a backup of /efs folder, but using SGSTools CSC selection can read my imei eventhough *#06# gives me 00004.... !!

how is this possible ? does this mean i can recover my imei ?
[Galaxy S II General] limmes:
rom messed my imei.

Now i got generic imei.

I have no efs backup or copy.

Gsii_repair do not help as there is no bak copy.

Is it still possible to recover genuine imei? how?
[Galaxy S II General] by_dj_omar:
thank you for your share .......
[Galaxy S II General] dev_ks:
Help me pls..

By mistake i checked Phone efs clear in Odin during installing rom. I m not sure but i think i lost my efs, bcos my lock screen is disappeared now and my power off menu too. Pls guide me to recover my efs folder. thanx...

:mad::mad::mad::mad::mad::mad:
[Galaxy S II General] surjain:
mps_code.dat missing

Hi,

Have a similar problem of IMEI coming as unknown. I see that my mps_code.dat is missing from my efs folder altogether.

Any clue how can i get that back in place?
[Galaxy S II General] GRACO:
If you can make calls, connect 3g,, etc...., should be ok then.
[Galaxy S II General] hp79:
Is there any way to insert the IMEI number manually? I don't want to pay AT&T for data charges. I have wifi everywhere.

Also, if I had a generic (or invalid) IMEI number 000X.... will AT&T automatically add data since I'm using a smartphone? Or would the phone completely not work? If the phone works fine with generic IMEI, and no data is added, then I would actually want a generic IMEI. Of course that is after making a backup.
[Galaxy S II General] Harper11:
Thanks for this
[Galaxy S II General] pegox:
But i have a copy of my efs folder made from te original efs folder before that i lost the IMEI, how can i do? :(
[Galaxy S II General] :
it really works.

Thank you mate
[Galaxy S II General] ufo900:
thanks :)
[Galaxy S II General] Kovacs-m:
Thank you very much for this guide
[Galaxy S II General] snezana:
oh man, thaaank youuu veryy much:)
[Galaxy S II General] master_droid:
Great guide and very helpful
[Galaxy S II General] perryleros:
hmm. useful post.
[Galaxy S II General] lyriquidperfection:
See here for my bit for the community. :)

http://xdaforums.com/showthread.php?t=1308546
[Galaxy S II General] g_albin:
I Used the Reapir GSII and its showing busy box error for me :(
[Galaxy S II General] androidfanboy93:
Thanks.. Great guide.. :)
[Galaxy S II General] :
FIXED !

FIXED!

the ultimate answer.

after spending 6hrs.

install GSII_Repair free form market.

just 2 steps.

https://play.google.com/store/apps/details?id=com.helroz.GSII_Repair

I am on Resurrection ROM V1.3

this incident gave me a hell lot of knowledge.

thank you everyone one for the info.

xda - RULEZZzzzz
[Galaxy S II General] javi3k:
hello sorry guys for asking this but im kind of new in android ssytem i dont have s2 i have a galaxy nexus, a friend of mine has the s2 and he told me to make a backup of efs folder, but i cant find it, i dont see it whit root explorer is this only s2 ? i already flash a custom rom but idk if my imei is fake, so far my phone is working.
[Galaxy S II General] drmsat:
can u make me a video tutorial ... i am really in need of it..!!!! i ahve lost my imei numbero
[Galaxy S II General] liquidvampz:
never had a chance to say thank you for this! thanks alot for the guide mate. u saved my life!
[Galaxy S II General] enelyam:
Ok i have a couple issues on this, first one is that when i delete the efs folder the phone will create one back. But no nv_data will show on the new efs folder. Also when i go to the backed up folder there will be no .nv_data, just regular nv_data.bin files. The efs folder looks to be destroyed because i have the nv_data.bin on the destop and when i see it with a hex editor it looks pretty messed up if i compare to other nv_data.bin files. Any suggestion to recover imei in that case??
[Galaxy S II General] ferrigato:
Thx man this ver useful!
[Galaxy S II General] mattia.b89:
hi, i'm a nexus S user but i have a similar problem.

i've casually noticed (casually because phone works as should and IMEI isn't 004xxxxx)

from the "nv.log" that somethings goes wrong

anyone get this problem ?

here the log: http://pastebin.com/NQV3ExJj
[Galaxy S II General] xaqi:
i do it same till step 3, when i go for step 4 and opened efs folder.... there was nothing in there... please help.. thanks in advance...
[Galaxy S II General] ritawb:
Thanks!
[Galaxy S II General] lyriquidperfection:
Are you rooted? Otherwise efs folder will appear empty.
[Galaxy S II General] tctwister:
Hi @ all. Thx for the thread, but it didn_t work for me?!? I have a Android 2.3.6 rooted. And if i do all the steps the imei ist still 0049....

I have the same problem like other users write here and these solutions didn't work for me...

First off al i have to say: I have no backed up efs Folder with original imei. I think noone with this problem has ;-)

O.K. Here my steps:

I passed steps 1-4 successfully

step 5:

in my imei folder lies a file mps_code.dat which includes the text 0DK

i have no ".nv_data" file, for example i have "nv_data.bin" or ".nv_data.bak" but with both of them it didn't work for steps 5-7 the chown command changes the owner to radio in step 8

Can anyone help me?

Thanks, Jens
[Galaxy S II General] stol24:
CM 9 Nightly No Reflash IMEI recovery

(Assuming you have a backup of your old & working /efs folder.)

Running CM 9 Nightly on a Nexus S, I tried the 9 steps procedure without reflashing and it didn't work. But I found a solution to the problem outlined here http://xdaforums.com/showpost.php?p=24921196&postcount=31
[Galaxy S II General] manoranjan2050:
very nice

its really helpful guide ..................... thanks for it
[Galaxy S II General] al_madd:
Work nicely on my nexus s..thanx..:D
[Galaxy S II General] xaqi:
i am using super user n my mobil, which allows super user permission to the rooted apps like avast anti virus and bloat freezer... my friend rooted my mobile just using a software, something like ms dos software.. how to confirm my phone is rooted or not.. thanks..
[Galaxy S II General] pulley06:
after writing this command-chown 1001:radio /efs/nv_data.bin

i get the error: usage: chown<USER>[.GROUP] <FIle1> [file2]...
[Galaxy S II General] cool1007:
Hello,

I know it's not entirely related but didn't know where else to go. I got Hellcat's Ktool and did a backup of the efs information with an integrity check.

I have a question though. If something happens to my imei, how am I supposed to download the app again to restore the backup (say for example I lose my imei after flashing) if I can't access Google Play without an imei?

I have searched the net for the all file to have as a backup but no luck.

Suggestions?

Thank you,
[Galaxy S II General] DSA:
Thanked you by accident...

You could back the app up with titanium backup and restore it when needed

Or use a root explorer - copy the hellcat ktool apk from /data/app to your sd card and then you can install it when you like
[Galaxy S II General] cool1007:
Thanks for the help (and I meant it, hehe). I'll do that. :)
[Galaxy S II General] pbezaury:
Ayuda

Perdon pero soy del D.F. y no encuentro la forma de regresar mi imei original, me podrias ayudar? veo que ya lo lograste!
[Galaxy S II General] lyriquidperfection:
This is an english speaking forum. Please respect the rules. Good day to you! :)
[Galaxy S II General] pbezaury:
Sorry, I´m from Mexico city and I still can´t make my sg sII run with my original imei, I saw that you are from Mexico, can you help me please, thanks in advance
[Galaxy S II General] 华丽的平凡:
Thanks for that great info. I did learn a lot from your post and other posts from XDA .But for my bad english ,I can't understand they completely.;)
[Galaxy S II General] borgmanjayce:
I just want to say a very huge "Thank You" for this as I've been trying to get this stupid problem fixed for months without success!

Fortunately, I'd made a backup in November even though the problem occured in September and amazingly, it had copies of the relevant files dated before the original files got corrupted!

I followed your instructions to the letter and after switching off the flight mode, I managed to get a signal once more!

To anybody reading my post, this guy's advice truly does work and I would definitely make at least 3 backups of the new efs folder as well as keep 3 backups of the backup that contains the uncorrupted files.

I was very lucky on this occasion that I had a backup that contained uncorrupted files dating before the corruption happened on my nv_data files, but as I said and the OP said, make backups as it will save you a lot of grief in the end!
[Galaxy S II General] vis0nz:
So what if I dont have a backup of my old/working EFS folder?
[Galaxy S II General] pegox:
how you can delete your efs folder? root explorer says "delete failed", the file inside the folder are deleted but not the efs!
[Galaxy S II General] Batorun.:
Problem.

When I use the command:

chown radio:1001 /efs/nv_data.bin

It says:

chown: unknown user/group radio:1001

As a result, I'm stuck at this point.

Any clue?
[Galaxy S II General] arbaazkhanakp:
i have samsung galaxy sl i9003, while flashing i completely lost my imei and baseband version,both are unknown..will this method will work to recover my imei,plz reply as early as possible,m very much tensed
[Galaxy S II General] albertobom:
I've never backup my efs folder and now i lost my imei what should i do? Plus when i flash a rom one of these days i mistakly it the Phone EFS Clear...

Any sugestion for me? Should I try this first?
[Galaxy S II General] Jaaaaay:
Thankyou, this worked perfectly.

I had to flash a stock rom to rebuild my efs folder properly, then copied over my nv_data.bin file, i didnt have .nv_data.bin, but it still worked fine.

You need to rebuild your nv_data.bin file somehow, sorry i dont know how to go about doing this.
[Galaxy S II General] mypc200x:
i have problem with my imei,baseband and no signal b4..bt only imei and baseband fix..now only signal hv problem..sometimes signal drops all after a few mins of cal or b4 i can dial through..pls help f someone know how to fix it..
[Galaxy S II General] enelyam:
Okay, lets see if someone can help me on this. I have the original efs folder but my guess is that its pretty corrupted because it wasnt showing the imei(null/null). Problem is that when i delete the efs folder using root explorer it will not create new nv_data or nv_data md5 or anything. And if i try to insert the old efs folder it will just create a new efs folder and then inside that new efs folder there will be the one i inserted. My guess is that it will not be read the way its supposed to because it changes the path since theres two efs folders. The new one, and the one i saved inside. So if someone could help me on that i will be very thankful.
[Galaxy S II General] RDilus:
did this om my I9000 because my was broken works like a charm!
[Galaxy S II General] gersen416:
Recover IMEI in 9 Steps

Many thanks to the original poster of this thread. It didn't initially work for me, however it led me to the following variant that did. Here are the details:

Phone: Bell Canada SGS2 unlocked running stock 9100MUGKG2 GB 2.3.3 firmware

Rooted: Yes with Doomlord's V4 root

CWM: No - i don't load custom ROM's just run root apps.

Tools Req'd: HC-Ktool, Rootexplorer (both excellent tools - many thanks to the dev's)

Root (ouch!) of the problem appears to be that the /efs partition had become stuck r/o when the phone requires it to be r/w. The actual nv_data.bin file was fine but since the OS cannot update it all functions including IMEI, SIM card read, baseband etc.. don't function. None of the fixes documented including HC-tool, EFS Pro 1.4 and SGS_Repair fixed the problem in my case. They don't appear to properly reset the /efs partition to r/w without deleting it and allowing the OS to recreate. This happened while freezing known bloatware apps using TB - beware this doesn't happen to you. Use HC-Ktool to backup your /efs immediately.

Procedure:

1) Using HC_Ktool backup your /efs to sdcard for safe keeping. Make another file-based copy to external SD using Rootexplorer in case you have to manually update the nv_data.bin file from the nv_data.bak.bin (Copy all to external SD and PC very important do not omit in case this process does not work for you!!!!)

2) Use Rootexplorer to verify that root / can be mounted r/w and do so. Confirm that while /efs has files it CANNOT be mounted r/w or deleted.

3) Use Rootexplorer to RENAME /efs to /efsold and THEN it can be deleted - do so. This trick solved the problem for me since none of the automated tools or manual process appears to work.

4) Start HC_Ktool and use the format /efs function format the partition. It may report that the partition cannot be formatted - ignore. DO not attempt to restore the /efs files yet.

5) Reboot the phone using HC-Ktool reboot function or standard reset. The OS should recreate the /efs partition.

6) Using Rootexplorer confirm the /efs partition has been recreated by the OS and can be mounted r/w. Do so and leave it r/w before attempting to restore the backup made in step 1.

7) Using HC_Ktool restore the backup. Restore both the img and tar file - do not reboot yet.

8) Use Rootexplorer confirm the files in /efs have been restored and that it remains r/w and space used and free is being reported.

9) If not already done, use Rootexplorer to back up to / and remount as r/o.

10) Reboot your phone - presto the SIM, IMEI and baseband are restored and your expensive media player just became the beloved near-pinnacle of technology you bought.

If this does not work it may mean that your nv-data.bin file IS corrupted AND the /efs is stuck r/o. In that case after restoring /efs in step 7) delete just nv_data.bin and then copy the nv_data.bak.bin from external sd to the /efs/nv_data.bin, fix permissions as outlined in the first post and then make sure the entire recreated /efs directory is r/w. Reboot.

Cheers.
[Galaxy S II General] shoeb180:
Not found

Thanx for the code of this extra steps. My phone doesn't show the generic IMEI. But when I type this code, terminal shows "mke2fs/dev/block/mmcblk0p1: not found"!

Any solution?
[Galaxy S II General] Betornillo:
entired EFS content eresade

My situation is diiferent so i could not use this good tutorial but i appreciate the work.

For me, one night the cellphone lost signal and the status of the cell didi not show any imei, actually if i press *#06# a little window appears titled "IMEI" with no content.

So after lot of research i figured out that the problem was the EFS folder. So using root explorer i opened that folder and it is empty, just a little file named *crypt_idontremeberthename* was there. So i was not able to perform many many tutorials talking about nv_bin.bin or .bak. I'm so sad cause i loved this phone and i never installed a custom rom or something like that, i had an sony ericsson X10 and never heard about EFs backup.

I just rooted it (S2) 5 months ago in order to use proxydroid and be able to use the work's wireless internet.

Yesterday i flashed to the original rom using odin and i'll go to the service center again since the first time they said that root breaks your warranty. So with the cellphone as new i'll go to a different service center.

But i'm a little concern about if they will know that i just flashed the phone i tried to use a zip file on recovery mode that restart the record. But seems like did not work. is there a way to resatrt the counter using odin? how could i see how many times did my phone was flashed? just like the service center will try to do.

Thank you so much guys. I love my S2 but man i did not know that it was so delicate.
[Galaxy S II General] anjarys:
my IMEI didnt change at all. but my phone always entering factory mode (a notification popped up) when its booted.

no its not the factory mode with green robot in it, just like a working phone, booted up, apps working good, etc, but eventually here comes the pop up warning that im in a factory mode, then forcing the wifi off by itself.

someone says it is caused by corrupted EFS. but hte problem is i dont have any EFS backup.

what should i do? im on sgs3
[Galaxy S II General] vis0nz:
There is an app called "Triangle Away" by Chainfire, it is on the Play Store, or here on XDA. It will reset your counter. Although I am not sure if you need root or not to do so. Hope that helps!

_EDIT:_ TriangleAway only works on ICS Roms. Sorry for the confusion
[Galaxy S II General] Fox-Warrior:
Thanks, verry usefull
[Galaxy S II General] MohElShafei:
Thank you very much for this topic, I just have two question:

1. You said "reset" in steps 3 and 9, do you mean by that I do (Reset Factory Defaults) from the phone .. or just Restart the phone?

2. In step 5, you said "copy the "imei" folder", there is no such folder in my mobile.

Please help me. Thanks.

Regards,

Mohamed
[Galaxy S II General] :
You don't full fill the prerequisites you dont have original shipped folder cause you formatted it when fixing emmc brick right?

If you find a way without expensive box let me know lol
[Galaxy S II General] aznboix:
I've done everything as you mentioned. still not working :(

are in MTL?
[Galaxy S II General] aceian:
I have made a backup of my efs using ktool when I was on Resurrection rom....

So if ever I loose my imei can I use that backup to restore it back on any whatsoever rom I am on????