How To Backup EFS Folder ? (IMEI)


Aug 27, 2013
279
20
40
#1
Hi
I want to backup my EFS Folder That contains the IMEI. (in Case of damage caused to my phone when flashing Rom's...)

My phone: Xiaomi Mi2s.
Is there a way to Backup ??
Thanks
 

redmaner

translators.xiaomi.eu maintainer
Staff member
Jan 12, 2013
534
546
182
#2
Hi
I want to backup my EFS Folder That contains the IMEI. (in Case of damage caused to my phone when flashing Rom's...)

My phone: Xiaomi Mi2s.
Is there a way to Backup ??
Thanks
There is no /efs folder on Xiaomi devices like for example Samsung devices.
I haven't seen backup methods yet.

If you update using the updater app/OTA you don't have to worry about IMEI
 
Aug 20, 2013
550
199
80
#5
just backup the m9kefs* partitions with dd
Moin,
thanks for info. I can sleep better from now.:)

For others:
Code:
su
dd if=/dev/block/platform/msm_sdcc.1/by-name/m9kefs1 of=/sdcard/m9kefs1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/m9kefs2 of=/sdcard/m9kefs2.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/m9kefs3 of=/sdcard/m9kefs3.img
 
Likes: coolajda
May 29, 2011
1,747
2,839
297
#9
open Terminal emulator or adb shell and enter davfiala's commands.
After that u'll find the backups on your virtual sdcard. You should copy them to your pc because the virtual sdcard isn't a safe place ;)
 
Likes: davfiala
Aug 27, 2013
279
20
40
#10
Ok So Tell me if will do this right:
i copy The Code and paste is in "Terminal emulator".
Then It will be in my SDcard ?! and i move it to a safe place om my pc.
This Backups the IMEI ?!

How to Restore if i need to ?
 
Aug 20, 2013
550
199
80
#11
Ok So Tell me if will do this right:
i copy The Code and paste is in "Terminal emulator".
Then It will be in my SDcard ?! and i move it to a safe place om my pc.
This Backups the IMEI ?!

How to Restore if i need to ?
Copy and paste only one row, one by one. And yes, this is backup of IMEI !?

Restoring is same but reversed:

Code:
su
dd if=/sdcard/m9kefs1.img of=/dev/block/platform/msm_sdcc.1/by-name/m9kefs1
dd if=/sdcard/m9kefs2.img of=/dev/block/platform/msm_sdcc.1/by-name/m9kefs2
dd if=/sdcard/m9kefs3.img of=/dev/block/platform/msm_sdcc.1/by-name/m9kefs3
 
Aug 27, 2013
279
20
40
#12
Copy and paste only one row, one by one. And yes, this is backup of IMEI !?

Restoring is same but reversed:

Code:
su
dd if=/sdcard/m9kefs1.img of=/dev/block/platform/msm_sdcc.1/by-name/m9kefs1
dd if=/sdcard/m9kefs2.img of=/dev/block/platform/msm_sdcc.1/by-name/m9kefs2
dd if=/sdcard/m9kefs3.img of=/dev/block/platform/msm_sdcc.1/by-name/m9kefs3
Cool :D
Just to know what does it backup ?
EFS Folder & ?