EFS Recovery Guide [Snapdragon only]

Search This thread
Sep 20, 2016
28
1
My redmi note 3 pro has unknown imei on sim 1 and 00 on sim 2. But baseband is safe. What I need to do to bring my imei back? Just rewrite the imei or flash efs also? Cause in the op just said if "00" imei not unknown imei. My mobile data and signal still work eventhough my imei gone fyi
 

Archit9169

Senior Member
May 13, 2016
652
420
Lucknow
My redmi note 3 pro has unknown imei on sim 1 and 00 on sim 2. But baseband is safe. What I need to do to bring my imei back? Just rewrite the imei or flash efs also? Cause in the op just said if "00" imei not unknown imei. My mobile data and signal still work eventhough my imei gone fyi

If even after no imei everything is working fine, then dont do anything.
Now if there is anyother problem other than blank imei, i suggest first take a backup of efs partition.
Then write imei, you get get yours at the back of your box or in the bill, using the imei tool i provided.
Now check whether everything worls fine or not.
 

-MB-

Senior Member
Feb 14, 2010
88
4
Should this also work on a redmi note 4 MIDO(ie snapdragon version)?
Tried it at the very least and I get a fail about com port, eventho it does show as the right device, Qualcomm HS-USB Diagnostics.
Ofc being a note 4 it says Qualcomm HS-USB Diagnostics 9091 instead of 901D
 

Archit9169

Senior Member
May 13, 2016
652
420
Lucknow
Should this also work on a redmi note 4 MIDO(ie snapdragon version)?
Tried it at the very least and I get a fail about com port, eventho it does show as the right device, Qualcomm HS-USB Diagnostics.
Ofc being a note 4 it says Qualcomm HS-USB Diagnostics 9091 instead of 901D

Tinker with the com port and enable diag mode using the commands that i gave. It supports all qcom devices as far as i know.
 

Archit9169

Senior Member
May 13, 2016
652
420
Lucknow
Diag mode is on. QPST and the emmc tool i used to dump the xqcn file all work with it. It is just the imei flasher refusing.

Hmm. It may be some other problem. Sorry but i dont know any alternative for imei changind. You can do that with emmcdl utility, which works on edl mode. But you will have to built it from source, since the person who was working on it abandoned the project. I dont know how to compile it or i might have provided some assistance.
 

-MB-

Senior Member
Feb 14, 2010
88
4
Hmm. It may be some other problem. Sorry but i dont know any alternative for imei changind. You can do that with emmcdl utility, which works on edl mode. But you will have to built it from source, since the person who was working on it abandoned the project. I dont know how to compile it or i might have provided some assistance.

It is part of thr QPST package, which I got from another guide, that has u hexediting a XQCN file u can also dump from that tool, but need one from same specific model that does have a functionig IMEI, so that u can edit that one with the ones from your device, then use that tool to write it back.
My problem with that is, there is no xqcn posted yet from my specific model, and I cannot edit my own file, it has no imei thus all 00s, which u cannot look up to find the adress to edit.
 

Archit9169

Senior Member
May 13, 2016
652
420
Lucknow
It is part of thr QPST package, which I got from another guide, that has u hexediting a XQCN file u can also dump from that tool, but need one from same specific model that does have a functionig IMEI, so that u can edit that one with the ones from your device, then use that tool to write it back.
My problem with that is, there is no xqcn posted yet from my specific model, and I cannot edit my own file, it has no imei thus all 00s, which u cannot look up to find the adress to edit.

So you only need to change your imei. Have you tried searching for xposed, it may not do it at partition level, but it can change your imei while you are on a specific rom. Try searching for imei modules in xposed.
 

-MB-

Senior Member
Feb 14, 2010
88
4
Th IMEi changing needs to be done with the phone in android itself right?

So you only need to change your imei. Have you tried searching for xposed, it may not do it at partition level, but it can change your imei while you are on a specific rom. Try searching for imei modules in xposed.

Rather have the proper fix tbqh.

I used the dialer code to enter diag mode btw. Used the adb version, and it now shows up exactly as in your pictures: ie. 901D
Now when I flash it freezes for a bit and then says failed.
 
Last edited:

Archit9169

Senior Member
May 13, 2016
652
420
Lucknow
Th IMEi changing needs to be done with the phone in android itself right?



Rather have the proper fix tbqh.

I used the dialer code to enter diag mode btw. Used the adb version, and it now shows up exactly as in your pictures: ie. 901D
Now when I flash it freezes for a bit and then says failed.

Keep trying. I know its not perfet but its the easiest and safest way to get everything in order.
 

-MB-

Senior Member
Feb 14, 2010
88
4
Keep trying. I know its not perfet but its the easiest and safest way to get everything in order.


Tried a couple of other writing tools, and they did succeed, only apparently they do not detect the first SIM/modem, and subsequently write the first IMEi to the 2nd sim/modem and fail with the other. Maybe 1 of the 2 is broken?

2nd slot has IMEI correct, but for some reason IMEI SV shows unknown, first slot has no IMEI but a value of 00 for SV.
 
Last edited:

-MB-

Senior Member
Feb 14, 2010
88
4
Finally fixed it, using a qcn file from the creator of this thread.
Found his original thread on MIUI forums where he posted the qcn, edited in my own IMEIS and flashed it with QPST.
Now I have mobile connection on both sims again.
 

Anindo

Member
Jul 7, 2015
5
1
23
Nilphamari
Do this if and only if you believe your EFS is corrupted, or you somehow erased it. If you are not sure about it, then simply follow the next guide to change you IMEI number. In most cases people loose their IMEI only and not the whole partition. Again, it may or may not work, so do this on your risk, and i am not to blame if anything bad happens, but if you do succeed, then don't forget to give me credit.


2. Extract the Dump Backup files and flash them using the following commands.
Code:
fastboot flash modemst1 modemst1
fastboot flash modemst2 modemst2
3. Now reboot and voila you have you a new EFS partition at your disposal.

I tried this on my redmi note 3 pro kenzo, but cmd says failed. It says
remote partition flashing is not allowed

now what??
 

Archit9169

Senior Member
May 13, 2016
652
420
Lucknow
Tried a couple of other writing tools, and they did succeed, only apparently they do not detect the first SIM/modem, and subsequently write the first IMEi to the 2nd sim/modem and fail with the other. Maybe 1 of the 2 is broken?

2nd slot has IMEI correct, but for some reason IMEI SV shows unknown, first slot has no IMEI but a value of 00 for SV.

Maybe. Or you can try some other methods to solve this. Like modding a qcn file and then directly flashing it via nvtools of qcon.
 

Anindo

Member
Jul 7, 2015
5
1
23
Nilphamari
I tried this on my redmi note 3 pro kenzo, but cmd says failed. It says
remote partition flashing is not allowed

now what??

Edit: problem solved. Tried installing multiple qcn files, one worked.

I had lost my Imei numbers.It showed no baseband version,no imei,no Bluetooth address. As a result sims don't connect. But memory card slot works. I've checked that the sim connector pins are okay.

In Short:
∆ What I have:
1. Twrp installed
2.Root
3. It wasn't unlocked officially because when I applied for unlocking, I was able to download the unlock tool but as I didn't have imei,so I couldn't add my device for unlocking ( developer options>unlock status> add device)
But when I got the imei back, I was able to add the device. Still I haven't unlocked it yet. So it shows only the MI logo while booting but not unlocked written below.

4. Currently I'm on MIUI 9.5.6.0 Global Stable rom. Android version 6.0.1 marshmallow.


What I tried to fix it:
1.
I tried flashing Stock roms, Miui 9.5, Miui 9.4, Custom roms but still didn't get the imei number.

2.
Tried Fixing the EFS through adb, didn't work.
Tried efs through fastboot mode, it said installing through fastboot is not allowed or something like that ( I don't remember exactly word by word,but it was something like that)

3.
Then at last I was able to write down my imei numbers Through QPST tool, thanks to a guide in mi community. ♡

I was only able to write 1 imei number as I have 1 imei number written in the sticker inside the phone. But I got Both imei numbers back but it shows unknown in ICCID unkown and others are unkown too. A screenshot is given below.

After getting my imei back, I inserted the sim,both slots show sim but there is no signal. When I try to call, there shows Radio off. And it tells me to turn off airplane mode but it was never turned on in the first place.

4.I flashed a backup of my current rom through twrp yesterday, tried to turn on radio through testing mode( *#*#4636#*#*) but didn't work. I couldn't change my radio mode to GSM , CDMA, LTE or anything else.. And the turn on radio button was grayed out.

Stuff that I haven't tried yet:

1. Flashing stock Miui 9.5.6 (not my twrp backup) through PC.

2. Installing NON-HLOS.bin file through fastboot mode.



Now what should I do to bring my phone back to life..?
 
Last edited:

AccountSaver

Senior Member
Sep 27, 2010
116
7
Thessaloniki
Do this if and only if you believe your EFS is corrupted, or you somehow erased it. If you are not sure about it, then simply follow the next guide to change you IMEI number. In most cases people loose their IMEI only and not the whole partition. Again, it may or may not work, so do this on your risk, and i am not to blame if anything bad happens, but if you do succeed, then don't forget to give me credit.

Note:
  • If your EFS is erased or corrupted, your IMEI and Baseband will be shown as unknown. In this case recover the EFS following this post, and then change the IMEI following the next post. If your IMEI is shown as 0, then you EFS is safe and most probably your IMEI is gone. In that case, no need to recover EFS, only change the IMEI number following my next post.
  • In TWRP, backup of kate wont show on kenzo and the backup up kenzo wont show on kate. In case no backup is shown even if you are using the right device, then try the dump flashing method or try changing the TWRP recovery.
  • Flashing this will only restore your EFS partition, but the IMEI will still be gone, so you will have to follow the next guide to change your IMEI.
  • Even after flashing a new EFS, you Mac and BT address will not recovery. The android system will assign a software generated address to both devices. Dont worry cause even without the EFS partition there will be a Mac and BT address assigned to your device and both the things will work normally.
  • If your Baseband is still unknown, even after flashing a new EFS, then try flashing latest radio file. It can be found in any firmware update package, either the official or the one from the strix.
1. Download the required files from the link given below.
2. Extract the Dump Backup files and flash them using the following commands.
Code:
fastboot flash modemst1 modemst1
fastboot flash modemst2 modemst2
3. Now reboot and voila you have you a new EFS partition at your disposal.

Hello,

I have lost the MAC Address only in KATE.Will this do ? (My IMEI is still there only wifi is dead.Already tried different roms & fastroom clean install etc)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 56
    This guide is for those who have lost their IMEI, have corrupted EFS, or erased EFS partition. So, follow these under your own risk, it may or may not work, and if something happens or doesn't happen, then i am not to blame. So, once again i will not take credit for bricked phones or something along those lines, however i will take full credit if this works for you. I will also provide assistance to those who could not restore their EFS following this guide.

    Before proceeding with this guide, backup what you have left. Use twrp to backup and in case something goes wrong and your problem escalates, you can restore using twrp backup.
    36
    Restore EFS

    Do this if and only if you believe your EFS is corrupted, or you somehow erased it. If you are not sure about it, then simply follow the next guide to change you IMEI number. In most cases people loose their IMEI only and not the whole partition. Again, it may or may not work, so do this on your risk, and i am not to blame if anything bad happens, but if you do succeed, then don't forget to give me credit.

    Note:
    • If your EFS is erased or corrupted, your IMEI and Baseband will be shown as unknown. In this case recover the EFS following this post, and then change the IMEI following the next post. If your IMEI is shown as 0, then you EFS is safe and most probably your IMEI is gone. In that case, no need to recover EFS, only change the IMEI number following my next post.
    • In TWRP, backup of kate wont show on kenzo and the backup up kenzo wont show on kate. In case no backup is shown even if you are using the right device, then try the dump flashing method or try changing the TWRP recovery.
    • Flashing this will only restore your EFS partition, but the IMEI will still be gone, so you will have to follow the next guide to change your IMEI.
    • Even after flashing a new EFS, you Mac and BT address will not recovery. The android system will assign a software generated address to both devices. Dont worry cause even without the EFS partition there will be a Mac and BT address assigned to your device and both the things will work normally.
    • If your Baseband is still unknown, even after flashing a new EFS, then try flashing latest radio file. It can be found in any firmware update package, either the official or the one from the strix.
    1. Download the required files from the link given below.
    • EFS Backup[Kenzo] - Contact me if someone has backup of this.
    • EFS Backup[Kate] - Contact me if someone has backup of this.
    2. Extract the Dump Backup files and flash them using the following commands.
    Code:
    fastboot flash modemst1 modemst1
    fastboot flash modemst2 modemst2
    3. Now reboot and voila you have you a new EFS partition at your disposal.
    31
    Change IMEI Number

    Requirements:
    • Root
    • USB Debugging is turn on
    • Windows Driver Signature is turned off
    • ADB and Fastboot Binary Files
    • Latest MiFlash Installed for the latest drivers
    1. Connect your device to pc and open the adb folder. Then open a command promt window.
    Code:
    >> [B]Shift + Right Click[/B] anywhere in the adb folder
    >> Click on [B]Open Command Window Here[/B]
    2. Type the following command to enable Diagnostics mode. Allow debugging if asked.
    Code:
    adb shell
    su
    setprop sys.usb.config diag,adb
    4. Download the IMEI Changer from the link given below.
    5. Now, open the imei changer, and enter imei number in both the fields. And click on start. After a moment it will show as passed. If it fails make sure that you have followed the points i stated.

    Note: Make sure that the driver in driver management under ports is listed as "Qualcom HS-USB Android DIAG 901D" and not as "Marshall London HS-USB Android DIAG 901D". If it is listed in any other name, then go to driver management and update driver. Select browse driver, then let me pick driver from a list. Then select "Qualcom HS-USB Android DIAG 901D" and then finish.
    2
    showing error as no diag even after typing those commands
    kindly help me

    At what part, the imei change or flashing.
    2
    Can't confirm. My EFS partition was so corrupted from trying other tutorials to restore my IMEI that I didn't even bother backing it up because I thought that it could have been changed already (tried writing to NVRAM with QPST). Since I don't have my original mac and bluetooth addresses written down anywhere (I haven't written them down myself and I don't think they are to be found anywhere on the box or on the phone) I think the only way to check it would be to compare my current addresses on the phone to the addresses contained in your EFS backup. Can you extract them so I can check if they match or not?
    The mac address and bluetooth address in the efs are my own. I only changed the imei so that no one else can copy it, i didnt know anyway to change mac address. Besides the mac address doesnt matter that much, and i dont think that we will ever be on the same wifi network.

    If you dont know then i can explain, that the mac address is required to maintain switches and broadcast in the router, so it technically does not matter.

    You can change it later with some apps or use it like that if you wish, if i find any way to restore you mac i will post it too. In the mean time just post a snapshot of wifi mac and bluetooth address so that i can compare them with my own.