EFS Recovery Guide [Snapdragon only]

Search This thread

soekarmana

Member
Mar 5, 2015
7
1
cant write imei and backup from qpst

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.

followed all the steps above
got my kenzo detected by Qpst
qpst-detect-phone.png

but still unable to write IMEI
no-diag-port.png

cant read either
stuck-reading.png

trying to backup from Qpst, no luck
backup-qpst-fail.png


then i realized, the id number of my diagnostic port was different, compared to this post
instead of 901D, mine was 903D

qualcomm-diag-903-D.png

could this be the culprit?

and regarding wifi and Bt MAC,
i lost it too but seems to come back when i install new ROM
everything is fine and dandy, UNTIL I REBOOT MY PHONE
poof wifi and BT mac GONE
seems like the system can write it or something like that? :confused:
install a new rom again, wifi and bt mac come back
reboot, gone
a vicious cycle


PS : i try this procedure on my whyred (reading imei, backup from qpst)
the diagnostic port id is same with your post "901D"
no problem reading IMEI and backing up with Qpst
 
Last edited:

Archit9169

Senior Member
May 13, 2016
652
420
Lucknow
followed all the steps above
got my kenzo detected by Qpst
qpst-detect-phone.png

but still unable to write IMEI
no-diag-port.png

cant read either
stuck-reading.png

trying to backup from Qpst, no luck
backup-qpst-fail.png


then i realized, the id number of my diagnostic port was different, compared to this post
instead of 901D, mine was 903D

qualcomm-diag-903-D.png

could this be the culprit?

and regarding wifi and Bt MAC,
i lost it too but seems to come back when i install new ROM
everything is fine and dandy, UNTIL I REBOOT MY PHONE
poof wifi and BT mac GONE
seems like the system can write it or something like that? :confused:
install a new rom again, wifi and bt mac come back
reboot, gone
a vicious cycle


PS : i try this procedure on my whyred (reading imei, backup from qpst)
the diagnostic port id is same with your post "901D"
no problem reading IMEI and backing up with Qpst

Try somehow changing the driver from device manager. It should be 901D. As for bt and wifi if it does not detect valid wifi and bt address then the software will generate one for you. Thats what has been happening when you flash a new rom. And if efs partition is corrupt then rebooting will give issues.

Flash a valid efs partition from someone else. Then try to change the imei. And make sure the device manager shows Qualcomm 901d and nothing else. Select update driver and then select manually.
 
  • Like
Reactions: soekarmana

soekarmana

Member
Mar 5, 2015
7
1
Try somehow changing the driver from device manager. It should be 901D. As for bt and wifi if it does not detect valid wifi and bt address then the software will generate one for you. Thats what has been happening when you flash a new rom. And if efs partition is corrupt then rebooting will give issues.

Flash a valid efs partition from someone else. Then try to change the imei. And make sure the device manager shows Qualcomm 901d and nothing else. Select update driver and then select manually.

done, forcing driver to 901D
qualcomm-diag-901-D.png

can you be specific about the valid efs? is this valid?
I've tried this and this one, nothing changed
still failed at writing IMEI
tried to restore qcn file, failed
qpst-invalid-command.png

any other suggestion?
 
Last edited:

Archit9169

Senior Member
May 13, 2016
652
420
Lucknow
done, forcing driver to 901D
qualcomm-diag-901-D.png

can you be specific about the valid efs? is this valid?
I've tried this and this one, nothing changed
still failed at writing IMEI
tried to restore qcn file, failed
qpst-invalid-command.png

any other suggestion?

That guy just straight up copy and pasted my entire thread on his site... Unbelievable and he did not even have the decency to give credits.
@oka1 can we do something about this. This is the site page https://xiaomifirmware.com/guides-and-tips/efs-recovery-guide-for-redmi-note-3/

Yes that is my efs shared by me so it is valid please flash that before proceeding.
 
Last edited:

soekarmana

Member
Mar 5, 2015
7
1
That guy just straight up copy and pasted my entire thread on his site... Unbelievable and he did not even have the decency to give credits.

@oka1 can we do something about this. This is the site page https://xiaomifirmware.com/guides-and-tips/efs-recovery-guide-for-redmi-note-3/

Yes that is my efs shared by me so it is valid please flash that before proceeding.

ok then, downloaded EFS Backup[Dump][Kenzo].rar then extract it
found 2 files, modemst1 and modemst2
flashed both files in fastboot mode
rn3p-flash-modemst-efs.png

switch usb to diag mode

adb-diag-usb.png

qualcomm-diag-901-D-new.png


still cant write imei
fail-change-imei.png
 

oka1

Retired Forum Moderator
Apr 4, 2010
3,836
6,559
Honolulu, Hawaii
From the Moderator oka1

If it is not on Xda site we cannot do anything. We do not have jurisdiction.


But ....... If you contact the Webmaster @ this website and link your OP showing you did the work, then maybe you might get them to act\




Sorry .......... ~~~ oka1
 
  • Like
Reactions: Archit9169

Archit9169

Senior Member
May 13, 2016
652
420
Lucknow
If it is not on Xda site we cannot do anything. We do not have jurisdiction.


But ....... If you contact the Webmaster @ this website and link your OP showing you did the work, then maybe you might get them to act\




Sorry .......... ~~~ oka1

No problem. Btw can you raise such a request because that guy is posting most of the stuff from xda developers and not jut me but from many more too. And he didnt give credit to anyone but himself.
 

Archit9169

Senior Member
May 13, 2016
652
420
Lucknow
ok then, downloaded EFS Backup[Dump][Kenzo].rar then extract it
found 2 files, modemst1 and modemst2
flashed both files in fastboot mode
rn3p-flash-modemst-efs.png

switch usb to diag mode

adb-diag-usb.png

qualcomm-diag-901-D-new.png


still cant write imei
fail-change-imei.png

It sometimes fail. Can you try this on another system.

This solution is not perfect but it is the easiest since you dont have to modify qcn values and other stuff. If this method does not work for you then try flashing qcn. And if that too does not work for you try another system.

Worst case scenario, it might be a motherboard error or something. I will try and search some other forums for details, can you just list your problem once more point by point, like what issue do you have, can you get radio signal, is it only imei or something else.

And btw there is one more method, it requires xposed. There is one xposed module that allows you to change imei and wifi / bt address but i dont remember which one. Although it requires you to be on marshmallow.

And then there is another method which requires edl but the binary required for that is not available to download. You would have to built it yourself. The source code is available on github. But it only changes imei of sim 1 and not both.
 
  • Like
Reactions: soekarmana

Tarar

Senior Member
Aug 10, 2014
79
3
Islamabad
The link to imei changer is broken. can you please update that? and will i be able to change imei on my s9 plus using this?
 

Samip12

Member
Apr 23, 2017
48
5
I had reflashed MIUI after cm 14 for VOLTE and could not get network , even after going back to CM. My IMEI was good though .I restored efs as per your instructions and found one IMEI gone. And after restoring IMEI again using your instructions , i have my phone fully fuctional. Thank you.

My phone got bricked after applying the following commands.

I have tried flashing ROM through fastboot and EDL mode, but the device does not boot up anymore.

Please help
 

xevex123

Member
Oct 11, 2014
10
3
done, forcing driver to 901D
qualcomm-diag-901-D.png

can you be specific about the valid efs? is this valid?
I've tried this and this one, nothing changed
still failed at writing IMEI
tried to restore qcn file, failed
qpst-invalid-command.png

any other suggestion?
Can you teach me how to force to driver 901D? Because my phone also detected as 902D in device manager, detected at qpst but it keeps blinking (in device manager looks normal, not blinking like qpst) .
 

Archit9169

Senior Member
May 13, 2016
652
420
Lucknow
Can you teach me how to force to driver 901D? Because my phone also detected as 902D in device manager, detected at qpst but it keeps blinking (in device manager looks normal, not blinking like qpst) .
Read my instructions from 1st page. Just unistall the driver from device manager and manually select the driver you want.
 

Archit9169

Senior Member
May 13, 2016
652
420
Lucknow
My phone got bricked after applying the following commands.

I have tried flashing ROM through fastboot and EDL mode, but the device does not boot up anymore.

Please help
I am sorry to hear that, but based on my experiments the worst case scenorio should be corrupted efs partition.
To unbrick try flashing the fastboot rom using emergency download mode also known as edl. It will repair all partitions.
If efs partition is still corrupted then try to get your hands on non corrupted efs partition.

Can you tell me extacly how you did what you did? And where you get the files to flash beacuse I have lost access to all my files and none of them should be avai;able for download.
 

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.