[31.12.15]IMEI(EFS)BAckup Tool N 5 I Updated for systemless root I Promo for RD/C/T

Search This thread

dr.ketan

Recognized Developer / Recognized Contributor
IMEI (EFS) BAckup Tool Note 5

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.

You needs root access to use this tool otherwise app won't open..

Location of stored file :

Device storage/MyEFS
If you unable to see backup, contact me with details of your device variant

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.
-Pro version have option to Restore with single click
-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)
-Play store version give notification in case backup not created.
-Weekly Auto backup feature available on play store version.
-PIT creator. Play store V1.1 added option to create PIT file from existing layout

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. (3644)
1.1 - Fixed for systemless root users.
 
Last edited:

dr.ketan

Recognized Developer / Recognized Contributor
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.
 

daftlush

Senior Member
Nov 12, 2009
380
23
L.A.
Nothing happens when i try to launch the app. Is that normal, or should there be a GUI? Also tried pro version.

Sent from my SM-N920T using Tapatalk
 

dr.ketan

Recognized Developer / Recognized Contributor
Nothing happens when i try to launch the app. Is that normal, or should there be a GUI? Also tried pro version.

Sent from my SM-N920T using Tapatalk
Are you sure you have rooted device? As said in op it won't open without root access.


Sent from my SM-N920I using xda premium
 

TeamHackura

Senior Member
Aug 26, 2011
547
82
OnePlus 8
i have no baseband and imei unknown after updating to latest tmo firmware and installing DarthStalker. Have backup from when i first rooted phone. will purchasing your app fix you think?
do i need to downgrade to old firmware and restore?
many thanks for all your hardwork for the community,!
 

daftlush

Senior Member
Nov 12, 2009
380
23
L.A.
Got it to work. How do i find out what to type in promt to restore?

Sent from my SM-N920T using Tapatalk
 

sshafranko

Inactive Recognized Contributor
Feb 5, 2013
5,568
4,906
Little Ferry
Guys it's in the OP...use Terminal Emulator with the commands in the OP. .
 

Attachments

  • 1446997757477.jpg
    1446997757477.jpg
    90 KB · Views: 1,024
  • Like
Reactions: nmx87

Top Liked Posts

  • There are no posts matching your filters.
  • 29
    IMEI (EFS) BAckup Tool Note 5

    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.

    You needs root access to use this tool otherwise app won't open..

    Location of stored file :

    Device storage/MyEFS
    If you unable to see backup, contact me with details of your device variant

    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.
    -Pro version have option to Restore with single click
    -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)
    -Play store version give notification in case backup not created.
    -Weekly Auto backup feature available on play store version.
    -PIT creator. Play store V1.1 added option to create PIT file from existing layout

    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. (3644)
    1.1 - Fixed for systemless root users.
    7
    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.
    2
    2
    2