How to Backup and Restore IMEI on Moto E
In this article
Backing up and restoring the IMEI (International Mobile Equipment Identity) number on a Moto E is essential if you ever need to reflash the firmware, fix a corrupted modem partition, or restore network functionality after a failed software update. The IMEI is stored in the phone's NV (non-volatile) data partition, and if it gets corrupted, you'll lose cellular signal, Wi-Fi, and Bluetooth. This guide shows you how to create a backup of your IMEI using a root-enabled app and how to restore it when needed. You'll need a Moto E that is rooted, a PC with ADB and Fastboot tools installed, and a working USB cable.
What You'll Need
- A rooted Moto E (any generation that supports root; the process is similar across models)
- A PC with ADB and Fastboot drivers installed (from the official Android SDK platform-tools)
- A USB data cable that can transfer files
- A microSD card or internal storage space to save the backup files
- A file manager app that can access root directories (like Root Explorer or Solid Explorer)
- A terminal emulator app (like Termux) or ADB shell access from your PC
Step-by-Step
- Root your Moto E – If you haven't already, you must root the device. This typically involves unlocking the bootloader via Motorola's official bootloader unlock site and then flashing a custom recovery (like TWRP) and installing Magisk or SuperSU. Root access is required because the IMEI backup tools need to read the NV data partition directly.
- Enable USB debugging – Go to Settings > About Phone and tap “Build Number” seven times to unlock Developer Options. Then go to Settings > Developer Options and enable “USB Debugging”.
- Connect your Moto E to your PC – Use a good USB cable and connect the phone to your PC. On the phone, allow the USB debugging authorization when prompted.
- Open a command prompt or terminal – On your PC, open a command prompt (Windows) or terminal (Mac/Linux) in the folder where ADB is installed. Type
adb devicesand press Enter. Your device should appear with “device” status. If it says “unauthorized”, check your phone and accept the RSA key prompt. - Backup using a root app (recommended) – Install a reliable app like “IMEI Backup” or “Partition Backup & Restore” from the Google Play Store (only those that work with root). Open the app, grant root permission, and select the option to backup the EFS or NV data partition. The app will create a folder (usually on internal storage or SD card) containing files like
efs.imgormodemst1.imgandmodemst2.img. Copy these files to your PC and also to an external SD card for safekeeping. - Manual backup via ADB (alternative) – If you prefer a manual method, open a command prompt and use the following commands to dump the raw partitions. On Moto E, the IMEI is stored in the
modemst1andmodemst2partitions. Run:adb shellsudd if=/dev/block/bootdevice/by-name/modemst1 of=/sdcard/modemst1.imgdd if=/dev/block/bootdevice/by-name/modemst2 of=/sdcard/modemst2.img
Then exit and pull the files to your PC withadb pull /sdcard/modemst1.imgand similarly for modemst2. Also backup thefsgpartition if it exists (check withls /dev/block/bootdevice/by-name/). - Store the backup safely – Copy the backup files to your PC, an external drive, and cloud storage. Keep them in a folder named “IMEI_Backup” with the date. Do not lose these files; they are unique to your device.
- Restoring the IMEI – When you need to restore (e.g., after a bad flash or a corrupted modem), boot your Moto E into recovery mode (turn off, then press and hold Volume Down + Power, then select Recovery). If you have TWRP, you can restore the backup using the app or by flashing the images. Alternatively, use the same ADB method but reverse the process:
adb shellsudd if=/sdcard/modemst1.img of=/dev/block/bootdevice/by-name/modemst1dd if=/sdcard/modemst2.img of=/dev/block/bootdevice/by-name/modemst2
Reboot the phone. Your IMEI should be restored. - Verify the IMEI – After restoring, dial
*#06#on your phone's dialer. The IMEI number(s) should appear. You can also check under Settings > About Phone > Status.
Common Mistakes
- Not backing up both modemst1 and modemst2 – These two partitions work together; missing one can cause partial network issues.
- Using an unrooted phone – Without root, you cannot access the partitions, so the backup will fail.
- Incorrect partition path – On some Moto E models, the path might be
/dev/block/platform/msm_sdcc.1/by-name/instead of the generic one. Always check the actual by-name directory first. - Restoring a backup from a different phone – IMEI backups are device-specific. Using another phone's backup will not work and may cause other issues.
- Skipping the verification step – Always check the IMEI after restore to ensure it worked.
Tips
- Make the backup as soon as you root the phone, before making any other modifications.
- Keep multiple copies of the backup – one on the phone, one on your PC, and one in cloud storage.
- If you use a custom ROM, back up the IMEI before flashing any ROM, as some ROMs can overwrite the NV data.
- Label the backup files with the date and the phone model to avoid confusion.
- If the app method fails, try the manual ADB method; it's more reliable.
Troubleshooting
If the backup fails with “Permission denied” – Ensure your phone is properly rooted and that you granted root access to the terminal or app. Try using su before the dd command. If you're using an app, check its root access in Magisk or SuperSU.
If the IMEI shows null after restore – This usually means the restore didn't write correctly. Reboot into recovery, wipe cache, and try again. If it still fails, you may need to restore the fsg partition as well (if it exists).
If the phone doesn't boot after restore – Don't panic. Boot into recovery and restore your last full backup (if you have one). If not, reflash the stock firmware using fastboot, then restore the IMEI again.
If ADB doesn't recognize the device – Install the proper Motorola USB drivers on your PC. Try a different USB port or cable. Ensure USB debugging is enabled.
If the partition names are different – Run ls /dev/block/bootdevice/by-name/ in ADB shell to see the actual names. They might be like modemst1 and modemst2 or modem and fsg.
Frequently Asked Questions
Can I backup IMEI without root?
No. Reading the NV data partition requires root access. Without root, you cannot access the partitions where the IMEI is stored.
Will the backup work on another Moto E?
No. The IMEI backup is unique to your specific device. Using it on another phone will not work and can cause network issues.
What if I lost my IMEI backup?
If you lose the backup, you can try to extract the IMEI from the phone's original firmware or from a full system backup (if you made one). Otherwise, you might need professional repair services that can rewrite the IMEI using specialized tools.
Can I restore IMEI using TWRP?
Yes, if you have a TWRP backup of the EFS or NV data, you can restore it from TWRP by selecting the backup and restoring only the EFS/Modem partitions.
Does backing up IMEI void my warranty?
Rooting your phone voids the warranty, and this process requires root. So yes, the warranty is already voided by rooting.
Is it legal to backup and restore IMEI?
Yes, for your own device, it's legal. However, changing an IMEI to a different one or using someone else's IMEI is illegal in many countries. Always use your own backup.