Update : For Xiaomi Mi6 please use latest QPST


Today we will learn how to fix/repair our beloved Snapdragon’s lost or corrupt imei’s and as a bonus, we will also learn to fix our “unknown” or again, corrupt Baseband’s ( modem configuration ).

Before we begin i must add, changing a working imei of your phone is ILLEGAL. “International Mobile Station Equipment Identity” is your phone’s unique identity. The IMEI number is used by a GSM network to identify valid devices and therefore can be used for stopping a stolen phone from accessing that network. So if you wanna change that number you are probably a thief or you are living in Turkey 🙂

If you flash a wrong firmware/rom to your phone, for example, the same model but sold in different countries with different modem configurations, your baseband can become “unknown” and your imei will probably be “null” or “invalid”. This is because your original modem configuration has been written over with the wrong one. This can be fixed while flashing the right rom back again if you are lucky  (if original data is not corrupt).

So our first goal should be to backup that important data before we upgrade even to stock rom, because even the biggest phone makers are still amateurs when its about Qualcomm’s data/partition structure. I’ve seen many cases about lost or null imei’s after stock OTA updates, Samsung owners will hear me well i know.

For this operation we will use the program called QPST from Qualcomm himself, it’s a service grade factory software to handle/change/fix many configuration options on Qualcomm’s. Other then QPST we will need (+ for editing imei) :

1. Qualcomm  QPST (2.7.437)

2. Mitac Hexdecimal Editor (or any other hex editor you like)

3. Minimal ADB Fastboot 

4. imei converter

5. Qualcomm QPST Diag drivers (2017, universal)

6. Your phone model’s USB drivers (in some cases)


First Step :

We need to open our Snapdragon’s so-called “Diag/nostics Port” before we can do anything. To do that; some phones have just a hidden code to open that port, some phones needed to be forced from adb after rooted and some phones has that port open by default (and some you can open from developer options). As you can see we have many options here. I will give some examples (mostly used), others you can ask me in comments.

Our working example will be Xiaomi’s Snapdragon 820 flagship Mi5. You can open that diag port with dialing *#*#7177171#*#*, a message will come up saying “Diag USB port enable”. If you installed your drivers properly you see the ports under device manager like this :


Now open QPST Configuration browsing “C:\Program Files (x86)\Qualcomm\QPST\bin\QPSTConfig.exe” and you will see that our needed diag port has been added automatically.


In some cases (depending on the diag drivers) if you dont see the port auto added just click “Add New Port” tab right under the window and untick “Show Serial and USB/QC Diagnostic ports only”. You will see other ports thats been recognized from your PC, choose the right one and click OK. In this example im adding LG G3’s USB Serial Port that serves as Diag port for us too (open by default example).




As you can see in the picture we now have 2 phones connected in QPST Configuration, one is Xiaomi Mi5 (MSM8996) other is LG G3 (MSM8974).



Second Step :

Now we are ready to backup our precious “baseband/imei” configuration. Click “Start Clients” from drop down menu and choose “Software Download”.


In Software Download window you can see your phone’s port in first line, if you have 2 phones connected like me, click Browse and choose the phone that you want to work on.


Then come to “Backup” option tab, again click browse, choose your destination and name of your QCN backup, choose the second option QPST NV Memory Files (.qcn) as “Save as type”, NOT the first option as (.xqcn). We want our backup in QCN format, you will see why later. AND click “Start”.



After you backed up your Snapdragon’s QCN, DON’T fear any bricks (software), lost imei’s, corrupt baseband’s anymore. You have all you need to restore those in case of any accident.


Part 2 with Youtube video :


Copyright © 2016 by All rights reserved.

Leave a Reply

273 Yorum - "Ultimate Guide : Qualcomm Snapdragon imei and Baseband Repair / Fix – Part 1"

Sıralama:   En Yeniler | Eskiler | Beğenilenler

By this method can IMEI number shown as 0 be repaired on my Moto G5 xt1677??


my imei is ok and baseband


hi guys. yesterday i use hidden settings apk and changed to usa band mode now my sim1 have no signal. my phone is redmi note 4x 3/16gb . anyonehave cqn file?


Size “[email protected]” adresinden sorunum ile alakalı detaylı bilgi yolladım. Umarım bana yardımcı olabilirsiniz…


Hocam selamlar.. yazınızda hiç birşey bilmeyen ben bile olayı çok net anladım.. öncelikle teşekkürler..
Benim telefonum Lg v10 h901 (LGF600Sad634730)..
QPST CONF. ile açtığımda ve port ekle dediğimde port5 de cihazı bir modem olarak iki (LGF600Sad634730)bu kod ile görüyor. ok. dediğimde ise com5 ekleniyor fakat “nophone” yazısı çıkıyor.. bir türlü sorunumu çözemiyorum.. Lütfen bana yardımcı olabilirmisiniz..?


merhaba efendim … öğretici … Hindistan’dan im .. sadece bir soru .. ONEPLUS 5 için aynı yöntemi izleyebilir miyim?

lütfen bana yardım et … telefonumu kurtar


Hi. Do you have qcn backup for nubia z11 (nx531j) ?
My phone has a problem, imei : null and mobile network is no service.
Please help me!

Hello! please help me … I have xiaomi mi5 64bg … I backed up as .xqnc unintentionally Then, I entered these codes in the cmd … adb shell his ls -al /dev/block/platform/soc/624000.ufshc/by-name and later, dd if = / dev / zero of = / dev / block / sdf3 dd if = / dev / zero of = / dev / block / sdf5 dd if = / dev / zero of = / dev / block / sde28 reboot then, when trying to modify the imei I remembered that I had made the backup with xqnc try to restore… Read more »

Hi Bro. Search for gemini folder, download .xqcn, restore it, then do the tutorial again (this time with a .qcn backup).!jUlxiQJB!AR9_bfPfhFMaVa5TRPenYg


Hi Performing the installation of the MIUI9 rom by means of xiaomi miflash, download the ROM available on the Xiaomi website. The flash process is done correctly, in miflash select the option “Flash all” and phone starts correctly however at the moment of validate the account shows this message “Device ID not valid, the device ID must be a valid mac address or IMEI “and I can not continue with the validation process because the wifi is not activated nor does it identify the sim card. I can not enter the settings of the computer because I can not verify… Read more »

Sir, do you have the qcn file for the Leeco le2 x526 ? I lost my network and I tried to backup it shows Disk Error while writing to file. Please help.Thank you


Hi Bro. Can you share the .xqcn of Xiaomi Mi5S Plus “natrium”?. Thanks


Hi Sir i just download the rom here i dont know if this is a international or CN? and yes i always used that code to reboot edl.. I have search some forums about qcm/efs? problem with sim cards/gsm network. I think thats the problem in my phone but i dont have a qcn/efs backup or file. can you help me on this please? 🙁 i have so many sleepless night and im not feeling well because of my phone (LOL) please help me on this i really appreciate it. thank you


BTW im trying to repair this usingyour method with your CM12 ROM but always download fail with and error message “Unable to download Flash programmer using Sahara Protocol” “Download Fail: Sahara Fail” i always tried the key combination and my port always read it but still this error occurs 🙁


hi im a newbie in exploring my phone i want to ask if this will work to Lenovo vibe shot Z90a40? i have a problem in my sim cards 1 (no network) & 2 (no sim 2 recognize) after flashing S363 (MM). Please help me on this.. thank you 🙂


this code *#*#7177171#*#*, nt working in coolpad note 5 plz give me right code for diag port


Hello, Bro, this is great information. I have a Xiaomi Note 2 (6G, international version) need to recovery but I had no backup. Can you send me a xqcn or qcn file to tl2531 at ? Thanks.


Hello Androidbrick, thanks for sharing this fabulous tutorial, I have successfully changed the imei on many devices like Xiaomi Mi5, Mi5S, Mi6, Mi Max, My Note 2 …

Now I have a problem that I have dedicated many days and I could not Solve (doing this tutorial with an Xiaomi Mi Note 2), I think you would be the only one who could help me, I have offered a reward if you can do it (because the device I tried to change imei is not mine and I am responsible for this) This is a detailed description:


not working my version is 6.0 and security patch level=01-04-16


i have tried it on Mi5 after editing QCN i restored it successfully but nothing is changed i guess its not working


Hallo Bro, i’ve tried to put this command “ls -al /dev/block/platform/soc/624000.ufshc/by-name” but did not work. What the command for OPPO FIND 7A 16GB? thank’s before.


Bro, do you have qcn for oppo find 7a?


to be sure that qcn backup is good, has your device to be powered off?? I’m asking it because I can only backup it when it is powered on . While when it’s off qpst says error read disk…it can’t read anything… Another thing could you explain the differences between all qualcomm drivers? I can force any driver such as 9022, 9021, because in automatic way it doesn’t accept qualcomm driver but its original one.

%d blogcu bunu beğendi: