[Xiaomi Mi A1 Guides, News, & Discussion] Jt380p:
Original Thread(s) :

https://goo.gl/Daq3Ut

https://goo.gl/gLSQfm

Why do we have another guide?

I've created this guide to clarify any confusion from other guides.

This guide is a full guide on how to restore your IMEI, no RIY (Research it yourself (Yes, I just made that up XD)).

Notes #1 I'M NOT RESPONSIBLE FOR BRICKING OR DAMAGING YOUR PHONE IN ANY WAY. FOLLOW THIS GUIDE AT YOUR OWN RISK.

Requirements :

A rooted phone

Running stock Nougat ROM

A data transfer cable (stock one works)

Your original IMEI(s) from your box

Some common sense :o

Required Files :

Nougat ROM* : https://goo.gl/zECMXV

Mi A1 QCN file* : https://goo.gl/LqSJyc

IMEI Converter* : https://goo.gl/NeJf9E

HEX editor : goo.gl/HEXeditor

Platform Tools : https://goo.gl/Cwjo2R

QPST Flash Tool : https://goo.gl/B69twP (Password : qpstflash.com)

Mi Flash Tool : goo.gl/MiFlashTool

Instructions :

Setting up your phone

1. Flash Nougat ROM via Mi Flash. If you're on Pie, then you have to follow a guide to downgrade to Oreo then Nougat, and most importantly, select clean all to keep your bootloader unlocked.

2. Enable USB debugging in developer options.

3. Make sure your phone is rooted properly. Then plug your phone into your PC.

4. Extract Platform tools, in the address bar of the folder type "cmd" then enter. In command prompt, type "adb devices" then enter. Grant access from your phone.

5. After given permission, type "adb shell" and enter. Then type "su" and enter. Grant root access from your phone.

6. Then type "setprop sys.usb.config diag,adb" then enter. You can exit command prompt.

Modifying IMEI(s)

1. Extract IMEI converter and open it.

2. Enter your IMEI's and convert it to hex values. Write the hex values on your Notepad or piece of paper.

3. Extract the QCN file and HEX editor. Open the QCN file with HEX editor.

4. Press "Ctrl+F" and open 'Hex-value' tab and set 'Search Direction' to 'All'. In the tab, search for "08 0A 81 00 25 79 81 67 19" and enter.

5. The hex values should be highlighted. Replace them with your SIM 1's hex values.

6. Once done, repeat step 4, but search for "08 5A 11 40 98 30 21 21 86" and enter.

7. Repeat step 5, but replace it with your SIM 2's hex values.

8. Once replaced correctly. Press 'Save'. *Not Save As*.

9. Rename your saved QCN file to "00000000_0".

Replacing your QCN file

1. On your phone, open the Phone app and dial "*#*#717717#*#*", there should be pop up saying 'diag port enabled'.

2. Install QPST to your PC and open QPST Configuration.

3. Go to Ports/Add New Port, uncheck "Show Serial and USB/QC Diagnostics only", click OK. Unplug and plug your phone to verify which is your COM port.

4. Then go to 'Start Clients' tab and select 'Software Download'. Navigate to 'Restore' tab.

5. Select your phone's port and select your QCN file below it.

6. Check 'Allow phone mismatch', then hit 'Start'.

7. Once done, unplug your phone and restart it.

Verifying your IMEI(s)

1. Open the Phone app and dial "*#06#".

2. Verify that your IMEIs match your box.

Notes #2

If it doesn't show up or doesn't match your box. You must repeat the whole process and wipe your EFS in TWRP by using these commands in the Terminal :

dd if=/dev/zero of=/dev/block/mmcblk0p14

dd if=/dev/zero of=/dev/block/mmcblk0p15

*Files provided by [MENTION=6040941]raaz1431994[/MENTION]

Thanks to OP of original threads for providing information.

Created : 4/3/19

Last Updated : 11/5/20