How To Backup EFS Folder ? (IMEI)

Discussion in 'Xiaomi Mi 2 / Mi 2S' started by letsfifa, Sep 15, 2013.

  1. letsfifa

    letsfifaMembers

    Aug 27, 2013
    279
    20
    40
    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
     
  2. redmaner

    redmanertranslators.xiaomi.eu maintainer
    Staff Member

    Jan 12, 2013
    533
    547
    180
    Male
    The Netherlands
    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
     
  3. letsfifa

    letsfifaMembers

    Aug 27, 2013
    279
    20
    40
    But if flash with ClockworkMod Recovery
    flashing ROM's Will it be safe ?
     
  4. just backup the m9kefs* partitions with dd
     
    dextructor and davfiala like this.
  5. davfiala

    davfialaMembers

    Aug 20, 2013
    550
    199
    80
    Male
    Land Rover addict
    Czech Republic
    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
     
    coolajda likes this.
  6. letsfifa

    letsfifaMembers

    Aug 27, 2013
    279
    20
    40
    What ?!
     
  7. davfiala

    davfialaMembers

    Aug 20, 2013
    550
    199
    80
    Male
    Land Rover addict
    Czech Republic
    Check my post above ;)
     
  8. letsfifa

    letsfifaMembers

    Aug 27, 2013
    279
    20
    40
    I still don't understand a thing that is there :\
    Please can you explain to me ? Iam very basic with this things....
     
  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 ;)
     
    davfiala likes this.
  10. letsfifa

    letsfifaMembers

    Aug 27, 2013
    279
    20
    40
    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 ?
     
  11. davfiala

    davfialaMembers

    Aug 20, 2013
    550
    199
    80
    Male
    Land Rover addict
    Czech Republic
    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 
     
  12. letsfifa

    letsfifaMembers

    Aug 27, 2013
    279
    20
    40
    Cool :D
    Just to know what does it backup ?
    EFS Folder & ?
     
  13. davfiala

    davfialaMembers

    Aug 20, 2013
    550
    199
    80
    Male
    Land Rover addict
    Czech Republic
    It make backup of whole EFS partition.
     
    tenchi0205 likes this.
  14. letsfifa

    letsfifaMembers

    Aug 27, 2013
    279
    20
    40
    Ok !
    I did it and it made 3 Files:
    m9kefs1.img
    m9kefs2.img
    m9kefs3.img

    Thats Right ?
     
  15. Pavel Zeldin

    Mar 29, 2013
    85
    20
    18
    Male
    yes.
    just copy them to your pc, and keep them somewhere safe, just in case your phone will go bananas.
     
  16. letsfifa

    letsfifaMembers

    Aug 27, 2013
    279
    20
    40
    I have To say Thank you all for your Help :D
     
  17. tenchi0205

    tenchi0205Members

    Oct 30, 2011
    109
    6
    28
    Male
    Dietitian
    Malaysia
    I got this error,
    cannot open for read: no such file or directory
     
  18. davfiala

    davfialaMembers

    Aug 20, 2013
    550
    199
    80
    Male
    Land Rover addict
    Czech Republic
    On which phone? It is working only on Mi2(Mi1 probably) devices. Not on SGS2.
     
  19. tenchi0205

    tenchi0205Members

    Oct 30, 2011
    109
    6
    28
    Male
    Dietitian
    Malaysia
    Mi2S

    I use Android Terminator Emulator from Play Store
     
  20. davfiala

    davfialaMembers

    Aug 20, 2013
    550
    199
    80
    Male
    Land Rover addict
    Czech Republic
    Check this path /dev/block/platform/msm_sdcc.1/by-name/m9kefs*
    It must be present in phone or you have fake.
     
  21. tenchi0205

    tenchi0205Members

    Oct 30, 2011
    109
    6
    28
    Male
    Dietitian
    Malaysia
    I can see those files with root explorer...can I just direct copy those files out?
     
  22. davfiala

    davfialaMembers

    Aug 20, 2013
    550
    199
    80
    Male
    Land Rover addict
    Czech Republic
    No, you have to copy it out with dd command. Try it again, but now without typos ;)
     
  23. tenchi0205

    tenchi0205Members

    Oct 30, 2011
    109
    6
    28
    Male
    Dietitian
    Malaysia
    tried 3 times :(
     
  24. davfiala

    davfialaMembers

    Aug 20, 2013
    550
    199
    80
    Male
    Land Rover addict
    Czech Republic
    Have you enabled su permissions?
     
  25. tenchi0205

    tenchi0205Members

    Oct 30, 2011
    109
    6
    28
    Male
    Dietitian
    Malaysia
    I enable all permission inside the permission icon...is that count?
     

Share Our Site