How to restore efs folder - Galaxy S III Q&A, Help & Troubleshooting

Hi all,
In order to fix my no signal issue after rom update though kies i decided to repair efs folder.
I backed up my efs folder using root browser both in zip and as folder.
I deleted efs folder, restarted phone and restored .nv_data.back as nv_data.bin
fixed ownership to 1001,1001 but problem not solved.
infact i now get a pop up screeen on home screen showing sw info and telss front camera, camera N/A, band unknown etc.
how can i revert to previous state.
There are many files that android did not create in efs folder.
If i paste files from my back up their permissions and ownership is changed. and i do not know their orignal ownership.

Try owner - root or radio
Permissions - 644 or 755 (don't remember exactlly)
Read 4
Write 2
eXecute 1
set it by root explorer, terminal emulator or adb
Next time make backup in raw format. kTool from market is usefull to do that. You can also use it to reformat efs partition if it cousing troubles.
Wysyłane z mojego GT-I9100 za pomocą Tapatalk 2

After flashing back official LE8 i have got rid of that pop up screen.
But two problems remain, one is no lock screen and other is no power menu.
Also i need the need the permission / ownership for following files
nv_core
nv_data
nv_state
00000000.authtokcont
gyro_cal_data
h2k.da
wv.keys
also if possible is there a way to replace complete folder without the need of setting these permissions

Related

[Q] Got Generic IMEI. Don't Have Any Files inside The efs Folder Except cryptprop_es

Forgot to have nandroid backup . Wiped data, cache partition, dalvik cache, battery stats Couple of times. Screwed up the phone for flashing, No signal.. Later, I was able to fix it with SGSII_repair But, stuck with a generic IMEI (004999010640000). I haven't backed up efs folder. Now I'm only left with cryptprop_es in the previous efs folder.. Is there any way to restore original IMEI ???
computechnopro said:
Forgot to have nandroid backup . Wiped data, cache partition, dalvik cache, battery stats Couple of times. Screwed up the phone for flashing, No signal.. Later, I was able to fix it with SGSII_repair But, stuck with a generic IMEI (004999010640000). I haven't backed up efs folder. Now I'm only left with cryptprop_es in the previous efs folder.. Is there any way to restore original IMEI ???
Click to expand...
Click to collapse
Try this ! You must have:
-Root
-Root explorer for copying files to and from EFS folder
-Android SDK for the ADB tools or Terminal in your phone.
IMEI is stored in ".nv_data" file in ORIGINAL SHIPPED EFS folder too, so you just have to do these:
1) make a copy of your EFS folder to your sdcard using root explorer and then make a backup of the folder to your computer [ to have another copy if you had to format sd card sometime ]
2) delete the EFS folder (BE SURE YOU HAVE BACKED IT UP IN A SAFE PLACE AS SAID IN STEP 1) from the root of your phone using root explorer.
3) reset the phone, after that, go to the root, and you can see that the EFS folder is still there, don't make any mistake, this EFS folder is new and generated by the android OS.
4) go to EFS folder using root explorer, and delete "nv_data.bin", "nv_data.bin.md5".
5) go to your backed up EFS folder on your sdcard, copy the "imei" folder to the EFS folder at the root of your phone, then again go to the backed up EFS folder at yout sdcard and copy the " .nv_data " file to your EFS folder at the root of your phone using root explorer, NOTE: the dot in first of nv_data is not a mistake, copy the ".nv_data" file.
6) make another copy of the ".nv_data" file in EFS folder in your phone, so you would have 2 copies of ".nv_data" in EFS folder
7) rename one of ".nv_data" files to "nv_data.bin" and another one to "nv_data.bin.bak"
8) at your PC open CMD at the ADB tool path, or run Terminal at your phone enter these commands:
adb shell ( use this command of you use ADB, if you're using terminal, skip this line )
su ( ALLOW THE MESSAGE CAME AT YOUR PHONE's DISPLAY BY SUPERUSER PROGRAM )
chown 1001:radio /efs/nv_data.bin
9) reset your phone.... after that you have your original IMEI. you can check your IMEI by dialing *#06#.
If all the above steps do not work, check with a called developer Odia on XDA, he has recovered many phones with lost EFS.
All the best.Hope this helps!
ksantoshh said:
Try this ! You must have:
-Root
-Root explorer for copying files to and from EFS folder
-Android SDK for the ADB tools or Terminal in your phone.
IMEI is stored in ".nv_data" file in ORIGINAL SHIPPED EFS folder too, so you just have to do these:
1) make a copy of your EFS folder to your sdcard using root explorer and then make a backup of the folder to your computer [ to have another copy if you had to format sd card sometime ]
2) delete the EFS folder (BE SURE YOU HAVE BACKED IT UP IN A SAFE PLACE AS SAID IN STEP 1) from the root of your phone using root explorer.
3) reset the phone, after that, go to the root, and you can see that the EFS folder is still there, don't make any mistake, this EFS folder is new and generated by the android OS.
4) go to EFS folder using root explorer, and delete "nv_data.bin", "nv_data.bin.md5".
5) go to your backed up EFS folder on your sdcard, copy the "imei" folder to the EFS folder at the root of your phone, then again go to the backed up EFS folder at yout sdcard and copy the " .nv_data " file to your EFS folder at the root of your phone using root explorer, NOTE: the dot in first of nv_data is not a mistake, copy the ".nv_data" file.
6) make another copy of the ".nv_data" file in EFS folder in your phone, so you would have 2 copies of ".nv_data" in EFS folder
7) rename one of ".nv_data" files to "nv_data.bin" and another one to "nv_data.bin.bak"
8) at your PC open CMD at the ADB tool path, or run Terminal at your phone enter these commands:
adb shell ( use this command of you use ADB, if you're using terminal, skip this line )
su ( ALLOW THE MESSAGE CAME AT YOUR PHONE's DISPLAY BY SUPERUSER PROGRAM )
chown 1001:radio /efs/nv_data.bin
9) reset your phone.... after that you have your original IMEI. you can check your IMEI by dialing *#06#.
If all the above steps do not work, check with a called developer Odia on XDA, he has recovered many phones with lost EFS.
All the best.Hope this helps!
Click to expand...
Click to collapse
I don't have the nv_data files or, anything related to that !!!
Have you tried GSII_Repair from the Market ? This might be your last best chance before you need to send it to Samsung/your telco for repair. Look for it, read the description & then decide whether you want to try it or not.
If this doesn't work, nothing else will.
Edit to add - My bad.
MistahBungle said:
Have you tried GSII_Repair from the Market ? This might be your last best chance before you need to send it to Samsung/your telco for repair. Look for it, read the description & then decide whether you want to try it or not.
If this doesn't work, nothing else will.
Click to expand...
Click to collapse
Yeah !. This is the App Which Has Set The Generic IMEI & Brought Back The Phone's Signal !!! Would it Be A Problem in Future if, I Stick With This Generic IMEI ??? (I Know That Some Operator Blocks This IMEI But, Mine Didn't, Yet..)
MistahBungle said:
Have you tried GSII_Repair from the Market ? This might be your last best chance before you need to send it to Samsung/your telco for repair. Look for it, read the description & then decide whether you want to try it or not.
If this doesn't work, nothing else will.
Click to expand...
Click to collapse
He says in the opening post he has tried GSII_Repair which gave him the generic IMEI.
OP, if your EFS folder is empty and you made no previous backups I suspect you will have to send it for repair.
Imei is known by telephone company?
Can't he just get imei from them and create new folder if there is no backup?
Isn't imei on phone box?
Sent from my HTC Glacier using XDA App
The necessary files are encrypted. Even if he knows the IMEI it's not just a simple case of creating a text file with it in for example. I wouldn't be surprised if his MAC address has gone too.
Do a search for the post about user ODIA who has helped some with no IMEI .
jje
ksantoshh said:
Try this ! You must have:
-Root
-Root explorer for copying files to and from EFS folder
-Android SDK for the ADB tools or Terminal in your phone.
IMEI is stored in ".nv_data" file in ORIGINAL SHIPPED EFS folder too, so you just have to do these:
1) make a copy of your EFS folder to your sdcard using root explorer and then make a backup of the folder to your computer [ to have another copy if you had to format sd card sometime ]
2) delete the EFS folder (BE SURE YOU HAVE BACKED IT UP IN A SAFE PLACE AS SAID IN STEP 1) from the root of your phone using root explorer.
3) reset the phone, after that, go to the root, and you can see that the EFS folder is still there, don't make any mistake, this EFS folder is new and generated by the android OS.
4) go to EFS folder using root explorer, and delete "nv_data.bin", "nv_data.bin.md5".
5) go to your backed up EFS folder on your sdcard, copy the "imei" folder to the EFS folder at the root of your phone, then again go to the backed up EFS folder at yout sdcard and copy the " .nv_data " file to your EFS folder at the root of your phone using root explorer, NOTE: the dot in first of nv_data is not a mistake, copy the ".nv_data" file.
6) make another copy of the ".nv_data" file in EFS folder in your phone, so you would have 2 copies of ".nv_data" in EFS folder
7) rename one of ".nv_data" files to "nv_data.bin" and another one to "nv_data.bin.bak"
8) at your PC open CMD at the ADB tool path, or run Terminal at your phone enter these commands:
adb shell ( use this command of you use ADB, if you're using terminal, skip this line )
su ( ALLOW THE MESSAGE CAME AT YOUR PHONE's DISPLAY BY SUPERUSER PROGRAM )
chown 1001:radio /efs/nv_data.bin
9) reset your phone.... after that you have your original IMEI. you can check your IMEI by dialing *#06#.
If all the above steps do not work, check with a called developer Odia on XDA, he has recovered many phones with lost EFS.
All the best.Hope this helps!
Click to expand...
Click to collapse
I am not able to delete the efs folder from the root dir. stuck at that step ... please help ...
ano.cresent said:
I am not able to delete the efs folder from the root dir. stuck at that step ... please help ...
Click to expand...
Click to collapse
I believe you have to remount your root folder as R/W.
Are you using a rooted phone with root explorer set to read write ????
jje
suggestion thru my experience
ano.cresent said:
I am not able to delete the efs folder from the root dir. stuck at that step ... please help ...
Click to expand...
Click to collapse
for my phone i encounter that imei 00...... i just save by the online back up where its automaticaly back up my data online and i found my efs folder. very simple step what i did. i ownload this efs file foler then all the conten inside i just copy to efs folder in my root directory and asking to replace existing file yes then reboot the phone. after reboot i checked my imei thru *#06# it back to the original same with the sticker under my battery pack on my gt i9000 hope it will help for other people easy and simple step it will back to original if you have back up efs file..
just to shared my experienced regarding to the problem stated..

Help getting to a rom with 911

Hello,
I'm trying to get back to working 911. I've used Odin to flash all the way back to stock Eclair, yet when I dial 911 it just hangs right up without connecting. I flashed Froyo and the same thing. I thought all I needed to do was flash back to an earlier rom? Can someone point me in the right direction?
If it doesn't work on stock, it's probably a busted efs.
1) Go in About Phone > Status and check if your IMEI is "004999010640000"
2) You'll want to restore your efs. Check your sd card for a folder called "backup" and a folder inside that called "efs", copy that the "efs" folder into root, replacing the efs folder there, then reboot. You'll want root for that. Then go in and check that your IMEI is not 004999010640000
FaultException said:
If it doesn't work on stock, it's probably a busted efs.
1) Go in About Phone > Status and check if your IMEI is "004999010640000"
2) You'll want to restore your efs. Check your sd card for a folder called "backup" and a folder inside that called "efs", copy that the "efs" folder into root, replacing the efs folder there, then reboot. You'll want root for that. Then go in and check that your IMEI is not 004999010640000
Click to expand...
Click to collapse
Yeah my IMEI is "004999010640000". So I'm going to check for the efs back up. I'll report back.
FaultException said:
If it doesn't work on stock, it's probably a busted efs.
1) Go in About Phone > Status and check if your IMEI is "004999010640000"
2) You'll want to restore your efs. Check your sd card for a folder called "backup" and a folder inside that called "efs", copy that the "efs" folder into root, replacing the efs folder there, then reboot. You'll want root for that. Then go in and check that your IMEI is not 004999010640000
Click to expand...
Click to collapse
There wasn't an efs folder in the root to copy over. But I did go ahead and copy the efs folder that was inside of the backup folder to the root and rebooted and my IMEI is still "004999010640000"
ImHavenHart said:
There wasn't an efs folder in the root to copy over. But I did go ahead and copy the efs folder that was inside of the backup folder to the root and rebooted and my IMEI is still "004999010640000"
Click to expand...
Click to collapse
Oh did you copy it into the root of the sd card? Because I meant the root of the device.
FaultException said:
Oh did you copy it into the root of the sd card? Because I meant the root of the device.
Click to expand...
Click to collapse
I accidentally copied to the root of sd and then noticed you meant the root of the device. So I went ahead and copied to the root of the device and restarted and still have the same fake imei number. I even tried the "Recover your imei in 9 steps" tutorial and no luck. Now I'm using EFS Pro to see if I can restore or repair or something. Ugh. I just moved into my own apartment (I used to live with a male roommate) and seeing as though I am a female living alone now, I really need 911 in case of an emergency. I'm considering just buying a new phone I'm so frustrated. When I attempt to scan with EFS Pro it says "no backup to restore" even though there is a back up.
Are there multiple efs folders in the backup folder on your sd card?
FaultException said:
Are there multiple efs folders in the backup folder on your sd card?
Click to expand...
Click to collapse
Yeah there is one marked "EFS" and then about 20 others like "efs-770" "efs-759, "efs-659" etc
ImHavenHart said:
Yeah there is one marked "EFS" and then about 20 others like "efs-770" "efs-759, "efs-659" etc
Click to expand...
Click to collapse
Okay, sort by date and find the oldest one and then go and delete the contents of your root /efs folder and copy the files from the oldest efs backup into the root /efs folder then reboot and check.
FaultException said:
Okay, sort by date and find the oldest one and then go and delete the contents of your root /efs folder and copy the files from the oldest efs backup into the root /efs folder then reboot and check.
Click to expand...
Click to collapse
K I'm copying the contents now..................
FaultException said:
Okay, sort by date and find the oldest one and then go and delete the contents of your root /efs folder and copy the files from the oldest efs backup into the root /efs folder then reboot and check.
Click to expand...
Click to collapse
I sorted to the oldest, which was from December 2011 and deleted the files in the root efs and copied the files from the December 2011 backup and rebooted. Same fake IMEI Arghhhh.
ImHavenHart said:
I sorted to the oldest, which was from December 2011 and deleted the files in the root efs and copied the files from the December 2011 backup and rebooted. Same fake IMEI Arghhhh.
Click to expand...
Click to collapse
What files do you see in the efs backup and what app are you using to move them?
FaultException said:
What files do you see in the efs backup and what app are you using to move them?
Click to expand...
Click to collapse
I'm using root explorer to copy and paste the files and I see the following 14 files in the backup:
.imei
.nv2.bak
.nv2.bak.md5
.nv.data.bak
.nv.data.bak.md5
.nv_state
cryptprop_applied_result
cryptprop_data
cryptprop_onetimeboo
tcryptprop_securewipedata
imei
nv.log
nv_data.bin
nv_data.bin.md5
I'm not sure if they're pasting correctly though. It says "merging" but shows today's date for the files instead of the Dec 2011 date that shows in the backup.
I renamed the .bak files to regular ones to see if that will restore the backups, the copied them to the root efs. rebooting now.
Okay try this, download a terminal emulator or use an adb shell and run these commands:
Code:
su
rm -r /efs/*
cp -r /mnt/sdcard/backup/efs-NNN /efs
Replacing NNN with the backup from December 2011.
Then close it and reboot.
FaultException said:
Okay try this, download a terminal emulator or use an adb shell and run these commands:
Code:
su
rm -r /efs/*
cp -r /mnt/sdcard/backup/efs-NNN /efs
Replacing NNN with the backup from December 2011.
Then close it and reboot.
Click to expand...
Click to collapse
When I try to run the command it says "cannot create" because there is no more space on device. Which is weird because I dont really have anything on here.
I did double check the time from the backup that copied to the root efs and it did update so the files were copied. Same fake imei though. I'm guessing all of the backups on my phone are of the fake imei because I got the phone in June 2010 and was flashing roms within two months, yet the earliest backup is December 2011. I vaguely remember upgrading my SD Card with one that had more space. So the original imei back up is probably long gone on my old SD Card. Is there any hope for restoring my imei and getting 911 or should I just get a new phone?
FaultException said:
Okay try this, download a terminal emulator or use an adb shell and run these commands:
Code:
su
rm -r /efs/*
cp -r /mnt/sdcard/backup/efs-NNN /efs
Replacing NNN with the backup from December 2011.
Then close it and reboot.
Click to expand...
Click to collapse
I haven't done anything else to it so far, yet I rebooted and now it saya IMEI unknown / null and I can't access tmobile network at all lol
ImHavenHart said:
I haven't done anything else to it so far, yet I rebooted and now it saya IMEI unknown / null and I can't access tmobile network at all lol
Click to expand...
Click to collapse
I'm back to the fake imei and now have tmobile connection. I tried http://forum.xda-developers.com/showthread.php?t=1264021 guide with no luck. It just puts me to an "unknown imei" with no network connection. So I have to delete the efs folder and hard reset to get back to the fake imei. I also tried to install HC-ktool IMEI Recovery app and it says "problem parsing package" and won't install the app. I'm guessing it's not compatible with Stock Eclair. Im going to try upgrading to froyo and try to get the HC-ktool IMEI recovery working. If all else fails I'm honestly just going to go buy a new phone today. Ive had this since it came out June 2010 which was over 2 years ago so maybe this is a reason to upgrade to the Galaxy S II or III.
FaultException said:
Okay try this, download a terminal emulator or use an adb shell and run these commands:
Code:
su
rm -r /efs/*
cp -r /mnt/sdcard/backup/efs-NNN /efs
Replacing NNN with the backup from December 2011.
Then close it and reboot.
Click to expand...
Click to collapse
I donated to you. Thanks for helping.
After hours of trying to get my imei back I just decided to try a rom that was known to have working 911 since that's all im after any way. I went with stock Gingerbread and 911 is working. I still have the generic imei but all I wanted was 911 so I'm all good.

[Q]Need Help! Phone cant connect to carrier, no lockscreen, no power button menu

Hello xda!!
I own a GS3 i9300 and im a noob at android's and codings.
When I start the phone, I have no IMEI, cant see any carrier, I don't have lock screen and I don't have that power menu.
The only method I am using to correct this whole issue is :
-Go into Root Explorer
-Go to "/system/efs
-Copy the whole "Efs" directory
-Paste on /Efs
and voilá, it starts to work. I get everything back. The problem is I want this to be permanent, like a normal Phone. I have a rooted stock Rom. This might be simple to solve but I really don't know.
Thanks
raixa said:
Hello xda!!
I own a GS3 i9300 and im a noob at android's and codings.
When I start the phone, I have no IMEI,
Restore your backed up EFS folder .
Fix Permissions see sticky .
IMEI/ EFS see multiple posts on the subject .
jje
Click to expand...
Click to collapse
I've used fix permissions but i cant restore any EFS cause EFS pro says this "efs pro can't locate mount point"
Should I flash a new firmware and restore the EFS?
Just flashed stock firmware and Efs problem still continue.
I have the EFS backup.
The problem is that every single time my device reboots, the EFS folder appears, but has nothing inside. I can´t change permissions on the folder because root explorer wont let me.
Any solution?
raixa said:
Just flashed stock firmware and Efs problem still continue.
I have the EFS backup.
The problem is that every single time my device reboots, the EFS folder appears, but has nothing inside. I can´t change permissions on the folder because root explorer wont let me.
Any solution?
Click to expand...
Click to collapse
No firmware (stock or custom) modifies efs partition when flashed. If it was broken before, it will be when you flash stock firmware also.
You will need root access to fix this problem. If I had this problem I would flash a rom with root, busybox and as no other mods to be on the safe side (or root and install busybox on the stock one). Try to make a new file in /efs (use a file manager with root access) and reboot . The file should be there after restart. If it is the the phone is ok and you will just need to restore the backup. If it isn't you will need help from someone with more experience.
Thanks dav_991.
Just tried your solution but after the restart, there's nothing on /efs again.
One thing I noticed is that when I enter /efs folder its "mounted like R/W", but if I switch to "Mount R/O" and I get out of Root explorer, some files appear on the Efs folder. Thing is every time I restart the phone it appears mounted as R/W.
raixa said:
Thanks dav_991.
Just tried your solution but after the restart, there's nothing on /efs again.
One thing I noticed is that when I enter /efs folder its "mounted like R/W", but if I switch to "Mount R/O" and I get out of Root explorer, some files appear on the Efs folder. Thing is every time I restart the phone it appears mounted as R/W.
Click to expand...
Click to collapse
On my s3 /efs is mounted as rw by default. I do not think that this is related to your problem. To see which partition (and how) is mounted as /efs, in terminal emulator type (and grant permission when asked):
Code:
su
cat /proc/mounts | grep /efs
It should look like:
Code:
/dev/block/mmcblk0p3 /efs ext4 rw,nosuid,nodev,noatime,barrier=1,journal_async_commit,data=ordered 0 0
Yot could also post the files that are in the efs partition before and after you mounted as ro with command:
Code:
ls -la /efs >/sdcard/efs_list.txt
In phone memory you will get a file named efs_list.txt with the names of the files (every time you run the command the file is overriten, take this in consideration. Also be careful not to misspell something, you could overrite something you need).
I did some more research and ended up being the /Efs folder that wasn't mounted.
Managed to solve it by the terminal, adding the SU command.
Thanks everyone.
Best Regards,
Luis Matos

[SOLVED] Can't delete EFS folder

My IMEI is empty and phone does not read sim card.
I have read this tutorial: http://forum.xda-developers.com/galaxy-s2/general/guide-recover-imei-9-steps-t1264021
I have root access and I can see the files in EFS folder with root explorer, but can't delete any of the files. I also can't mount EFS folder to r/o.
Does anyone know the solution?
Update: I have flashed a custom rom and everything is fixed.
If you don´t have backup its a fail. You must find someone who own service box. F.E autorized serivce and pay

Where can i Find the IMEI number within the efs folder?

Currently I had damage a new phone in the process of transferring a twrp backup from my gold note 8 onto my black note 8, but now silly of me I didn't realize I tried restoring the efs partition as well causing me to have a bad partition. Now, I currently manage to fix the efs partition and solve some issues im just stuck in trying to find the file in which I can alter the IMEI as currently its 00000000000 i've checked NV_data, but I cant seem to find the offset that contains it i've tried searching it on my working phone to see if I can spot the imei so I can find the right offset, but no dice.
edit: I've solved my problem i'm not sure if it'll work for you, but what I did was root my device, delete the efs folder which eventually game "000000000" imei and the baseband wasn't appearing as unknown anymore, then within the new efs folder that was created on its own there was a folder called efsec in which it contained !svc and svc files, so I extracted these files and edit these files with notepad++ which within there was an option for imei and it showed me all 0000000 so I imputed the original imei, and finally after a reboot I reflashed stock and then flashed a combination file which when it booted up it automatically restored my imei
THORMUNZ said:
Currently I had damage a new phone in the process of transferring a twrp backup from my gold note 8 onto my black note 8, but now silly of me I didn't realize I tried restoring the efs partition as well causing me to have a bad partition. Now, I currently manage to fix the efs partition and solve some issues im just stuck in trying to find the file in which I can alter the IMEI as currently its 00000000000 i've checked NV_data, but I cant seem to find the offset that contains it i've tried searching it on my working phone to see if I can spot the imei so I can find the right offset, but no dice.
edit: I've solved my problem i'm not sure if it'll work for you, but what I did was root my device, delete the efs folder which eventually game "000000000" imei and the baseband wasn't appearing as unknown anymore, then within the new efs folder that was created on its own there was a folder called efsec in which it contained !svc and svc files, so I extracted these files and edit these files with notepad++ which within there was an option for imei and it showed me all 0000000 so I imputed the original imei, and finally after a reboot I reflashed stock and then flashed a combination file which when it booted up it automatically restored my imei
Click to expand...
Click to collapse
Thanks for the answer. I would like to clarify one point ...
I realized that you replaced the parameter "deviceID": "00000000000" in SVC and !SVC files (in the newly created /efs/ sec_efs folder) with your original IMEI.
But what does "and then flashed a combination file" mean?
With which software did you flashed the modified SVC and !SVC files?
Maybe you just replaced SVC and !SVC files with 00000000000 IMEI onto SVC and !SVC with your original IMEI via RootExplorer for ex.?

Categories

Resources