Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Backup & Restore EFS/IMEI on Galaxy S6

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Backing up the EFS partition on a Galaxy S6 preserves your IMEI, baseband, and Wi-Fi/Bluetooth calibration data. If the EFS gets corrupted after a bad flash or a failed root attempt, restoring it brings your phone's radios back to life. You need a rooted Galaxy S6 and a custom recovery (like TWRP) installed to complete these steps.

What You'll Need

  • Rooted Galaxy S6 (any variant: G920F, G920T, etc.)
  • A custom recovery such as TWRP installed
  • USB cable and a computer (for transferring backup files)
  • MicroSD card or enough internal storage for the backup

Step-by-Step

Backing Up EFS via TWRP

  1. Power off your Galaxy S6.
  2. Boot into TWRP recovery: press and hold Volume Up + Home + Power simultaneously. Release all buttons when the TWRP logo appears.
  3. In TWRP, tap Backup.
  4. Select the partitions you want to back up. Look for EFS (sometimes labeled as EFS1 or Modem depending on the TWRP version). If you see options like Modem or Baseband, include them as well.
  5. Choose the storage location: either Micro SD or Internal Storage. If you choose internal storage, you'll need to copy the backup to your computer later.
  6. Swipe the slider at the bottom to start the backup. Wait for the process to complete.
  7. After backup, tap Reboot System.
  8. Once booted, connect your phone to the computer and copy the TWRP backup folder (usually in /TWRP/BACKUPS/) to a safe location on your PC.

Backing Up EFS via Root Explorer (Alternative Method)

  1. Install a root file manager like Root Explorer from the Play Store.
  2. Open the app and grant root access when prompted.
  3. Navigate to /dev/block/platform/15570000.ufs/by-name/ (on many S6 variants). Look for a partition named efs or EFS.
  4. Long-press the partition file and select Copy.
  5. Paste it into a folder on your internal storage, e.g., /sdcard/EFS_Backup/.
  6. Copy that folder to your computer for safekeeping.

Restoring EFS from TWRP Backup

  1. Place the TWRP backup folder (the one you saved) back onto your phone's internal storage or microSD card in the /TWRP/BACKUPS/ directory.
  2. Power off the phone and boot into TWRP recovery as before.
  3. Tap Restore.
  4. Select the backup file you want to restore.
  5. Ensure EFS (and any related partitions like Modem) are checked. Uncheck everything else unless you intentionally want to restore those too.
  6. Swipe to restore. Wait for the process to finish.
  7. Reboot the phone. Your IMEI should be back.

Restoring EFS from a Raw Image Backup

  1. If you backed up the raw efs partition file, boot into TWRP.
  2. Tap Install, then select Install Image (bottom-right corner).
  3. Navigate to your backup file (e.g., efs.img).
  4. Select the partition type as EFS (or Modem if that's what the file is).
  5. Swipe to flash the image.
  6. Reboot and verify your IMEI.

Common Mistakes

  • Backing up the wrong partition: Some S6 variants have multiple EFS-related partitions (like EFS1, EFS2). Make sure you back up all of them if they appear.
  • Not copying the backup off the phone: If you store the backup only on internal storage and later wipe it, you lose it forever.
  • Restoring a backup from a different device: EFS backups are device-specific. Restoring one from another S6 will cause IMEI mismatch and network issues.
  • Using an outdated TWRP: Older TWRP versions may not correctly handle the EFS partition on the S6. Always use the latest official TWRP for your model.

Tips

  • Always make a fresh EFS backup before flashing any ROM, kernel, or mod.
  • Store your EFS backup in at least two locations: your PC and a cloud service.
  • Label your backup files with the date and your phone model to avoid confusion.
  • If you have a stock firmware, you can also extract the EFS partition from a stock tar file, but backing up from your phone is safer.

Troubleshooting

After Restore, IMEI Still Shows Null/Unknown

If the restore didn't bring back your IMEI, try the following in order:

  1. Reboot the phone once more – sometimes the modem needs a fresh start.
  2. Check if the backup actually contained the EFS partition. Open the backup folder and look for a file like efs.img or modem.img.
  3. Try restoring both EFS and Modem partitions together.
  4. If you have a raw backup of the efs partition, try flashing it via Install Image in TWRP.
  5. As a last resort, flash the stock firmware via Odin – this will not restore your original IMEI, but it may reset the modem and allow you to use the phone (though without cellular service).

Backup Fails in TWRP

If TWRP reports an error during backup, ensure you have enough free space. Try backing up to external SD instead of internal storage. Also, update TWRP to the latest version for your device.

Phone Bootloops After Restore

If your phone gets stuck in a boot loop after restoring EFS, it's usually because you restored a backup from a different phone or the backup was corrupted. Boot back into TWRP, wipe cache and dalvik, then reboot. If that doesn't help, you may need to restore a full nandroid backup (if you have one) or reflash the stock firmware.

Frequently Asked Questions

Is it safe to share my EFS backup?

No. Your EFS backup contains your unique IMEI and other device identifiers. Sharing it can allow someone to clone your phone's identity.

Can I restore EFS without root?

No. Restoring EFS requires write access to system partitions, which needs root and a custom recovery. If you're not rooted, you cannot restore EFS.

Will restoring EFS void my warranty?

Rooting and flashing custom recovery already void your warranty. Restoring EFS itself doesn't change that status.

What if I lost my EFS backup and my IMEI is null?

Without a backup, your only option is to send the phone to a service center that can rewrite the IMEI using specialized tools (often illegal in some regions). There is no user-level fix.

Does backing up EFS also back up my contacts?

No. EFS only contains radio-related data (IMEI, baseband, calibration). Contacts are stored in the data partition.

Can I use the same EFS backup on a different Galaxy S6?

No. Each phone has a unique IMEI. Using another phone's EFS backup will cause network issues and may be illegal.