In this guide, we will show you the steps to dump the devinfo partition, extract it, and then read the IMEI number of your Android device. This tweak might come in handy if for some reason the generic approach of typing in *#06# does not yield the required result. With that said, this tweak should work across all those devices that house the IMEI in the devinfo partition [such as the Pixel devices].
If your device has the IMEI in the EFS partition, then extracting devinfo will result in 0 values. In that case, you’ll have to extract the EFS partition using the exact same steps that are given for devinfo and you’ll get the required data. The below instructions should make it all clear. So without any further ado, let’s check it out.
How to Dump devinfo Partition and Read IMEI Number
- First off, download and extract Android SDK Platform Tools on PC.
- Next, enable the USB Debugging & OEM Unlocking on your device.
- Then unlock the bootloader on your device and root it using Magisk.
- Now open CMD inside platform-tools and type the below command:
adb shell su ls -la /dev/block/bootdevice/by-name
- You’ll get a couple of prompts, make sure to tap on Allow and Grant.
- Note down the address of the devinfo partition. In my case, it’s sdd1.
- Now type in the below command to extract devinfo from your device:
dd if=/dev/block/sdd1 of=/sdcard/devinfo.img Make sure to replace sdd1 with your devinfo address
- The file will be placed in the Internal Storage. Transfer it to your PC.
- Now install a Hex Editor app like Hxd and open devinfo.img using it.
- Now hit Ctrl+F, type IMEI, and you’ll get both your IMEI 1 and 2 values.
That’s it. These were the steps to dump the devinfo partition, extract it, and then read the IMEI number of your Android device. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution as soon as possible.
UPDATE: Read IMEI via Fastboot Commands
Well, it turns out there is no need to 1root your device after all! You can get hold of the device’s IMEI number using Fastboot Commands as well. Here’s how:
- Download and extract Android SDK Platform Tools on your PC.
- Now enable USB Debugging and connect your device to the PC.
- Then open Command Prompt inside the platform-tools folder.
- Now type the below commands to get the IMEI 1 and 2 values.
fastboot oem get_config imei1 fastboot oem get_config imei2
- Once done, you may reboot your device to the OS via command:
fastboot reboot
- How to Fix Null/0/Missing IMEI Numbers on Pixel Devices
- How to Backup EFS Partition/IMEI Number on Android
- NULL IMEI on Nothing Phone 1 after using Engineering Mode/CIT app [Fix]
- Change/Repair/Fix IMEI on Qualcomm Snapdragon Devices
- How to Fix Corrupt EFS/No IMEI/Network Issues [3 Methods]
The post How to Dump devinfo Partition and Read IMEI Number appeared first on DroidWin.