If you somehow flash a wrong firmware or unbrick a Xiaomi Redmi, Poco, or MI hyperOS model and face an invalid IMEI or IMEI 0000 issue. You will be required to enable Diag mode by code to restore the phone’s IMEI number.
What is Diag Mode?
Qualcomm DIAG Mode (Diagnostic Mode) is a special communication protocol that helps you to access Read only partition of Qualcomm-based Android smartphones. It allows you to Repair IMEI, SN, WiFi & other certificate-related issues.
Also read: Download Redmi Note 12R QCN File
Xiaomi HyperOS Diag Mode enable Code
Below, We provide the hidden code that you can use to enable the Qualcomm HS-USB Diagnostics 9008 port and can fix any of the following issues easily.

*#*#73694364#*#*
- IMEI Repair (QCN Read & write)
- QFIL backup/restore
- Other diagnostic COM port requires operations.
Read: Xiaomi Mi A2 Lite (Daisy) QCN File
How to enable Diag Mode on Xiaomi HyperOS 2.0?
The following method allows you to use the Xiaomi HyperOS 2.0 Diag enable Code to enable diagnostic mode and repair IMEI on your HyperOS phone with QPST Free tool. So, without further delay let’s start the process.
- Open the Dialer on your Xiaomi phone.
- Next, Type:
*#*#73694364#*#* - The Diag port will be enabled.
- Connect the phone to Windows.
- Open Device Manager & check the port will be shown.
- Next, Run Qfil on Windows & Restore the QCN file.
- The IMEI will be restored.
- Done.
Read: Xiaomi Mi 9T Pro (raphael) ENG QCN File
Bonus Tips:
- Backup First: Use it responsibly, don’t change the original IMEI only restore the original one.
- Install Driver: Don’t forget to Install Qualcomm USB Drivers on your Windows.
- Doesn’t works on MTK phones: Some brands block this in newer updates.
Also read: Redmi 8 QCN File Download
