Related
I have included a script in a initd script segment to create a file called efs.autobackup.img
The forum is filled withon how to creating the .img file but i couldnt find about how to restore.Ktool doesnt work on this.
I am asking this in behalf of a fellow xda member.He got a factory efs files in some old Indian firmware, flashed it by using clear phone efs in odin and now he has some generic IMEI.How to extract the files inside the .img file atleast??
Atleast he can use the files to change his IMEI using nv_data.bin and nv_data.bin.md5
If it's a raw .img (20MB in size) kTool should work fine.
Just rename the file to "efs.img" and put it to /sdcard (root of the internal storage when mounted to the PC).
Then run a restore via kTool (be sure to use latest version).
HellcatDroid said:
If it's a raw .img (20MB in size) kTool should work fine.
Just rename the file to "efs.img" and put it to /sdcard (root of the internal storage when mounted to the PC).
Then run a restore via kTool (be sure to use latest version).
Click to expand...
Click to collapse
Yes its 20MB size!!Ohk hellcat.Am PMing him.he is a new user and he his too terified
Thank god he had flashed my ROM,The wickedrom v1.1 which had auto efs script.
I will ask him to report here.
One thing he has fake IMEI now.This should work right?
Doing a search uncovers a ton of threads/posts about restoring efs
chetan_mohanty said:
I have included a script in a initd script segment to create a file called efs.autobackup.img
The forum is filled withon how to creating the .img file but i couldnt find about how to restore.Ktool doesnt work on this.
I am asking this in behalf of a fellow xda member.He got a factory efs files in some old Indian firmware, flashed it by using clear phone efs in odin and now he has some generic IMEI.How to extract the files inside the .img file atleast??
Atleast he can use the files to change his IMEI using nv_data.bin and nv_data.bin.md5
Click to expand...
Click to collapse
MistahBungle said:
Doing a search uncovers a ton of threads/posts about restoring efs
Click to expand...
Click to collapse
I have been trying to help him with zillions of links from xda.Nothing has worked.I am not a noob man
I do the homework before posting
chetan_mohanty said:
I have been trying to help him with zillions of links from xda.Nothing has worked.I am not a noob man
I do the homework before posting
Click to expand...
Click to collapse
If the .img is OK and not already of a broken EFS, or the image itself is corrupted (all these things can happen, sadly) then it can surely be restored.
HellcatDroid said:
If the .img is OK and not already of a broken EFS, or the image itself is corrupted (all these things can happen, sadly) then it can surely be restored.
Click to expand...
Click to collapse
He is saying that restoring with efs.img makes his phone go to unknown baseband and IMEI.
I have asked him again to post it in this thread
Is there any way to extract that .img file???
chetan_mohanty said:
Is there any way to extract that .img file???
Click to expand...
Click to collapse
In a shell, type:
Code:
su
mkdir /sdcard/mnt
mount -t ext4 /sdcard/efs.img /sdcard/mnt
Then use your fav. filemanager to go to "mnt" on the internal storage.
If the mount command gives you an error, it's likely the .img is corrupted.
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..
Hi,
I'm using GT-I9300, and now I lost the IMEI. It is showing 00499010640000 / 01
I have a backup of efs folder copied using esfile explorer, dont know is it a full backup or not. Tried to copy paste back but doesnt help. Flashed different stock ROMs single file and 3 part file with pit + re-partition but those methods deosnt help me.
Some one please advice...
Regards..
Anu
anukilimanoor said:
Hi,
I'm using GT-I9300, and now I lost the IMEI. It is showing 00499010640000 / 01
I have a backup of efs folder copied using esfile explorer, dont know is it a full backup or not. Tried to copy paste back but doesnt help. Flashed different stock ROMs single file and 3 part file with pit + re-partition but those methods deosnt help me.
Some one please advice...
Regards..
Anu
Click to expand...
Click to collapse
You can restore the efs file with kTool by Hellcat, it`is in the Playstore. First place your backedup efs file in /sdcard/efs.image and then restore. Haven`t done it myself yet, and you better google it or wait for other advices by people who actualy did it. Good luck
gee2012 said:
You can restore the efs file with kTool by Hellcat, it`is in the Playstore. First place your backedup efs file in /sdcard/efs.image and then restore. Haven`t done it myself yet, and you better google it or wait for other advices by people who actualy did it. Good luck
Click to expand...
Click to collapse
Thanks for your reply.. I dont have efs.image file i have a copy of efs that I took using esfile explorer.
anukilimanoor said:
Thanks for your reply.. I dont have efs.image file i have a copy of efs that I took using esfile explorer.
Click to expand...
Click to collapse
I haven`t restored my efs ever, so i`am not 100 % sure it will work. The esfile explorer file should be an .img file i think. Betterwait for someone who knows more about this stuff. Don`t you have a working backup in cwm that you can restore and have your imei number back?
gee2012 said:
I haven`t restored my efs ever, so i`am not 100 % sure it will work. The esfile explorer file should be an .img file i think. Betterwait for someone who knows more about this stuff. Don`t you have a working backup in cwm that you can restore and have your imei number back?
Click to expand...
Click to collapse
CWM Recovery doesnt restore the IMEI. I tried that...
anukilimanoor said:
Thanks for your reply.. I dont have efs.image file i have a copy of efs that I took using esfile explorer.
Click to expand...
Click to collapse
Using es file explorer or root explorer mount system as rw and delete the current efs folder. Then copy / past the copy you saved and reboot. Original imei will show again.
Sent from my GT-I9300 using xda premium
sxi200 said:
Using es file explorer or root explorer mount system as rw and delete the current efs folder. Then copy / past the copy you saved and reboot. Original imei will show again.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
I did that but that doesnt help me...
anukilimanoor said:
I did that but that doesnt help me...
Click to expand...
Click to collapse
Did you first delete the current efs folder? Maybe try again and delete the factory folder as well and confirm the remaining efs folder has nothing in it. Then past the copy efs folder and reboot. If that doesn't work then possible you don't have a full copy.
My backup of those 2 folders have have 19 items in each when viewing in My Files. How many does yours have?
Sent from my GT-I9300 using xda premium
anukilimanoor said:
I did that but that doesnt help me...
Click to expand...
Click to collapse
What format does you backuped efs file have, tar or zip or something else.
It's easiest to do it in Recovery mode, make sure /efs and sdcard are mounted in Mounts&Storage.
Connect to the phone over ADB, then copy the contents of the backed up folder to /efs and restore permissions
Code:
cp /sdcard/YOUR/EFS/Folder/* /efs/
chown -R radio:radio /efs/
chmod -R 755 /efs
Then reboot the phone, hopefully it will work. If not, please attach the logfile from the /efs folder to the post so we can see what goes wrong.
sxi200 said:
Did you first delete the current efs folder? Maybe try again and delete the factory folder as well and confirm the remaining efs folder has nothing in it. Then past the copy efs folder and reboot. If that doesn't work then possible you don't have a full copy.
My backup of those 2 folders have have 19 items in each when viewing in My Files. How many does yours have?
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
I deleted the efs and nothing on it and did the copy paste... No luck...
maybe work maybe not...you can try to change csc code..it will totally format your phone..backup 1st to your pc..
ascariz said:
maybe work maybe not...you can try to change csc code..it will totally format your phone..backup 1st to your pc..
Click to expand...
Click to collapse
Tried that but it is not working...
d4fseeker said:
It's easiest to do it in Recovery mode, make sure /efs and sdcard are mounted in Mounts&Storage.
Connect to the phone over ADB, then copy the contents of the backed up folder to /efs and restore permissions
Code:
cp /sdcard/YOUR/EFS/Folder/* /efs/
chown -R radio:radio /efs/
chmod -R 755 /efs
Then reboot the phone, hopefully it will work. If not, please attach the logfile from the /efs folder to the post so we can see what goes wrong.
Click to expand...
Click to collapse
Log file from efs?
I have corrupted efs folder on i9100,
I now have the imie set at default 0049xx , now
When I copy back the original nv_data.bin to the efs folder ,
the imie is still 0049xx when I reboot the phone .
I have deleted the .bak files and both .md5.
I only have the nv.data file backed up .
Do I need to Chang permissions on the file before I reboot .
Any help appreciated .
Fuctifano said:
I have corrupted efs folder on i9100,
I now have the imie set at default 0049xx , now
When I copy back the original nv_data.bin to the efs folder ,
the imie is still 0049xx when I reboot the phone .
I have deleted the .bak files and both .md5.
I only have the nv.data file backed up .
Do I need to Chang permissions on the file before I reboot .
Any help appreciated .
Click to expand...
Click to collapse
Use this... Practically u need to give permissions rw-r-r (i think) but use this tool as it formats EFS partition and rebuilds it using ur backed up EFS folder..
I'll try that thanks , root explorer lets me set permissions to w/r when I copy the new bin file over .
It just seams to over write to default . How can I get the system to generate the md5 for my bin file
Anyone help me fix this if I only have the original bin file ?
Hello, i have used ktool to restore my imei, but it ereased all my efs folder files, so now it is empty. I have made my imei backup using ktool app, so i have efs.img and efs.tar.gz files.
I have tried to flash stock rom with odin but not only one of them boots, they all get bootloop. My phone only works with cm9 but it has no imei and no network.
So i need these files from efs folder, could any one help with this? Or is it possible to restore them with my back up files?
cH5 said:
Hello, i have used ktool to restore my imei, but it ereased all my efs folder files, so now it is empty. I have made my imei backup using ktool app, so i have efs.img and efs.tar.gz files.
I have tried to flash stock rom with odin but not only one of them boots, they all get bootloop. My phone only works with cm9 but it has no imei and no network.
So i need these files from efs folder, could any one help with this? Or is it possible to restore them with my back up files?
Click to expand...
Click to collapse
A simple copy and paste worked for me using root explorer.
If you have efs back ups:
Delete entire efs file on the root of you phone and reboot. Upon reboot a new efs file will automatically be created.
Copy the efs file back up and place into the newly created efs file at the root of your phone. Reboot into recovery and wipe cache.
This method restored a corrupted efs file on my s3.
alaska_ryder said:
A simple copy and paste worked for me using root explorer.
If you have efs back ups:
Delete entire efs file on the root of you phone and reboot. Upon reboot a new efs file will automatically be created.
Copy the efs file back up and place into the newly created efs file at the root of your phone. Reboot into recovery and wipe cache.
This method restored a corrupted efs file on my s3.
Click to expand...
Click to collapse
I have only two back up files: efs.img and efs.tar.gz, but efs folder should contain much more files.
I delete efs folder in the root and restart phone, but anfter restart it only creates the efs folder which is empty.
cH5 said:
I have only two back up files: efs.img and efs.tar.gz, but efs folder should contain much more files.
I delete efs folder in the root and restart phone, but anfter restart it only creates the efs folder which is empty.
Click to expand...
Click to collapse
Ok so click on efs.tar.gz and there should be the efs file. Copy that and and place into efs file at the root of your phone. Click on 'yes' when it asks if you would like to overwrite the file
alaska_ryder said:
Ok so click on efs.tar.gz and there should be the efs file. Copy that and and place into efs file at the root of your phone. Click on 'yes' when it asks if you would like to overwrite the file
Click to expand...
Click to collapse
I have done this, but after reboot all these files are deleted and efs folder remains empty.
cH5 said:
I have done this, but after reboot all these files are deleted and efs folder remains empty.
Click to expand...
Click to collapse
Ktool must of made a back up an empty folder. Don't know what to tell you. Do you have any files in storage called efs_backup? I think some recoveries or kernels automatically back up the efs file when doing a nandroid. Find the earliest back up and copy and paste.
alaska_ryder said:
Ktool must of made a back up an empty folder. Don't know what to tell you. Do you have any files in storage called efs_backup? I think some recoveries or kernels automatically back up the efs file when doing a nandroid. Find the earliest back up and copy and paste.
Click to expand...
Click to collapse
The back up is made correctly, i open .tar file and there are all these files, but when i copy them into the efs folder in root and reboot phone, these copied files are just gone.
cH5 said:
The back up is made correctly, i open .tar file and there are all these files, but when i copy them into the efs folder in root and reboot phone, these copied files are just gone.
Click to expand...
Click to collapse
I read on some other efs problem threads that flashing some newer firmware (ending with mg4 or something like that) reformats the efs file and you have to flash different firmware in order to fix from back ups. Look into other threads, they might have the proper procedures to fixing efs.
alaska_ryder said:
I read on some other efs problem threads that flashing some newer firmware (ending with mg4 or something like that) reformats the efs file and you have to flash different firmware in order to fix from back ups. Look into other threads, they might have the proper procedures to fixing efs.
Click to expand...
Click to collapse
Trying to flash firmwares and roms with these endings, but the phone doesnt boot, just stucks on samsung logo and repeats animation. It might be because i was installed leaked 4.2.2 xxufme7 firmware so it cant downgrade to 4.1.2 firmware.
cH5 said:
Trying to flash firmwares and roms with these endings, but the phone doesnt boot, just stucks on samsung logo and repeats animation. It might be because i was installed leaked 4.2.2 xxufme7 firmware so it cant downgrade to 4.1.2 firmware.
Click to expand...
Click to collapse
Just a thought are you doing a factory reset between flashes also doing a factory reset with stock recovery will wipe your entire internal sd
Have a look at EFS Pro to restore a tar .
http://forum.xda-developers.com/showthread.php?t=1308546
neilster2020 said:
Just a thought are you doing a factory reset between flashes also doing a factory reset with stock recovery will wipe your entire internal sd
Click to expand...
Click to collapse
This might be my misstake.
By the way, this is solved already. I flashes stock 4.0.4 version and used ktool to restore .img and .tar files, after reboot network came back and all efs folder files were also back, then flashed atock MG6 So now i am on this stock firmware.
But i still cant install leaked version FMU7, it gives me fake IMEI and no network, any ideas?