Related
I have root my S4 and will make a backup from efs/imei but EFS Professional not working with the S4. How can i backup efs?
is it so hard to get a copy of ur EFS folder to safe place ?
You can use TWRP recovery to get a EFS backup
Gesendet von meinem GT-I9505 mit Tapatalk 2
You can back up a whole partition with Terminal Emulator from Play Store.
This is example made for I9505 ONLY!!!!
For I9500 use mmcblk0p3 and efs.img instead!!!
Download it , and run it, then type:
Code:
su
dd if=/dev/block/mmcblk0p10 of=/mnt/sdcard/efs.img.ext4
and it will dump whole partition into one file efs.img.ext4 on your internal SD card
or
Code:
su
dd if=/dev/block/mmcblk0p10 of=/mnt/extSdCard/efs.img.ext4
to save it on external SD.
If something goes wrong and you need to restore it:
Code:
su
dd if=/mnt/sdcard/efs.img.ext4 of=/dev/block/mmcblk0p10
or
Code:
su
dd if=/mnt/extSdCard/efs.img.ext4 of=/dev/block/mmcblk0p10
Keep it safe and enjoy
djembey said:
You can back up a whole partition with Terminal Emulator from Play Store.
Download it , and run it, then type:
Code:
su
dd if=/dev/block/mmcblk0p10 of=/mnt/sdcard/efs.img
and it will dump whole partition into one file efs.img on your internal SD card
or
Code:
su
dd if=/dev/block/mmcblk0p10 of=/mnt/extSdCard/efs.img
to save it on external SD.
If something goes wrong and you need to restore it:
Code:
su
dd if=/mnt/sdcard/efs.img of=/dev/block/mmcblk0p10
or
Code:
su
dd if=/mnt/extSdCard/efs.img of=/dev/block/mmcblk0p10
Keep it safe and enjoy
Click to expand...
Click to collapse
With all respect to your post, I would like to warn people that this is not working for all the models/devices. Although it might look fine when executing the commands, it might not have made a backup of EFS, but of something else... What I know for sure is that it will not work for atleast the international i9505-model of the S4, as the partition layout is different.
In my post below, more details are given on this partition id.
http://forum.xda-developers.com/showthread.php?t=2276599
While executing your commands does not affect the device, it does not always give the people a backup they expect it to be, depending on their device/model. In my case you are able to verify which 'mmcblk' is actually efs on your device. It also gives a TAR backup as option.
Mr_Q said:
With all respect to your post, I would like to warn people that this is not working for all the models/devices. Although it might look fine when executing the commands, it might not have made a backup of EFS, but of something else... What I know for sure is that it will not work for atleast the international i9505-model of the S4, as the partition layout is different.
In my post below, more details are given on this partition id.
http://forum.xda-developers.com/showthread.php?t=2276599
While executing your commands does not affect the device, it does not always give the people a backup they expect it to be, depending on their device/model. In my case you are able to verify which 'mmcblk' is actually efs on your device. It also gives a TAR backup as option.
Click to expand...
Click to collapse
Mate... I've added that it is for I9505!!!!
I9500 have EFS located @ mmcblk0p3...........
thanks
I used GS2 repair from play store. It went through the usual process and I can see the back up file on the sd card. Can anybody more qualified confirm if this app works on S4?
Sent from my GT-I9505 using xda premium
djembey said:
Mate... I've added that it is for I9505!!!!
I9500 have EFS located @ mmcblk0p3...........
thanks
Click to expand...
Click to collapse
Great. You are right, in my case it's mmcblk0p10 as well, as mentioned correctly in my guide already.
Thank you for updating.
HANDSY said:
I used GS2 repair from play store. It went through the usual process and I can see the back up file on the sd card. Can anybody more qualified confirm if this app works on S4?
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
The best thing is to check it with the developer. I do not know what file has been created, although I expect it to be a raw copy using dd. The best thing is to do it manually. Or by the instructions given by djembey, or by the more detailed step-by-step instructions in the thread of my previous post here.
Hey, I managed to backup the EFS folder. Is there any way to modify the backup file and restore it after the modification? I want to change the IMEI number but unfortunately I have no box / cables available to do so. There must be a solution?! I am currently living in Turkey and they restrict western mobile phone usage for foreign people.
thanks a lot
cheers,
ralf
,
ralfa1234 said:
Hey, I managed to backup the EFS folder. Is there any way to modify the backup file and restore it after the modification? I want to change the IMEI number but unfortunately I have no box / cables available to do so. There must be a solution?! I am currently living in Turkey and they restrict western mobile phone usage for foreign people.
thanks a lot
cheers,
ralf
Click to expand...
Click to collapse
Same here with me
i9505 imei null
please can somebody help me,what ever I try not working.Unfortynately everything working,but always show imei null and not have baseband,of course and network too.I am install with Odin few different fabrics roms or how you call that.Last is this one with 4 files inside
I9505XXUGNG8_I9505OXXGNG2_I9505XXUGNG8_HOME.tar.Everything going fine,but havent imei like on start.I am also try few different things with EFS_Professional.but cannot fix my problem.Also I am try to erase EFS,but folder cannot erase,just files inside,and trying other one downloaded from net,but not going.Every time after reboot,EFS be back automatics,Can you help me ,please
If I am write inside EFS folder must be a file nv_data.bin ,I dot have that.Have lots of,but dont see that.I have inside few folders,like imei and etc.. And inside imei folder I have mps_code.dat.I am hope somebody can understand my problem.Can somebody sent to me that file,and can I take from other phone.Is that my solution,or what.HELP PLEASE
this is in function to my i9505,but not help me to solve problem.Somehow I not have file nv_data.bin on my phone in efs folder,and backup and restore not help me.Please do you no some solutions?
Hi Folks,
well i've just managed to recover a Galaxy S3 /EFS without JTAG and without ANY backup other than a dd of the damaged EFS partition which is /dev/block/mmcblk0p3
I am looking for other users with the following conditions
you must have a copy of you efs partition before any modifications , eg. as soon as you efs went wrong you dd'ed /dev/block/mmcblk0p3 and kept a copy before trying anything else. If you worked on the /efs before or select efs clear in oding then this wont work.
I am not going to post the solution yet, it requires more research but it's a possible solution, may even transfer to other devices with exynos and a /efs partition.
Possible ways to confirm efs damage
1. system stays on Galaxy s3 logo and does not show animated boot logo
2. cwm wont mount /efs
3. e3 recovery wont list csc files
if the above is the same as here then let me know.
No PM's please, i want to keep the work public.
darkspr1te
Sorry MODS, please move to Samsung Galaxy SIII , general, miss-post i was tired
darkspr1te said:
Hi Folks,
well i've just managed to recover a Galaxy S3 /EFS without JTAG and without ANY backup other than a dd of the damaged EFS partition which is /dev/block/mmcblk0p3
I am looking for other users with the following conditions
you must have a copy of you efs partition before any modifications , eg. as soon as you efs went wrong you dd'ed /dev/block/mmcblk0p3 and kept a copy before trying anything else. If you worked on the /efs before or select efs clear in oding then this wont work.
I am not going to post the solution yet, it requires more research but it's a possible solution, may even transfer to other devices with exynos and a /efs partition.
Possible ways to confirm efs damage
1. system stays on Galaxy s3 logo and does not show animated boot logo
2. cwm wont mount /efs
3. e3 recovery wont list csc files
if the above is the same as here then let me know.
No PM's please, i want to keep the work public.
darkspr1te
Sorry MODS, please move to Samsung Galaxy SIII , general, miss-post i was tired
Click to expand...
Click to collapse
hi this same problem has happened to me on my s4.
i have all your above listed problems.
However i do have a backup of my efs folder.
please help, thanks
I'm curious with the solution..
Cause many people had problem with efs and not having efs backup...
Sent from my GT-N7100 using xda app-developers app
starscream0 said:
hi this same problem has happened to me on my s4.
i have all your above listed problems.
However i do have a backup of my efs folder.
please help, thanks
Click to expand...
Click to collapse
I've only just got my first bricked S4 in yesterday and only completed it's screen replacement today. The screen is only damged due to owner giving up on it and litting it sit on his desk util something was dropped on it.
Anyway, my point of this is I am not ready to do S4 debrick as I 'am still working on S3.
The key behind my 'possible' recovery method is my solution involves searching for certain MAGIC's in the /EFS backup and also knowing exactly where in the efs image data would be.
For example, key areas of a EFS are in the same sector of the memory each time when looking at a mmcblk0p3 backup image,
i will use mac address as a example.
in the 5 so far efs backups i've examined the mac address is at offset 0x30000, so even if you cannot read the actual efs partition and using fsck on the mmcblk0p3 fail, my part one trick involves just going to 0x30000 and reading the data back. without the efs file system being involved. The same trick i used to recovery the blown boot sector and partition table of the SHV-E160L.
the second trick is to look for keywords within the backup img, example lets say the IMEI always had 0xAA 0xAA 0xAA before it, and the data required was 400 byte, we simply look for 0xAA 0xAA 0xAA in the file and copy it and the next 400 bytes.
the final trick I wont release yet, jumping the gun (as people do) will result in a JTAG brick, it's not perfect, its not a one click solution that we all want, but it's early days yet, but the method does work, i've 5 sammy's in front of me to prove it.
My rep in the Korean galaxy note section should prove I am not threading for likes too
Final note, Its a work in progress and I am using the forum to post my thoughts and look for Guinea pigs and attract other developers to documents the Samsung /efs system.
I am aware that parts are hashed and encrypted, the goal is not decrypting it but to recover the information to revive the device.
I am expecting users to share their /EFS backups with me, but I will not share those files with others to protect the users IMEI,
my issue is i don't have enough differing /efs files to build a bigger picture, what if the file locations was just luck ?
oh, if anyone has a copy of testdisk for arm, please share, i am fighting to get it to compile for arm-eabi-none- grrrrrr.
darkspr1te
Another note: I've not taken into account fragmentation of data in my above post, i was keeping that out of it for now, but i am aware of the EXT2/3 file table setup, how nodes can be split up.
Hi .
i have a i9500 device and my device baseband is null , IEMI is null .
Flashing official rom android 4.3 ... problem not solved ...
flashing custum rom ... problem not solved ...
downgrade to 4.2 .... problem not solved ...
flashing radio/modem ..... problem not solved ...
Remove EFS partition create again and mount again with adb shell ... problem not solved
overwrite EFS partition with another device partition . problem not solved ...
backup
EFS partition,
m9kefs1 partition ,
m9kefs2 partition,
m9kefs3 partition ,
CARRIER partition ,
CDMA-RADIO partition
RADIO partion ,
from another device with this commands
dd if=/dev/block/mmcblk0p3 of=/sdcard/efs.img
dd if=/dev/block/mmcblk0p4 of=/sdcard/efs1.bin
dd if=/dev/block/mmcblk0p5 of=/sdcard/efs2.bin
dd if=/dev/block/mmcblk0p6 of=/sdcard/efs3.bin
dd if=/dev/block/mmcblk0p7 of=/sdcard/carrier.bin
dd if=/dev/block/mmcblk0p12 of=/sdcard/cdma.bin
dd if=/dev/block/mmcblk0p13 of=/sdcard/radio.bin
then copy files to my device and restore with this command on my device
dd if=/sdcard/efs.img of=/dev/block/mmcblk0p3
dd if=/sdcard/efs1.bin of=/dev/block/mmcblk0p4
dd if=/sdcard/efs2.bin of=/dev/block/mmcblk0p5
dd if=/sdcard/efs3.bin of=/dev/block/mmcblk0p6
dd if=/sdcard/carr.bin of=/dev/block/mmcblk0p7
dd if=/sdcard/cdma.bin of=/dev/block/mmcblk0p12
dd if=/sdcard/radio.bin of=/dev/block/mmcblk0p13
BUT Problem Not Solved .....
HELP ME PLEASE
this should be in the Q&A thread bro.
first you always make an EFS Backup.
second don't restore any EFS from another device it will never work.
try this http://forum.xda-developers.com/showthread.php?t=2392632
or look for similar thread/posts as yours. goodluck :good:
I Have not any back Up ...
gonemad02 said:
this should be in the Q&A thread bro.
first you always make an EFS Backup.
second don't restore any EFS from another device it will never work.
try this http://forum.xda-developers.com/showthread.php?t=2392632
or look for similar thread/posts as yours. goodluck :good:
Click to expand...
Click to collapse
thanks ....
I did read that link ,,
but I have not any backup from my efs ...
What Should I do ?
tried flashing it back to stock? /efs folder empty right now? your last resort is to take it to your nearest service center
gonemad02 said:
tried flashing it back to stock? /efs folder empty right now? your last resort is to take it to your nearest service center
Click to expand...
Click to collapse
my efs folder is not empty ...
i restored efs from another device to this device ...
restoring another efs from another device will not do anything. because efs is related to your phone's S/N and IMEI. and it's like cloning or theft from another device. delete efs folder and reboot. if its still null imei. try reflashing stock rom. but if it does not work bring it to a samsung service center. they can fix that. or look for another forums to rewrite your whole efs including IMEI.
If your original EFS partition contents has been lost and you made no backup prior to that happening then there is nothing you can do. Flashing a stock rom won't fix it as the contents of that particular partition are unique to each phone and isn't touched when flashing.
Flash your original stock rom and take it to a service center, although make sure you format the EFS partition before hand. Just say it happened when you flashed it or something. I have even heard of one guy who's EFS was formatted just from turning on Airplane Mode, although I'm not sure he was being entirely honest about that. If your Knox flag is tripped you might find yourself on the wrong end of a bill though.
where is the baseband refrense
Pagnell said:
If your original EFS partition contents has been lost and you made no backup prior to that happening then there is nothing you can do. Flashing a stock rom won't fix it as the contents of that particular partition are unique to each phone and isn't touched when flashing.
Flash your original stock rom and take it to a service center, although make sure you format the EFS partition before hand. Just say it happened when you flashed it or something. I have even heard of one guy who's EFS was formatted just from turning on Airplane Mode, although I'm not sure he was being entirely honest about that. If your Knox flag is tripped you might find yourself on the wrong end of a bill though.
Click to expand...
Click to collapse
Hi , and thanks
Is there any way to put my imei and sn in efs folder (nv_data.bin)?
and I have a some question about BaseBand
how baseband read the baseband version (from where or form witch file or witch part of memory ) ?
and can you help me to find technical article about BaseBand and IMEI ?
sorry . if my english is not good ...
thanks ...
Hi Folks!
It is a simple guide to backup and restore efs and others partitions in your device, i use to backup IMEI and avoid " emergency calls only ".
Requirements:
Terminal Emulator
EFS Professional Backup - thanks a lot @lyriquidperfection for the great program!
BusyBox
Drivers update
USB Debugging ON
Root
Guide (BACKUP):
Open EFS Professional Backup and wait to check some requirements, then go to Backup tab;
In "Devices Filters" select 'All partitions';
In "Devices Partitions" choose: modem, efs, modemst1, modemst2, fsg, fsc, backup, dbi, ddr and pad [modemst1 and modemst2 for dual sim devices];
Then press backup button and save this file .
Guide (RESTORE):
To restore just find file in "Backup Archives" and press restore button.
Method 2 thanks for @jackeagle:
Open terminal emulator and write: su
Allow root permission if asked
Write this: dd if=/dev/block/mmcblk0p11 of=/sdcard/efs.img bs=4096
Look at your internal storage for efs.img (14 mb)
If saved your device don't forgot press thanks button
Hy, has maybe anyone a EFS file for a S5 mini duos? I would be very happy... tnx
zippyzippy said:
Hy, has maybe anyone a EFS file for a S5 mini duos? I would be very happy... tnx
Click to expand...
Click to collapse
Do not use other Device EFS Partition .. IMEI is unique for every device and every device which is manufactured will be given different IMEI no hence you cannot use any other device IMEI its against the law... if you have not done backup of efs partition then you may have to take your device to your Samsung Service Center and they will repair it for you ..
Each device has unique efs, then make backup by yourself
heloo , my problem
In "Devices Partitions" choose: modem, efs, modemst1, modemst2, fsg, fsc, backup, dbi, ddr and pad [modemst1 and modemst2 for dual sim devices];
My phone has only this item :
bota0
bota1
efs
m9kefs1
m9kefs2
m9kefs3
carrier
param
boot
recovery
ota
cdma-radio
tombstones
tdata
persdata
reserved2
system
cach
hidden
userdata
Where I have a problem ?
I do not see why modem, efs, modemst1, modemst2, fsg, fsc, backup, dbi, ddr and pad ?
thx you for your help
After a failed update and some flashing my 4G Connection is gone (sim is locked, no baseband).
Howeever I made a backup of persist.img, modemst1.img and modemst2.img months ago.
Couldn't figure out so far how to restore the files, could someone tell me how to do?
Code:
dd if=/path/to/persist.img*modemst1.img of=/path/to/persist*modemst1-partition
Thanx for the reply, so do I need to do this step 3 Times for all 3 Files?
dd if=/path/to/persist.img*modemst1.img of=/path/to/persist*modemst1-partition
would that mean then for modemst2:
dd if=/path/to/persist.img*modemst2.img of=/path/to/persist*modemst2-partition ???
Do I need another command for the persist.img too?
Sorry for asking, but I don't wanna mess up even more with my persist file.
How did you backup these partitions?
A .img file is a bit to bit copy of a partition or a drive.
Are you sure you have a backup ending with .img? That's very important for the way you restore your backup!!
If you have .img backups then you will restore them like this:
First copy your .img files to /sdcard (internal storage).
persist.img:
Code:
dd if=/sdcard/persist.img of=/dev/block/by-name/persist
modemst1.img
Code:
dd if=/sdcard/modemst1.img of=/dev/block/by-name/modemst1
modemst2.img
Code:
dd if=/sdcard/modemst2.img of=/dev/block/by-name/modemst2
Restart your device!
Thanx for the reply,
My files are definately .img files, I backed them up months ago when starting with the Custom Rom Stuff, too be (hopefully) save.
Backed them up with this 3 commands
dd if=/dev/block/mmcblk0p2 of=/sdcard/modemst1.img
dd if=/dev/block/mmcblk0p3 of=/sdcard/modemst2.img
dd if=/dev/block/mmcblk0p4 of=/sdcard/persist.img
Was long ago so I couldn't remember exactly everything in Detail.
One Question left, setting the Commands while in Bootloader, TWRP or normal in system?
Dave-C said:
Thanx for the reply,
My files are definately .img files, I backed them up months ago when starting with the Custom Rom Stuff, too be (hopefully) save.
Backed them up with this 3 commands
dd if=/dev/block/mmcblk0p2 of=/sdcard/modemst1.img
dd if=/dev/block/mmcblk0p3 of=/sdcard/modemst2.img
dd if=/dev/block/mmcblk0p4 of=/sdcard/persist.img
Was long ago so I couldn't remember exactly everything in Detail.
One Question left, setting the Commands while in Bootloader, TWRP or normal in system?
Click to expand...
Click to collapse
Are you sure you backed up mmcblk0p2/3/4?? Because these partitions are definitively not the persist or modemst ones! If you execute the commands above you will override your partitions with the wrong data!!
WoKoschekk said:
Are you sure you backed up mmcblk0p2/3/4?? Because these partitions are definitively not the persist or modemst ones! If you execute the commands above you will override your partitions with the wrong data!!
Click to expand...
Click to collapse
Yes backed up with these 3 Commands, found them somewhere in this board.
Had these commands saved on my PC, so definately used them but probably good that I didn't used them yet.
Howeever, I also have a TWRP Backup with EFS and persist files (efs1.emmc.win, efs2emmc.win, persist.ext4.win).
How could I use them, simply via TWRP or better way to do this?
Can't Believe it....
After lots of flashing (Back to Stock etc.) I got my 3G/4G/Baseband Connections back!
Could you tell me the right Commands to backup the Persist/EFS/Modem Parts?
Anyways thank you so much for patiently helping me through this.
Thanx!
Use the TWRP backups. They're perfect!
Did the TWRP Backups now.
In case you know the commands for the img output, i'd still like to know.
I'd like an independent solution, since I had two TWRP Backups each with the EFS/Partition Backup, while 1 of them was somehow not working (error output).
So i'd like to be as secure as possible.
You need the dd command to create an image of each partition. The partitions on your device are numbered consecutively:
persist= /dev/block/mmcblk0p38
modemst1= /dev/block/mmcblk0p34
modemst2= /dev/block/mmcblk0p35
Open a terminal app and type:
for persist:
Code:
dd if=/dev/block/[B]mmcblk0p38[/B] of=/sdcard/persist.img
if= input file (partition)
of= output file (.img backup)
Hello, I am having the same problem but only with a backup with no IMEI. Does anyone know how to solve this? Or to merge these two backups to form one with IMEI and stable signal. The backups are encrypted I guess because nothing makes sense in them
juampapo546 said:
Hello, I am having the same problem but only with a backup with no IMEI. Does anyone know how to solve this? Or to merge these two backups to form one with IMEI and stable signal. The backups are encrypted I guess because nothing makes sense in them
Click to expand...
Click to collapse
What kind of backup do you have?? What is a backup with no IMEI?
WoKoschekk said:
What kind of backup do you have?? What is a backup with no IMEI?
Click to expand...
Click to collapse
TWRP backup of persist and efs
When I made the backup I had no IMEI but the wifi was working (I actuall made the backup after the signal drop issue)
juampapo546 said:
TWRP backup of persist and efs
When I made the backup I had no IMEI but the wifi was working (I actuall made the backup after the signal drop issue)
Click to expand...
Click to collapse
If you don't have a backup of /persist with a IMEI then you won't be able to restore it.
https://forum.xda-developers.com/g5-plus/how-to/fix-persist-resolve-imei0-explanation-t3825147
WoKoschekk said:
If you don't have a backup of /persist with a IMEI then you won't be able to restore it.
https://forum.xda-developers.com/g5-plus/how-to/fix-persist-resolve-imei0-explanation-t3825147
Click to expand...
Click to collapse
But isn't there a way to edit the backup or merge both backups I have?
(However when I erase modemst1 and 2 IMEI comes back but with the signal drop, a fix for that would also help me)
For the right understanding:
You have two different TWRP backups for /persist and /efs. The first one restores IMEI but signal is lost and the other one restores your signal without IMEI??
WoKoschekk said:
For the right understanding:
You have two different TWRP backups for /persist and /efs. The first one restores IMEI but signal is lost and the other one restores your signal without IMEI??
Click to expand...
Click to collapse
I am so sorry I answered this late, yes that is correct and I have been using my phone with WiFi only for months now
Try to merge them manually if you know the corresponding files. I've no idea how to figure them out...
TWRP won't merge your backups.