[TUT] [ROOT] Backup restore IMEI manually

Search This thread

Sector1369

Senior Member
Jan 16, 2013
53
55
Kolhapur
Automatic Backup Restore IMEI TOOL by Sector1369 is HERE .
(Only Require Custom recovery)

Automatic backup restore CMD script added by "deadlyindian" at Post#5
(Require PC ,ADB drivers & Root permissions )



If you still want to do this manually, look below
IMEI backup of redmi 1s
Require ROOT permissions

We all known that EFS partition holds the imei,sn ,wifi mac & other important data.
In Snapdragon the EFS partition are modemst1 ,modemst2 & FSG partitions. so it's important to take backup of these partitions.
1.connect your phone to PC , adb debugging enabled & goto adb shell by,

Code:
adb shell su
OR
Open terminal emulator app in your phone & take super user permissions, by
Code:
su

2.type following commands to backup imei partitions.
Code:
dd if=/dev/block/mmcblk0p16 of=/sdcard/mmcblk0p16_modemst1
dd if=/dev/block/mmcblk0p17 of=/sdcard/mmcblk0p17_modemst2
dd if=/dev/block/mmcblk0p20 of=/sdcard/mmcblk0p20_fsg
also these are some important partition you should consider to backup.
modem, fsc, bk1, ddr.

Code:
dd if=/dev/block/mmcblk0p23 of=/sdcard/mmcblk0p23_modem
dd if=/dev/block/mmcblk0p9 of=/sdcard/mmcblk0p9_DDR
dd if=/dev/block/mmcblk0p12 of=/sdcard/mmcblk0p12_bk1
dd if=/dev/block/mmcblk0p18 of=/sdcard/mmcblk0p18_fsc

Now the backup is stored in you internal storage ,store these files in safe place.
in case u get invalid imei or unknown, restore these partitions.
To restore these partitions,

Code:
dd if=/sdcard/mmcblk0p16_modemst1 of=/dev/block/mmcblk0p16
dd if=/sdcard/mmcblk0p17_modemst2 of=/dev/block/mmcblk0p17
dd if=/sdcard/mmcblk0p20_fsg of=/dev/block/mmcblk0p20
dd if=/sdcard/mmcblk0p23_modem of=/dev/block/mmcblk0p23
dd if=/sdcard/mmcblk0p9_DDR of=/dev/block/mmcblk0p9
dd if=/sdcard/mmcblk0p12_bk1 of=/dev/block/mmcblk0p12
dd if=/sdcard/mmcblk0p18_fsc of=/dev/block/mmcblk0p18
Working on Aroma EFS backup restore tool..

NOTE:-
Don't use tools or commands from other device because different devices has different partition address, that will result in wrong backups.
To use this method to backup other phones EFS , u should find your partition info.
Redmi 1s Partition tables can be found HERE

ENJOY,
 
Last edited:

pgreed

Senior Member
Jan 4, 2013
547
171
But the problem with lost imei is for Redmi with MediaTek processor. Redmi Qualcomm don't suffer from this problem.
 

deadlyindian

Senior Member
Sep 17, 2012
452
991
Auto IMEI Backup & Restore Tool

Backup restore IMEI Automatically

FIRST INSTALL THE ADB DRIVERS FOR THE 1S ► GO HERE
Requires Phone to be ROOTED & USB Debugging turned ON
This is for Xiaomi Redmi 1S Only


I've created a CMD script that will automatically backup the IMEI & Also Restore it back again if you want to...
Backed Up files are inside MYIMEI folder of your selected backup storage.

NOTE : Enable root access for adb if you're on Custom ROM based on CyanogenMod
to do that ► Open Settings ► Superuser ► Superuser Access ► Select Apps and ADB ► done


► Download it from attachment
► Extract it
► Run R1SBAR.exe & follow instructions.

While restoring make sure the backed up files are inside the MYIMEI folder of either Internal Memory or External or it wont work.
If you face any error do tell me!
AGAIN ITS ONLY FOR REDMI 1S
 

Attachments

  • AUTO_IMEI.zip
    492.5 KB · Views: 4,593
Last edited:

pgreed

Senior Member
Jan 4, 2013
547
171
Backup restore IMEI Automatically
Requires Phone to be ROOTED & USB Debugging turned ON
This is for Xiaomi Redmi 1S Only


I've created a CMD script that will automatically backup the IMEI & Also Restore it back again if you want to...
Backed Up files are inside MYIMEI folder of your selected backup storage.

► Download it from attachment
► Extract it
► Run R1SBAR.exe & follow instructions.

While restoring make sure the backed up files are inside the MYIMEI folder of either Internal Memory or External or it wont work.
If you face any error do tell me!
AGAIN ITS ONLY FOR REDMI 1S


It working perfectly.Thank you.
 

Sector1369

Senior Member
Jan 16, 2013
53
55
Kolhapur
Backup restore IMEI Automatically
Requires Phone to be ROOTED & USB Debugging turned ON
This is for Xiaomi Redmi 1S Only


I've created a CMD script that will automatically backup the IMEI & Also Restore it back again if you want to...
Backed Up files are inside MYIMEI folder of your selected backup storage.

► Download it from attachment
► Extract it
► Run R1SBAR.exe & follow instructions.

While restoring make sure the backed up files are inside the MYIMEI folder of either Internal Memory or External or it wont work.
If you face any error do tell me!
AGAIN ITS ONLY FOR REDMI 1S

Great work :good::good:
 

kapil.git

Senior Member
May 12, 2013
153
43
delhi
Amazon Fire TV
None of the usual ROM / kernel flashing result in loss of these partitions .
If someone is able to screw up partitions, chances are that he will remove the partition table too ..
and with that he will not be able to fastboot anymore , to use backups made here.

Don't get me wrong, but its of little use imo.

Code:
dd if=/dev/block/mmcblk0p23 of=/sdcard/mmcblk0p23_modem
dd if=/dev/block/mmcblk0p9 of=/sdcard/mmcblk0p9_DDR
dd if=/dev/block/mmcblk0p12 of=/sdcard/mmcblk0p12_bk1
dd if=/dev/block/mmcblk0p18 of=/sdcard/mmcblk0p18_fsc
ENJOY,
 

rkkaranrk

Senior Member
Mar 7, 2011
1,906
738
None of the usual ROM / kernel flashing result in loss of these partitions .
If someone is able to screw up partitions, chances are that he will remove the partition table too ..
and with that he will not be able to fastboot anymore , to use backups made here.

Don't get me wrong, but its of little use imo.
U never know when sh*t happens there is no harm in taking the backup. Had personally lost imei on couple of Samsung phone while flashing roms and was able to restore it with the efs backup.
 
  • Like
Reactions: ridhi

kapil.git

Senior Member
May 12, 2013
153
43
delhi
Amazon Fire TV
U never know when sh*t happens there is no harm in taking the backup. Had personally lost imei on couple of Samsung phone while flashing roms and was able to restore it with the efs backup.

I mean backing up DRM keys and TA partitions made sense since they are wiped in some bootloader unlocking..

You almost make it sound like, I can restore someone else's IMEI too :silly: ..

I still have my old nokia phones with me of which I can rob their identities ?
Some random Redmi dev can give surprise to actually make an app for this..
Chinese phones have already been a pain in a$$ for Indian Govt due to lack / duplicate of this IMEI modules.
 

rkkaranrk

Senior Member
Mar 7, 2011
1,906
738
I mean backing up DRM keys and TA partitions made sense since they are wiped in some bootloader unlocking..

You almost make it sound like, I can restore someone else's IMEI too :silly: ..

I still have my old nokia phones with me of which I can rob their identities ?
Some random Redmi dev can give surprise to actually make an app for this..
Chinese phones have already been a pain in a$$ for Indian Govt due to lack / duplicate of this IMEI modules.



I'm pretty sure u have been using a Sony phone and have limited knowledge so don't jump and compare the phones with the same thing.

As for the imei take help of google and search for z3x/cyclone/nspro/magma what are they used for:silly:
 
Last edited:

arxdj77

New member
Nov 3, 2014
1
0
it might come in handy or it might not
nevertheless i'm putting it in safekeeping.

thanks for the work & effort.
:good:
 

fanboy_android

Senior Member
Aug 6, 2011
115
54
Mumbai
@deadlyindian,
Thanks for providing the automated script to back up imie.
I did go through your post and did as per the instructions mentioned step by step. However, I am unable to proceed after getting the message "Please connect usb cable now" after running R1SBAR. I do have root access(checked from root checker app) and have also enabled USB Debugging. I also inserted cable after getting the message.

Does it take a lot of time(more than 5 mins) to backup imei cause I continued till 5 mins before closing the cmd prompt.

Hope you can help me here.
PS: I am using MIUI v45 global version "JHCCNBH45.0 (V5) " in case if you need.
 
Last edited:

deadlyindian

Senior Member
Sep 17, 2012
452
991
ADB Drivers & instructions...

@deadlyindian,
Thanks for providing the automated script to back up imie.
I did go through your post and did as per the instructions mentioned step by step. However, I am unable to proceed after getting the message "Please connect usb cable now" after running R1SBAR. I do have root access(checked from root checker app) and have also enabled USB Debugging. I also inserted cable after getting the message.

Does it take a lot of time(more than 5 mins) to backup imei cause I continued till 5 mins before closing the cmd prompt.

Hope you can help me here.
PS: I am using MIUI v45 global version "JHCCNBH45.0 (V5) " in case if you need.

Have you installed the ADB drivers for the 1S? ► ADB Drivers

After installing Run R1SBAR.exe & follow the below screens

attachment.php


attachment.php


attachment.php


 

Attachments

  • one.png
    one.png
    7.6 KB · Views: 1,196
  • two.png
    two.png
    5.2 KB · Views: 1,205
  • three.png
    three.png
    20 KB · Views: 1,171
  • Like
Reactions: fanboy_android

fanboy_android

Senior Member
Aug 6, 2011
115
54
Mumbai
Have you installed the ADB drivers for the 1S? ► ADB Drivers

After installing Run R1SBAR.exe & follow the below screens

attachment.php


attachment.php


attachment.php



Yes, it seems adb drivers were missing after which I was able to successfully backup my IMIE. Thanks for your help.
Perhaps you could add this link in your earlier post as a pre-requisite so that newcomers won't face this issue. Just a suggestion :)
Kudos and keep rocking.
 
  • Like
Reactions: deadlyindian

Top Liked Posts

  • There are no posts matching your filters.
  • 16
    Automatic Backup Restore IMEI TOOL by Sector1369 is HERE .
    (Only Require Custom recovery)

    Automatic backup restore CMD script added by "deadlyindian" at Post#5
    (Require PC ,ADB drivers & Root permissions )



    If you still want to do this manually, look below
    IMEI backup of redmi 1s
    Require ROOT permissions

    We all known that EFS partition holds the imei,sn ,wifi mac & other important data.
    In Snapdragon the EFS partition are modemst1 ,modemst2 & FSG partitions. so it's important to take backup of these partitions.
    1.connect your phone to PC , adb debugging enabled & goto adb shell by,

    Code:
    adb shell su
    OR
    Open terminal emulator app in your phone & take super user permissions, by
    Code:
    su

    2.type following commands to backup imei partitions.
    Code:
    dd if=/dev/block/mmcblk0p16 of=/sdcard/mmcblk0p16_modemst1
    dd if=/dev/block/mmcblk0p17 of=/sdcard/mmcblk0p17_modemst2
    dd if=/dev/block/mmcblk0p20 of=/sdcard/mmcblk0p20_fsg
    also these are some important partition you should consider to backup.
    modem, fsc, bk1, ddr.

    Code:
    dd if=/dev/block/mmcblk0p23 of=/sdcard/mmcblk0p23_modem
    dd if=/dev/block/mmcblk0p9 of=/sdcard/mmcblk0p9_DDR
    dd if=/dev/block/mmcblk0p12 of=/sdcard/mmcblk0p12_bk1
    dd if=/dev/block/mmcblk0p18 of=/sdcard/mmcblk0p18_fsc

    Now the backup is stored in you internal storage ,store these files in safe place.
    in case u get invalid imei or unknown, restore these partitions.
    To restore these partitions,

    Code:
    dd if=/sdcard/mmcblk0p16_modemst1 of=/dev/block/mmcblk0p16
    dd if=/sdcard/mmcblk0p17_modemst2 of=/dev/block/mmcblk0p17
    dd if=/sdcard/mmcblk0p20_fsg of=/dev/block/mmcblk0p20
    dd if=/sdcard/mmcblk0p23_modem of=/dev/block/mmcblk0p23
    dd if=/sdcard/mmcblk0p9_DDR of=/dev/block/mmcblk0p9
    dd if=/sdcard/mmcblk0p12_bk1 of=/dev/block/mmcblk0p12
    dd if=/sdcard/mmcblk0p18_fsc of=/dev/block/mmcblk0p18
    Working on Aroma EFS backup restore tool..

    NOTE:-
    Don't use tools or commands from other device because different devices has different partition address, that will result in wrong backups.
    To use this method to backup other phones EFS , u should find your partition info.
    Redmi 1s Partition tables can be found HERE

    ENJOY,
    15
    Auto IMEI Backup & Restore Tool

    Backup restore IMEI Automatically

    FIRST INSTALL THE ADB DRIVERS FOR THE 1S ► GO HERE
    Requires Phone to be ROOTED & USB Debugging turned ON
    This is for Xiaomi Redmi 1S Only


    I've created a CMD script that will automatically backup the IMEI & Also Restore it back again if you want to...
    Backed Up files are inside MYIMEI folder of your selected backup storage.

    NOTE : Enable root access for adb if you're on Custom ROM based on CyanogenMod
    to do that ► Open Settings ► Superuser ► Superuser Access ► Select Apps and ADB ► done


    ► Download it from attachment
    ► Extract it
    ► Run R1SBAR.exe & follow instructions.

    While restoring make sure the backed up files are inside the MYIMEI folder of either Internal Memory or External or it wont work.
    If you face any error do tell me!
    AGAIN ITS ONLY FOR REDMI 1S
    2
    But the problem with lost imei is for Redmi with MediaTek processor. Redmi Qualcomm don't suffer from this problem.
    i know but it's always better to take bakup,who knows what 'll happen...
    there is no way to generate imei,wifi mac data for qualcomm (as far as i know) ...

    so it will come handy...
    1
    [Backup restore IMEI Automatically] works like charm. thanks :good:
    im glad it help :good:
    1
    None of the usual ROM / kernel flashing result in loss of these partitions .
    If someone is able to screw up partitions, chances are that he will remove the partition table too ..
    and with that he will not be able to fastboot anymore , to use backups made here.

    Don't get me wrong, but its of little use imo.
    U never know when sh*t happens there is no harm in taking the backup. Had personally lost imei on couple of Samsung phone while flashing roms and was able to restore it with the efs backup.