• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[2.0][15Feb16]EFS (IMEI) [N910/N915]Backup tool - updated for systemless root.

Search This thread

dr.ketan

Recognized Developer / Recognized Contributor
EFS (IMEI) Backup tool N910U/F/L/K/C/P/T/G/H/R/6W/8W N915G(note4 Edge)(support to other variant soon)

attachment.php
attachment.php


This is simple EFS backup tool. We are very well knowing about what EFS is and why it is MUST to backup on every rooted device. If you don't know then Read this.

Right now this tool support only SM-910U and support to other variant will be added when it is available.

Download :

Pro Version

XDA version (free)- Attached at end of this post.

Difference between Free/Play store

-Both version makes backup in same format and no difference in backup.
-Free version will save file in MyEFS and if you make next backup it will replace older one. While play store version everytime creates new folder with date ,Time and your IMEI stamp so you can keep multiple backup as well no confulsion about which backup is made when and on which device. Also it makes copy of build.prop so you can get idea you were on which ROM when backup created)
-On free version you have to select option according your device model, if you select wrong your EFS backup will be wrong On play store version it will auto detect your model and make backup accordingly. In case your model not supported it will give warning msg.
-Play store version give notification in case backup not created OR you select wrong model and will have option to contact developer in such case.
-Weekly Auto backup feature available on play store version.

This tool using generic name of partition block and you can restore with simple adb shell

dd if=/path of backup files/ of=/partition block according your device

ChangeLog
1.0 - Initial release for N910U
1.1 - Updated for making backup of other efs related partition as well added support for N910F (all 1.0 user request to make new backup with new version)
1.2 - Added support for N910K
1.3 - Added support for N910C
1.4 - Added support for N910P
1.5 - Added support for N910T and N910G
1.6 - Added support for N910H/R/W8/6W
1.7 - Added support for N910L
1.8 - (Major Update - Recommended for all to update)
-Added support for N9100
-Backup location changed to IntSD/MyEFS for ready to use Pro version (now both have same location)
-Now it removes old backup before creating new backup to insure that created backup is new. still you can check date of created files)
1.9 - Added support for N915G (Note4 Edge)
2.0 - Added support for system less root. New UI.

XDA:DevDB Information
Dr.Ketan IMEI Tool, ROM for the Samsung Galaxy Note 4

Contributors
dr.ketan
ROM OS Version: 4.4.x KitKat

Version Information
Status: Stable

Created 2014-11-19
Last Updated 2017-04-05
 
Last edited:

dr.ketan

Recognized Developer / Recognized Contributor
EFS Info

What is EFS

This part of the device contains some important and some basic info related to our device identity like Bluetooth MAC address, wireless devices MAC addresses, product code (also in the nv_data.bin) and the very main IMEI address (nv_data.bin), programming parameters for the device such as your account information (phone number, etc), data provisioning parameters, and a whole bunch of other things. So you can guess it's will be different for each device and one can't use others. In latest samsung device this information store in other partition so requires to make backup of that partition too.

How it can corrupt :

- Any bad flashing, mishandling system modification can cause this.
- Also It can be corrupted by downgrading stock ROM. If you flash any old ROM on newer ROM it can corrupt EFS. Basically newer ROM believed to have new kernel that changes EFS data which older Modems can't read and results to fail in reading IMEI.

Impact on device/How I know I have corrupted EFS

When there is EFS partition is corrupted, device loses IMEI and due to this device can't gets connected to network. Baseband info also sometimes shows unknown.
-Check your IMEI in setting / by dialling *#06# if it is null OR if it starts with 0049** then IMEI is generic and corrupted. In Normal case IMEI which you can see in device setting or dialing *#06# is exactly same you can see on bill/box/sticker under battery compartment
-If you are unable to connect to network in spite of correct IMEI, chance are
A. Your device is Locked to specific Network OR
B. Your device is banned due to tempered IMEI
-If your AP,CP,CSC all are correct and even you are getting error (unknown CSC XXX) on kies update, it may be due to corrupt Product code in EFS. Read This for detail.

What care should i take
Before flashing anything, first thing you should do is to make EFS backup. Every person who have rooted device should make EFS backup earliest and place it to safer place on PC and /Cloud.
If you are on older ROM, make EFS backup on older ROM as well make another after upgrading ROM too.
If you have already updated to newer ROM, make backup on current ROM.

Exit "Permanent Safe Mode" This condition represent with loss of IMEI + yellow text box on homescreen with device info.here is Screenshot

attachment.php


Here is different method to remove it.

Method1 :
Open root explorer.
Navigate to /efs/FactoryApp/
Open "factorymode" file as Text and edit it:
Change this:

Code:
OFF
To:
Code:
ON

Open "keystr" file as Text and edit it:
Code:
OFF
To:

Code:
ON
Reboot device.

Method2:

Open Terminal emulator
Write the following:
Code:
su
Then click enter. It will ask for super user permission, give it permissions.
Write the following & click enter:
Code:
rm /efs/FactoryApp/keystr
Write the following & click enter:

Code:
rm /efs/FactoryApp/factorymode
Write the following & click enter:

Code:
echo -n ON >> /efs/FactoryApp/keystr
Write the following & click enter:

Code:
echo -n ON >> /efs/FactoryApp/factorymode
Write the following & click enter:

Code:
chown 1000.1000 /efs/FactoryApp/keystr
Write the following & click enter:

Code:
chown 1000.1000 /efs/FactoryApp/factorymode
Write the following & click enter:

Code:
chmod 0744 /efs/FactoryApp/keystr
Write the following & click enter:

Code:
chmod 0744 /efs/FactoryApp/factorymode
Reboot your device


Method3

Install attached safemode_exit apk as regular app. Open from drawer - Grant su permission - Reboot when asked.


e:failed to mount /efs(invalid argument) error with bootloop

This condition usually happens with using unsupported tool (usually from play store).

To recover this, needs to use adb shell


Code:
adb shell
 mke2fs / dev/block/mmcblk0p[COLOR="Red"]x[/COLOR]
 mount-w-t ext4 / dev/block/mmcblk0p[COLOR="red"]x[/COLOR] / efs

x means your device EFS partition number

PS : It needs CWM and busybox installed.
 

Attachments

  • safemod.jpeg
    safemod.jpeg
    71.7 KB · Views: 211,434
  • Safemod_Exit_1.0.apk
    1 MB · Views: 8,537
Last edited:

ipsuvedi

Senior Member
Feb 9, 2012
1,393
656
Mumbai
Thanks doc!

This basic thing and most important thing! :thumbup:

With this, This tool will help people.

..hope it will decrease the number of people reporting: I lost my imei or I lost network connectivity after so and so...how can I.... ? :D

Sent from my Note ? using xda premium
 
Last edited:
  • Like
Reactions: quan_1986

19stephan77

Senior Member
Dec 24, 2012
163
18
[quote name="dr.ketan" post=56004124]Do you have N910F with root access? <br />
<br />
<br />
Sent from my SM-N900 using xda premium[/QUOTE]<br />
<br />
Dr, for SM-910F if i could help..<br/>

Yes I have N910F rootet. Does it work?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 72
    EFS (IMEI) Backup tool N910U/F/L/K/C/P/T/G/H/R/6W/8W N915G(note4 Edge)(support to other variant soon)

    attachment.php
    attachment.php


    This is simple EFS backup tool. We are very well knowing about what EFS is and why it is MUST to backup on every rooted device. If you don't know then Read this.

    Right now this tool support only SM-910U and support to other variant will be added when it is available.

    Download :

    Pro Version

    XDA version (free)- Attached at end of this post.

    Difference between Free/Play store

    -Both version makes backup in same format and no difference in backup.
    -Free version will save file in MyEFS and if you make next backup it will replace older one. While play store version everytime creates new folder with date ,Time and your IMEI stamp so you can keep multiple backup as well no confulsion about which backup is made when and on which device. Also it makes copy of build.prop so you can get idea you were on which ROM when backup created)
    -On free version you have to select option according your device model, if you select wrong your EFS backup will be wrong On play store version it will auto detect your model and make backup accordingly. In case your model not supported it will give warning msg.
    -Play store version give notification in case backup not created OR you select wrong model and will have option to contact developer in such case.
    -Weekly Auto backup feature available on play store version.

    This tool using generic name of partition block and you can restore with simple adb shell

    dd if=/path of backup files/ of=/partition block according your device

    ChangeLog
    1.0 - Initial release for N910U
    1.1 - Updated for making backup of other efs related partition as well added support for N910F (all 1.0 user request to make new backup with new version)
    1.2 - Added support for N910K
    1.3 - Added support for N910C
    1.4 - Added support for N910P
    1.5 - Added support for N910T and N910G
    1.6 - Added support for N910H/R/W8/6W
    1.7 - Added support for N910L
    1.8 - (Major Update - Recommended for all to update)
    -Added support for N9100
    -Backup location changed to IntSD/MyEFS for ready to use Pro version (now both have same location)
    -Now it removes old backup before creating new backup to insure that created backup is new. still you can check date of created files)
    1.9 - Added support for N915G (Note4 Edge)
    2.0 - Added support for system less root. New UI.

    XDA:DevDB Information
    Dr.Ketan IMEI Tool, ROM for the Samsung Galaxy Note 4

    Contributors
    dr.ketan
    ROM OS Version: 4.4.x KitKat

    Version Information
    Status: Stable

    Created 2014-11-19
    Last Updated 2017-04-05
    13
    EFS Info

    What is EFS

    This part of the device contains some important and some basic info related to our device identity like Bluetooth MAC address, wireless devices MAC addresses, product code (also in the nv_data.bin) and the very main IMEI address (nv_data.bin), programming parameters for the device such as your account information (phone number, etc), data provisioning parameters, and a whole bunch of other things. So you can guess it's will be different for each device and one can't use others. In latest samsung device this information store in other partition so requires to make backup of that partition too.

    How it can corrupt :

    - Any bad flashing, mishandling system modification can cause this.
    - Also It can be corrupted by downgrading stock ROM. If you flash any old ROM on newer ROM it can corrupt EFS. Basically newer ROM believed to have new kernel that changes EFS data which older Modems can't read and results to fail in reading IMEI.

    Impact on device/How I know I have corrupted EFS

    When there is EFS partition is corrupted, device loses IMEI and due to this device can't gets connected to network. Baseband info also sometimes shows unknown.
    -Check your IMEI in setting / by dialling *#06# if it is null OR if it starts with 0049** then IMEI is generic and corrupted. In Normal case IMEI which you can see in device setting or dialing *#06# is exactly same you can see on bill/box/sticker under battery compartment
    -If you are unable to connect to network in spite of correct IMEI, chance are
    A. Your device is Locked to specific Network OR
    B. Your device is banned due to tempered IMEI
    -If your AP,CP,CSC all are correct and even you are getting error (unknown CSC XXX) on kies update, it may be due to corrupt Product code in EFS. Read This for detail.

    What care should i take
    Before flashing anything, first thing you should do is to make EFS backup. Every person who have rooted device should make EFS backup earliest and place it to safer place on PC and /Cloud.
    If you are on older ROM, make EFS backup on older ROM as well make another after upgrading ROM too.
    If you have already updated to newer ROM, make backup on current ROM.

    Exit "Permanent Safe Mode" This condition represent with loss of IMEI + yellow text box on homescreen with device info.here is Screenshot

    attachment.php


    Here is different method to remove it.

    Method1 :
    Open root explorer.
    Navigate to /efs/FactoryApp/
    Open "factorymode" file as Text and edit it:
    Change this:

    Code:
    OFF
    To:
    Code:
    ON

    Open "keystr" file as Text and edit it:
    Code:
    OFF
    To:

    Code:
    ON
    Reboot device.

    Method2:

    Open Terminal emulator
    Write the following:
    Code:
    su
    Then click enter. It will ask for super user permission, give it permissions.
    Write the following & click enter:
    Code:
    rm /efs/FactoryApp/keystr
    Write the following & click enter:

    Code:
    rm /efs/FactoryApp/factorymode
    Write the following & click enter:

    Code:
    echo -n ON >> /efs/FactoryApp/keystr
    Write the following & click enter:

    Code:
    echo -n ON >> /efs/FactoryApp/factorymode
    Write the following & click enter:

    Code:
    chown 1000.1000 /efs/FactoryApp/keystr
    Write the following & click enter:

    Code:
    chown 1000.1000 /efs/FactoryApp/factorymode
    Write the following & click enter:

    Code:
    chmod 0744 /efs/FactoryApp/keystr
    Write the following & click enter:

    Code:
    chmod 0744 /efs/FactoryApp/factorymode
    Reboot your device


    Method3

    Install attached safemode_exit apk as regular app. Open from drawer - Grant su permission - Reboot when asked.


    e:failed to mount /efs(invalid argument) error with bootloop

    This condition usually happens with using unsupported tool (usually from play store).

    To recover this, needs to use adb shell


    Code:
    adb shell
     mke2fs / dev/block/mmcblk0p[COLOR="Red"]x[/COLOR]
     mount-w-t ext4 / dev/block/mmcblk0p[COLOR="red"]x[/COLOR] / efs

    x means your device EFS partition number

    PS : It needs CWM and busybox installed.
    9
    Updated to 1.3
    -Added support for N910C
    3
    Other model user have rooted device contact me to add support for their device.
    3
    Hopefully people will read this.