Skip to Content

How Do You Dump the Devinfo Partition and Read IMEI Number?

Is Your IMEI Missing? Learn How to Extract It Using Devinfo or Fastboot!

Sometimes, finding your phone’s IMEI number isn’t as simple as dialing *#06#. If you’re stuck, there’s another way—dumping the devinfo partition. This guide will walk you through it step by step. If your device stores IMEI in the EFS partition, don’t worry; I’ll explain how to handle that too. Let’s dive in.

How Do You Dump the Devinfo Partition and Read IMEI Number?

What You Need First

Before starting, make sure you’ve got these covered:

  • Android SDK Platform Tools: Download and extract them on your PC (Windows | Linux | macOS).
  • USB Debugging & OEM Unlocking: Enable these from Developer Options on your phone.
  • Unlocked Bootloader & Root Access: Use Magisk to root your device.

Step-by-Step Instructions

Step 1: Locate the Devinfo Partition

  1. Connect your phone to the PC via USB.
  2. Open Command Prompt (CMD) inside the platform-tools folder.
  3. Type these commands:
    adb shell
    su
    ls -la /dev/block/bootdevice/by-name
  4. Allow any prompts on your phone (tap “Allow” or “Grant”).
  5. Look for the devinfo partition address (e.g., sdd1). Write it down.

Step 2: Dump the Devinfo Partition

Run this command in CMD:

dd if=/dev/block/sdd1 of=/sdcard/devinfo.img

Replace sdd1 with your devinfo address from the previous step.

The file (devinfo.img) will save to your phone’s internal storage. Transfer it to your PC.

Step 3: Extract IMEI from Devinfo.img

  1. Install a Hex Editor like HxD on your PC. Open the devinfo.img file with it.
  2. Press Ctrl+F, type IMEI, and hit Enter. You’ll see both IMEI numbers (IMEI1 and IMEI2).

Alternate Method: Using Fastboot Commands (No Root Needed)

If rooting feels risky, there’s a simpler way using Fastboot commands:

  1. Download and extract Android SDK Platform Tools on your PC.
  2. Enable USB Debugging on your phone and connect it to the PC.
  3. Open Command Prompt in the platform-tools folder and type:
    fastboot oem get_config imei1
    fastboot oem get_config imei2
  4. To reboot back into Android, type:
    fastboot reboot

Troubleshooting Tips

Got 0 Values? If dumping devinfo shows zeros, your device stores IMEI in the EFS partition instead of devinfo. Follow the same steps above but replace “devinfo” with “EFS” during extraction.

Permission Issues? Ensure root access is granted when prompted during ADB commands.

Your IMEI is like your phone’s fingerprint—it’s unique and essential for network connectivity. Losing it can cause major headaches, like being unable to make calls or use mobile data. By following these methods, you can retrieve it even if standard approaches fail.