How to Fix Corrupt EFS/No IMEI/Network Issues

Fix Corrupt EFS

In this article, we will tell you various methods regarding How to fix corrupt EFS, No IMEI, No SIM card detected, and network-related problems(such as Bluetooth and WiFi not working). Stepping into the custom development brings in a truckload of goodies for the end-users. From flashing customized firmware to installing a custom recovery like TWRP, the prospects stand constant. Along the same lines, you could also gain access to the system partition by rooting the device via Magisk. Well, this is just the half-side of the story.

If you flash an incorrect binary or flash the correct one to the incorrect partition, then you are inviting a problem. There is a chance of the device ending up in a boot loop or getting bricked. Correspondingly, in some cases, the device’s partition might also get corrupted. And if that occurs with the EFS partition, then, there is bound to be allocated with your IMEI. This is because your device’s unique identification number and various network composition files are kept in this EFS partition itself.

So your device’s IMEI number will be the greatest sufferer. Further, a corrupted EFS partition could also spell out risk for the modem. This in turn will lead to problems like No SIM, Unkown Baseband, and issues are usually on the cards (via WiFi and Bluetooth). While all these problems are particularly concerning, there do exist a few workarounds that have worked to fix them. So, without wasting time, let’s check out the ways to fix corrupt EFS, No SIM card detected, No IMEI, and network-related problems.

How to Fix Corrupt EFS/No IMEI/No SIM/Network Issues?

Do note that this article is only for those devices that have stepped into custom development. If your device is fully stock just as it came out of the box with no changes, then these fixes might not be for you. This is because it is highly unlikely for a stock device to have corrupt EFS or Modem partitions. So, those users should rather try basic network troubleshooting.

On another side, the tech lovers who have already unlocked their device’s bootloader could move forward with the mentioned-below instructions. We and our members would not be held liable in case of a thermonuclear war, your alarm does not wake you up, or if anything happens to your device and data by executing the steps given below.

Disclaimer

Thetechexplained won’t be responsible if anything happens to your device if you follow this tutorial. Ensure that all your data is already backed-up so that you won’t lose your important data in case of any problems. Following this method can harm your software, which might lead to restoring it back to its factory state.

FIX 1: Restore Modem Partition via Fastboot

Your first step could be is to clear out all the data from the corrupted Modem partition and then, reflash the stock modem file. Here’s is how it could be done:

Download Android SDK

Firstly, download Android SDK Platform Tools and extract it on your PC (any convenient location). Hence, it will provide you with the platform-tools folder, which will be used throughout the article.

Download Stock Firmware

Now, download the stock firmware, and however, make sure to download the same version that is presently installed on your device (confirm the same from the Build Number).

Also see: How to Root Palm Phone via Magisk and Sugar QCT Tool

Extract Modem/NON-HLOS

Nonetheless, when the firmware is downloaded, extract it anywhere on your PC. If the firmware is in ZIP format, then you could easily extract it (via WinRAR & so on). But for other formats, such as payload.bin/OZIP/KDZ, etc.

When the firmware extraction is complete, copy the NON-HLOS.bin or the Modem.bin file and transfer it to the platform-tools folder. 

Boot Device to Fastboot Mode

  1. Connect your device to the PC via USB cable (Make sure USB Debugging is enabled)
  2. Head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
  3. Type the below command in the CMD window to boot your device to Fastboot Mode;
adb reboot bootloader
  1. To verify the Fastboot connection, type the below command and you should get back the device ID;
fastboot devices

Format Modem Partition

  • Execute the below command in the CMD window to wipe the modem partition;
fastboot erase modemst1
fastboot erase modemst2
  • If it throws an error, then use the below command;
fastboot erase modem

Flash Stock Modem/NON-HLOS

Following are the steps:

  • Now, we have formatted the modem partition and removed all the corrupt data, let’s flash the stock one to repair it
  • So, if the modem file is modem.bin, then execute the below command in the CMD window to flash it;
fastboot flash modem modem.bin
  • On the other hand, if the modem file is NON-HLOS, then use the below command to flash it;
fastboot flash modem NON-HLOS.bin
  • Execute the below command to boot your device to the OS;
fastboot reboot
  • Check if the corrupt EFS, No IMEI, No SIM card detected, and network-related problems resolved or not.

FIX 2: Using ADB Commands

Following are the steps:

  • Enable USB Debugging on your device and connect it to the PC via USB cable
  • Head over to the platform-tools folder, type in CMD in the address bar, and hit Enter. This will launch the Command Prompt.
  • Now type in the following two commands in the CMD window (one at a time);
adb shell 'dd if=/dev/zero of=/dev/block/bootdevice/by-name/modemst1'
adb shell 'dd if=/dev/zero of=/dev/block/bootdevice/by-name/modemst2'
  • Reboot your device via the below command:
adb reboot
  • When it boots up, verify if the corrupt EFS, No IMEI, No SIM card detected, and network-related problem resolved or not.

FIX 3: Via TWRP Recovery

Following are the steps:

  • Install the TWRP Recovery on your device or boot your device to TWRP for just one-time usage
  • When your device boots to TWRP, go to the Advanced section and select Terminal.
  • Now type in the following two commands in the terminal (one by one);
dd if=/dev/zero of=/dev/block/bootdevice/by-name/modemst1
dd if=/dev/zero of=/dev/block/bootdevice/by-name/modemst2
  • When both the commands have been performed, go to Reboot > System
  • Now, the device will boot to the OS and the underlying issue would be resolved

With this, we are done with this article on how you could fix corrupt EFS, No IMEI, No SIM card detected, and network-related problems. If you still have any questions related to the above-mentioned steps, do let us know in the comment box mentioned below. We will get back to you with the easiest solution as early as possible.

Leave a Reply