[Xiaomi Mi 5s Plus Guides, News, & Discussion] TheMysticle:
TUTORIAL FIX IMEI ON XIAOMI WITHOUT ROOT AND LOCKED BOOTLOADER

Hi guys a few days ago I had a pretty big problem where my xiaomi mi 5s plus lost it's IMEI numbers, was not rooted and had a locked bootloader. Every time I tried to flash qcn with qpst it never restored my IMEI's. I couldn't find any tutorial online on how to fix this issue so I had to find my own. I decided to share the fix I have found with anyone that might need it. I hope this helps you :)

Things You Will Need:

• A Windows Computer

• Qualcomm drivers

• A Xiaomi Phone

• QPST

• A QCN for your phone

• HxD

• IMEI Converter

ANY FILES YOU NEED CAN BE DOWNLOADED BELOW

INSTRUCTIONS:

STEP 1: Download the Qualcomm drivers from the link below and install them onto your PC

STEP 2: Download and install QPST onto your PC

STEP 3: Open up the Diagnostics Port on your phone, this can be done by opening the phone app and typing in *#*#717717#*#*

STEP 4: Open the directory in which you installed QPST (Usually this is C:\Program Files (x86)\Qualcomm\QPST\bin) Inside that folder open QPSTConfig.exe and connect your phone to your PC, make sure that you opened the Diagnostics port on your phone and that it is visible in Device Manager as a diagnostics port.

STEP 5: If you see your phone listed in QPSTConfig click on start clients and then on software download. From there click Backup and Backup your EFS. Please do this as I am not responsible if you loose your MEID or Baseband. Even though all that comes back with the qcn it's nice to have a backup ;)

STEP 6: Now this is the part that I didn't do at first and therefore my phone couldn't restore the IMEI. You have to wipe your current EFS because it might be corrupted. Here is how you do that. Open the phone app and type in *#*#25327337#*#*

Then your phone should reboot and wipe your current EFS.

STEP 7: Now install HxD and open the qcn file you downloaded using HxD search for 088a click on all and set it to hex. This will bring you to the first IMEI that you need to change into your own. Go into IMEI converter, put in your IMEI and click convert. Replace the IMEI in HxD with the converted one. Then click f3 or search again and it should show you the second IMEI you need to change in HxD. Put your second IMEI into IMEI converter and repeat the process. Once that is done save the QCN file.

STEP 7: Once this is completed connect your phone to your pc and go back into QPST software download instead of Backup click restore. Then select your edited QCN file. After that click on start and your phone should start restoring the QCN file.

STEP 8: After the restore is done reboot your phone and congratulate yourself because you have just restored your IMEI. If you did everything correctly your IMEI should show up if you type *#06# into the phone app.

Problems you can run into and how to fix them:

Sometimes when you enable diagnostics port on your phone it doesn't show up on your PC. If this happens go into device manager and check if your drivers are installed and if your phone is seen. If not try disable and enable Diagnostics port on your phone again.

Sometimes after your phone reboots you need to turn diagnostics port on and off to make it noticed by your PC.

IF YOU HAVE ANY OTHER PROBLEMS FEEL FREE TO EMAIL ME OR COMMENT BELOW I WILL DO MY BEST TO HELP YOU (oliwierek.ok@gmail.com)

Also This guide was written with the xiaomi mi 5s plus in mind but it should work on other Xiaomi phones too.

DOWNLOADS:

Qualcomm Drivers: http://www.androidbrick.com/download/latest-2017-qualcomm-diag-qd-loader-windows-10-drivers-signed/

QPST: https://androiddatahost.com/1fb0d

IMEI CONVERTER: http://www.androidbrick.com/download/imei-converter/

QPST For Xiaomi Mi5s Plus: https://drive.google.com/file/d/0Bx66hM6MTmrvYmo5R1U5X1ZUakE/view

HxD: http://download.cnet.com/HxD-Hex-Ed...dl-HxDHexEdi&subj=uo&tag=button[/FONT][/SIZE]​