You extract the QCN file using QPST Configuration , edit the hex values to match your original IMEI using a hex editor or NV Gene, and write it back. 2. WriteDualIMEI (WDI)
Several free or "cracked" software utilities allow for IMEI restoration via a standard USB cable. 1. Qualcomm NV Gene (QCN Method)
This is perhaps the most reliable method for modern Snapdragon devices. It involves backing up, editing, and restoring a .qcn file.
Connect to your PC and type: adb shell , then su , then setprop sys.usb.config diag,adb .
Select the assigned to your phone (check Device Manager). Enter your original IMEI into the provided fields. Click Start or Write .
Writing the wrong QCN file or interrupting the process can permanently damage the modem, leaving the phone unable to connect to any cellular network.