On your smartphone, enable "USB Debugging" in Developer Options. Use a specific dialer code (like *#*#717717#*#* or *#*#13491#*#* ) or an ADB command ( adb shell setprop sys.usb.config diag,adb ) to enter Diagnostic (Diag) Mode.

Input the original IMEI numbers found on your device's box or under the battery.

Allows for writing both IMEI 1 and IMEI 2 for dual-SIM Qualcomm smartphones.