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.
Related
Guys,
I'm totally stuck, so i'm begging for your help...
can someone please make me either an update.zip or a flashable odin .tar that will flash the following files to the /efs folder...
i'm trying to fix my phone and restore its signal and for the life of me i cant get /efs to mount as rw for me to manually change the files via root explorer or adb... it appears to become r/w, but then suddenly reverts and the changes disappear....
the zip includes 2 files, .nv_data.bak and .nv_data.bak.md5, they need to be flashed to /efs along with copies renamed to nv_data.bin and nv_data.bin.md5 respectively... so 4 files will get flashed to /efs
any help would be appreciated massively
Cheers
Dickie
EDIT: attempted an update.zip, receiving a status 6 error... giving up for today, being trying to fix this for 18hours now... if someone could look at this for me it'd be appreciated...
epic wrong choice of forum section to post this in... seriously...
yeah totally!!!
whoops!
meant to be in general
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums and Read THIS
Moving to General
Possible workaround download nitralitys app .##
http://www.appbrain.com/app/nitrality/com.nfye.insanity.toolbox
Backup EFS with this app .
Copy EFS to desktop open it and replace the files copy back
The use app to restore EFS .
jje
JJEgan said:
Possible workaround download nitralitys app .##
http://www.appbrain.com/app/nitrality/com.nfye.insanity.toolbox
Backup EFS with this app .
Copy EFS to desktop open it and replace the files copy back
The use app to restore EFS .
jje
Click to expand...
Click to collapse
thanks for the suggestion bud, but unfortunatly despite saying it restored it didnt touch it, all files still have their original dates...
Dickie
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?
This is important I think we should figure out a way asap
Sent from my GT-I9305 using xda app-developers app
install android terminal to your device
and try the command below
Code:
su
dd if=/dev/block/mmcblk0p3 of=/mnt/extSdCard/efs.img
Great I did it now I have efs.img which is 20mb is this my backup ? Jus curios how come with k-tool and i9300 it saves 2 files and much smaller. What's the difference
Sent from my GT-I9305 using xda app-developers app
compression level... if u wan a smaller file , u can download kzn or my rom and u can just backup efs with it without flashing rom..
nah 20 mb is fine thanks dude, I am just wondering why there was 2 files with the K-tool but one with this way
I am out of thanks I have been thanking the I9305 Devs all day, Dont worry another load coming your ways tomo lool
nv_data.bin not in efs folder
Hi guys,
I used Total Commander to copy my /efs directory to a backup folder within the internal sd card, so it is likely that all file permissions are retained in the efs backup. However, I did notice that my /efs directory did not contain nv_data.bin, even though my IMEI is intact. Can anyone also check whether you have nv_data.bin inside your /efs please?
No i dont have that file in that directory......Prodigiez way is excellent a nice neat Img file has been created with all the efs valuable info/data..... My Rom Is now De-Bloated, Zip_aigned/Deodexed, Rooted, Unbranded and Nandroided thanks to all these devs and my motivation
My god what rock have you lot been living under for the last year or so?
Download the POPULAR and VERY WELL KNOWN EFS Pro application from my sig.
Sent from my GT-I9305 using Tapatalk 2
there you have it, I have used your windows tool and it created the exact same EFS.img as does this command line
Code:
su
dd if=/dev/block/mmcblk0p3 of=/mnt/extSdCard/efs.img
But your software way is much easier and even has a way to restore it. thank you very much yeh i must of been living under a rock cause all i ever knew about was K-tool with my previous phone i9300, but K-tool does not work with the I9305
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums & Read the Forum Rules
Thanks ✟
Moving to Q&A
Maybe its just me but I prefer the old style copy and paste method. Using root explorer or similar I simply copy the efs and factory folders and save in multiple places (external sd, PC etc).
Sent from my GT-I9300 using xda premium
sxi200 said:
Maybe its just me but I prefer the old style copy and paste method. Using root explorer or similar I simply copy the efs and factory folders and save in multiple places (external sd, PC etc).
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
Not a good idea as you're also losing the permission bits (I take it your external SD is a variety of the FAT file system and your PC NTFS). For example, nv_data.bin has a mode of 0700 and is owned by radio:radio. Say your /efs folder gets wiped and you then copy back your efs folder from your backup. The file (since the umask seems to be 077) will now have the mode as 0600 and be owned by root (because you'd be using Root Explorer/Terminal Emulator to copy back the files which runs as root and not radio). Whatever process (presumably running under the user radio) that looks at that file now may not be able to do so now it's owned by root.
With a tar backup, you're still preserving the permissions which are just as important as the files themselves (though you could look at another GS3 to figure out the correct permissions, granted). With a backup to an image using dd, well, it's the raw partition so I imagine everything on /efs gets backed up.
qwerty12 said:
Not a good idea as you're also losing the permission bits (I take it your external SD is a variety of the FAT file system and your PC NTFS). For example, nv_data.bin has a mode of 0700 and is owned by radio:radio. Say your /efs folder gets wiped and you then copy back your efs folder from your backup. The file (since the umask seems to be 077) will now have the mode as 0600 and be owned by root (because you'd be using Root Explorer/Terminal Emulator to copy back the files which runs as root and not radio). Whatever process (presumably running under the user radio) that looks at that file now may not be able to do so now it's owned by root.
With a tar backup, you're still preserving the permissions which are just as important as the files themselves. With a backup to an image using dd, well, it's the raw partition so I imagine everything on /efs gets backed up.
Click to expand...
Click to collapse
Thanks for that useful post, answered a couple of queries I had :thumbup:
qwerty12 said:
Not a good idea as you're also losing the permission bits (I take it your external SD is a variety of the FAT file system and your PC NTFS). For example, nv_data.bin has a mode of 0700 and is owned by radio:radio. Say your /efs folder gets wiped and you then copy back your efs folder from your backup. The file (since the umask seems to be 077) will now have the mode as 0600 and be owned by root (because you'd be using Root Explorer/Terminal Emulator to copy back the files which runs as root and not radio). Whatever process (presumably running under the user radio) that looks at that file now may not be able to do so now it's owned by root.
With a tar backup, you're still preserving the permissions which are just as important as the files themselves (though you could look at another GS3 to figure out the correct permissions, granted). With a backup to an image using dd, well, it's the raw partition so I imagine everything on /efs gets backed up.
Click to expand...
Click to collapse
I've used the copy / paste method on S1, S2 and S3 and copying the folders / files back manually with root explorer works all the time. Haven't had any issues with permissions.
I test by purposely corrupting my imei (yes I'm crazy) and copying the backup back and all is good. Mind you I also have the auto generated tar backup as well but still prefer the copy / paste method.
Sent from my GT-I9300 using xda premium
Fair enough, I'd just rather restore from a tar backup since I believe there's a reason why nv_data.bin for example is owned by radio, but good to know it works.
Sent from my GT-I9300 using Tapatalk 2
qwerty12 said:
Fair enough, I'd just rather restore from a tar backup since I believe there's a reason why nv_data.bin for example is owned by radio, but good to know it works.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Well I just checked 2 phones:
S1: I have previously restored the efs folder via copy / paste and the current owner is 'system'.
S3: It's my second S3. Unlike my first unit I haven't repasted the efs folder. Owner is 'radio'.
Conclusion is that you are correct about permissions not copying over correctly with the copy / paste method. It's an easy fix via root explorer to change if required, but not ideal especially for noobs.
Fortunately the change in owner didn't cause any issues but still probably best to use the tar method as you suggest just in case.
Thanks for the info.
Sent from my GT-I9300 using xda premium
Read this....very useful
http://forum.xda-developers.com/showthread.php?p=30682712
btemtd said:
This is important I think we should figure out a way asap
Sent from my GT-I9305 using xda app-developers app
Click to expand...
Click to collapse
Well, obviously, you copy the contents of the efs partition
Code:
/efs
and zip it into a tar ball.
Then you put it safely onto your dropbox and voilà.
Hope I could help!
LG familyguy59/Beatsleigher
does nandroid backup saves EFS as well?
in my backup folder I have these two files:
efsbackup.tar.gz
efsdev-mmcblk0p3.img.gz
but I dont remember backing them up
Problem solved!
**********************
I think my problem happened because a flashed a ROM with MG4 baseband, and then flashed UltimaROM with another baseband which caused my baneband to corrupt.
I tried to flash Stock ROM and install different baseband but non of this worked.
finally I flashed BTU stock ROM (Which comes with MG4) but the problem still here.
Then I installed root, deleted the efs folder and replaced all the files with the files in the backup - restart and everything is working! my IMEI returned to normal.
**********************
Original question
Hello devs,
I have Siyah kernel which auto backup my EFS, i have backup named "efs_28Aug2013-1852.tar.gz"
I want to restore from this backup because I lost my IMEI when I flashed UltimaROM
I renamed it to "efsbackup.tar.gz" and put it in the root of the sdcard
then I started adb shell & run the code
Code:
su
umount /efs
mke2fs /dev/block/mmcblk0p1
mount -w -t ext4 /dev/block/mmcblk0p1 /efs
busybox tar zxvf /sdcard/ efsbackup.tar.gz -C /
I granted ADB shell root access
then i went to recovery and run the command (because I can't run umount /efs while device's running it gives resource busy message)
However when I run the first command "su" in gives me this message
Code:
/sbin/sh: su: not found
so I skipped to the next command
but I get the message
Code:
umount: can't umount /efs: Invalid argument
Please guys any help appreciated
Click to expand...
Click to collapse
Unzip it with a file manager and use a root explorer to replace manually
Sent from my GT-I9300 using Tapatalk 4
.
I've backup my efs with adb but how do you have a file on tar format, i've got a file on .img, it's normal ?
There's about nine different ways to backup the efs, .img is fine but a little on the large side at 20mb. A .tar of the same is only 5mb.
rootSU said:
Unzip it with a file manager and use a root explorer to replace manually
Sent from my GT-I9300 using Tapatalk 4
Click to expand...
Click to collapse
Thank you for your reply, I did as you said but this only changed my IMEI from "Unknown" to the generic IMEI "004999..."
Is there something wrong in the method or my backup may be corrupt
Sent from my Nexus 7 using Tapatalk 2
Read the imei / efs thread in general.
Sent from my GT-I9300 using Tapatalk 4
Thank you again, I read the thread in the past but it looks like it has been updated recently.
I think my problem happened because a flashed a ROM with MG4 baseband, and then flashed UltimaROM with another baseband which caused my baneband to corrupt.
I tried to flash Stock ROM and install different baseband but non of this worked.
finally I flashed BTU stock ROM (Which comes with MG4) but the problem still here.
Then I installed root, deleted the efs folder and replaced all the files with the files in the backup - restart and everything is working! my IMEI returned to normal.
Thank you RootSU for your help.
hey bro,
i am stuck
help me out
- my efs(folder) is blank
- i installed stock with pit file but no help!
- right now my cell is in bootloop!
- it goes to recovery, download mode.
i have efs.tar.gz file and a folder named efs in my ext sd
how do i copy that to int memory?
can't even create a cwm flashable zip file of the same?????
help me bro.....
You are posting in a thread that tells you how to restore an efs backup, how much more could you possibly need?
Go to recovery, factory reset.
Get the phone to boot, unpack the .tar file and follow the instructions in the OP.
boomboomer said:
You are posting in a thread that tells you how to restore an efs backup, how much more could you possibly need?
Go to recovery, factory reset.
Get the phone to boot, unpack the .tar file and follow the instructions in the OP.
Click to expand...
Click to collapse
Dear boomboomer,
i am sorry, but my phone is in "bootloop" how am i suppose to delete the "EFS" ? that s what i am asking!!!!!
i have both efs.tar.gz and extracted folder ready in my ext-sd......
i wonder if somebody can help me with creating a cwm.zip from the .tar file
thanks ....
try to install stock again via odin but this time install a diffrent version (for example if you installed INU this time try INS).. before that factory reset your phone and wipe cache via recovery mode.. don't lose your efs backup it's very important copy it to your PC in case something wrong happens
i already did so
almousawi said:
try to install stock again via odin but this time install a diffrent version (for example if you installed INU this time try INS).. before that factory reset your phone and wipe cache via recovery mode.. don't lose your efs backup it's very important copy it to your PC in case something wrong happens
Click to expand...
Click to collapse
bro, thanks for your help recently i tried cm 10 also but nothing happened.
believe me i tried everything now the only option is left that is
to restore efs backup from efs.tar.gz (which is about 12 MB)
OR
create a cwm flashable zip from the efs folder which is about 22 MB)
OR
take my phone to download mode and try to push whole "efs" folder to the location with help of "ADB"
hello
mikks said:
bro, thanks for your help recently i tried cm 10 also but nothing happened.
believe me i tried everything now the only option is left that is
to restore efs backup from efs.tar.gz (which is about 12 MB)
OR
create a cwm flashable zip from the efs folder which is about 22 MB)
OR
take my phone to download mode and try to push whole "efs" folder to the location with help of "ADB"
Click to expand...
Click to collapse
hello nobody is here to help......??????
mikks said:
hello nobody is here to help......??????
Click to expand...
Click to collapse
Correct this is not a paid for service .
Suggest you take it to a service centre .
know that i did that already....
JJEgan said:
Correct this is not a paid for service .
Suggest you take it to a service centre .
Click to expand...
Click to collapse
thanks for the reply, respect to your reply and interest no disrespect ...
i took that to the center but they failed and by the way they come to me in some cases... so they give me free service...
my phone is in boot loop, i have efs.tar.... can i use phills recovery ????? or can i use someone elses backup... just to boot up my device ...then i'll be good .... i just need to get my device booted up.....
I have my EFS backup as a .tar.gz. After I extracted it shows me several files. I think, I should copy/push all these files to /efs folder. But the problem is I have no idea about the zip file contain updater-script.
How to I make a updater-script?
Thanks!
android addicts said:
I have my EFS backup as a .tar.gz. After I extracted it shows me several files. I think, I should copy/push all these files to /efs folder. But the problem is I have no idea about the zip file contain updater-script.
How to I make a updater-script?
Click to expand...
Click to collapse
1) the search will give this answers
2) .tar files can be flashed with Odin as "PDA"
3) The normal method is here
If you Have a Backup and you want to restore it, this is one method
1) Download Root Explorer, or Xplore, or any root browser from Play Store and use it to
2) Search you internal SD card for sdcard/backup/efs or any other backup you have for your efs
3) Copy nv_data.bin, nv_data.bin.md5 paste them (means overwrite existing files) into /efs in your Internal Phone memory
4) Fix permissions by Click on efs folder and keep it pressed to open the menu and click on permissions and set them to rw_r_r_ ( Owner = read & write - Group = read only and Others = Read only), after this Save using menu and exit using menu
5) Power down phone and reboot into recovery and wipe cache before rebooting phone to get back your original IMEI
Click to expand...
Click to collapse
Check this out! Links to useful Guides and " Banned " Documentaries
xsenman said:
1) the search will give this answers
2) .tar files can be flashed with Odin as "PDA"
3) The normal method is here
Check this out! Links to useful Guides and " Banned " Documentaries
Click to expand...
Click to collapse
Thanks xsenman. Looks like my CWM zip not working. I added a sample test file inside the efs folder, but after flash the zip, it still remain in there. My update-script file has delete("/efs/"); command.
android addicts said:
Thanks xsenman. Looks like my CWM zip not working. I added a sample test file inside the efs folder, but after flash the zip, it still remain in there. My update-script file has delete("/efs/"); command.
Click to expand...
Click to collapse
sorry man, I do not want to mess with this command or file, as it can cause serious problems for you. . Since this deals with IMEI, it would also be illegal in this server (XDA) but not others.( MOD's would be inclined to close it where editing or deleting of IMEI is discussed) Like I already mentioned earlier the root explorer method would be the safest way to overwrite existing IMEI. and Odin3 has a phone EFS clear function.
Check this out! Links to useful Guides and " Banned " Documentaries
Ops i guess you misunderstands. I don't want edit my SGS3 IMEI. Because I already have my i9300 working efs backup. I want to make CWM flashable EFS restore zip file (my phone efs).
Yesterday after I reseted flash counter my efs wiped. Then I can't even boot ( can boot into cwm)
After that I had to flash Samsung firmware and restore my old efs backup using root file app (like you mentioned this thread, yes its easier).
Normally I use aosp (CM) ROM. Specially cm. In future if it again wipeout my efs folder, I want to flash my backup efs using cwm (without flashing stock firmware with Odin). Its faster.
In my previous post I mention added a sample file mean, I added a text file to that zip. Not a edited or hacked nv_data.bin and nv_data.bin.md5 files .
I guess this is not an illegal.
Sent from my GT-I9300 using Tapatalk
very informative, im glad i was turned on this topic. i learned alot.. thanks..