Which Partition Does OnePlus Store IMEI Number [It’s Not EFS!]

As soon as I got hold of an EDL Flash Tool for my OnePlus device, I straightaway went to test it out. While my device is perfectly up and running, however, I still decided to test out the tool because this is where the fun lies! But before diving deep into this risky pit, I decided to take a backup of two of the most important partitions- EFS and Persist . The persist partition houses the fingerprint, and the EFS has the IMEI number. Or so I thought.

no efs partition imei on my oneplus - 1

There’s No EFS Partition on my OnePlus 11!

When I brought about a list of all the partitions of my device [ ls -la /dev/block/bootdevice/by-name ], the EFS partition was nowhere to be found. Upon doing some further investigation, I found out that OnePlus used to store IMEI in the EFS partition on older devices. On ita new devices, such as the OnePlus 11, that is no longer the case. So, where is it now? Let’s find out.

  • Which Partition does OnePlus store the IMEI Number
  • How to Backup IMEI Partition on OnePlus Backup IMEI via ADB Command Backup IMEI in EDL Mode
  • How to Restore IMEI Partition on OnePlus

Which Partition does OnePlus store the IMEI Number

Newer OnePlus devices store the IMEI number not in a single partition like EFS, but in a combination of many partitions, namely:

  • modemst1
  • modemst2
  • fsc (File System Cache)
  • fsg (File System Group)

Do note that the modemst1 and modemst2 are separate from the modem partition. While the modem partition usually has the configuration files corresponding to the network, the former two hold crucial information related to the IMEI number. Only restoring the fsc and fsg partitions will give out the 0x0 or null IMEI errors. Therefore, please take a backup of all these four partitions before entering the flashing domain. While the FSC partition doesn’t directly hold the IMEI data, it is still recommended to take its backup and restore it when restoring the IMEI number. On that note, now comes the most important question- how to take a backup? Let’s find out.

Partition namePartition typeFile extensionIMEI related?Notes
fsgreal partitionIMG✅ Yesmodem NV config, required for IMEI
fscreal partitionIMG❌ Not Directlymetadata helper partition
modemst1real partitionIMG✅ Yesmain IMEI/NV storage
modemst2real partitionIMG✅ Yesbackup

How to Backup IMEI Partition on OnePlus

BACKUP RESTORE IMEI ONEPLUS - 2

If your device is in a perfectly working condition, you can easily take a backup using the ADB shell command. But what if your device is already in a hard-bricked state? Don’t worry, you can still take a backup! I’ll show you the backup process for both these scenarios. Follow along.

Backup IMEI via ADB Command

The steps below can be used if your device is in a perfectly working condition. i.e., can boot to the OS.
  1. First off, root your device via Magisk / KernelSU / APatch . Don’t want to root your device? Then check out Method 2.
  2. Then, download & extract Android SDK Platform Tools .
  3. Open Command Prompt inside platform-tools and type: adb shell
  4. Now KernelSU and APatch users need to go to their app > SuperUser tab > enable toggle next to SU > type in the below command: su
  5. Magisk users will now get a SuperUser prompt, hit Grant.
  6. Now type in the command below to bring up the list of all partitions on your device, along with their addresses: ls -la /dev/block/bootdevice/by-name
  7. Refer to the address of the following four partitions: modemst1 modemst2 fsc fsg
  8. In my case, they are: modemst1: dev/block/sdf4 modemst2: dev/block/sdf5 fsc: dev/block/sdf7 fsg: dev/block/sdf6
  9. Now type in the below command to extract these partitions from your device: dd if=/dev/block/address of=/sdcard/ filename.img
  10. Make sure to replace the address and filename.img accordingly.
  11. For example, to back up the modemst1, the command will be: dd if=/dev/block/sdf4 of=/sdcard/modemst1.img
  12. In a similar manner, the rest of the partitions’ backup commands will be: modemst1: dd if=/dev/block/sdf4 of=/sdcard/modemst1.img modemst2: dd if=/dev/block/sdf5 of=/sdcard/modemst2.img fsc: dd if=/dev/block/sdf7 of=/sdcard/fsc.img fsg: dd if=/dev/block/sdf6 of=/sdcard/fsg.img
  13. The files will be placed in the Internal Storage. Transfer them to your PC.

Backup IMEI in EDL Mode

YouTube video - 3 YouTube video - 4
The steps below can be used if your device is hard-bricked state. Well, you can also use it if it's in a working condition, but you don't want to root it and are willing to boot to EDL Mode.
  1. First off, download and extract the OPLUS EDL Tool .
  2. Then, boot your device into Firehose Mode . Now, click on Read Partitions.
  3. This will bring up a list of all the partitions present on your device. OPLUS EDL Tool [Reference Image]
  4. Select the following four partitions: modemst1 modemst2 fsc fsg
  5. Click on Read Selected, choose a location, and hit OK.
  6. The said partitions will now be saved onto your PC.

How to Restore IMEI Partition on OnePlus

Now that you have the backed-up partitions on your PC, let’s show you how to restore them on your device [if your device is still hard-bricked, then please first unbrick it ].

  1. First off, download and extract the Android SDK Platform Tools .
  2. Then unlock the bootloader on your device [backup beforehand].
  3. Next, enable USB Debugging and connect your device to the PC.
  4. Then transfer all four partition files to the platform-tools folder.
  5. Now, open CMD inside platform-tools and boot to Fastboot via: adb reboot bootloader
  6. Then type the following commands to flash the backed-up files: fastboot flash modemst1 modemst1.img fastboot flash modemst2 modemst2.img fastboot flash fsc fsc.img fastboot flash fsg fsg.img
  7. Finally, boot to the OS via the below command: fastboot reboot
  8. Now, type *#06# and the IMEI should be back.
  • How to Dump devinfo Partition and Read IMEI Number
  • How to Fix Null/0/Missing IMEI Numbers on Pixel Devices
  • Guide to Backup EFS Partition/IMEI Number on Android
  • Change/Repair/Fix IMEI on Qualcomm Snapdragon Devices
  • How to Fix Corrupt EFS/No IMEI/Network Issues [3 Methods]
  • How to Fix Invalid IMEI on any MediaTek via ADB Commands
  • Fix NULL/Invalid IMEI on MediaTek Devices using Modem Meta (Maui Meta)
  • Download IMEI Repair NVRAM Files for MTK MediaTek Devices
  • How to Fix Null IMEI by Restoring nvram & nvdata in SP Flash Tool
Google preferred - 5 Google preferred - 6

(Cancel Reply)

Δ