[Diag] How to Enable QCOM Diagnostic Mod

Diagnostic Mod allow user to Read & write NV Items such as ESN , MEID , IMEI on Qualcomm SoC based devices via QCN or XQCN.

Enable Diagnostic Mod Without Root:

  1. Open Dialer app and Type below Number/Code
  2. *#*#13491#*#* (xiaomi Redmi)
  3. *#*#717717#*#* Some other Phones
  4. done/ Your Phone booted in Diag mod.

Note: tested on Xiaomi MI and Redmi Phone running on android 7

Enable Diag Mod Via CMD / terminal (Root):

  • Enable usb Debugging from developer options connect Phone to PC using USB cable
  • open cmd in platform tool folder
  • send below code
adb devices
setprop sys.usb.config rndis,diag,adb

Android 11, Android 12:

adb shell
resetprop ro.bootmode usbradio
resetprop ro.build.type userdebug
setprop sys.usb.config diag,diag_mdm,adb

cancel (ctrl+c) once it starts to “hang” at failed to open diag socket change usb config (file transfer, no file transfer) wait qpst


Please enter your comment!
Please enter your name here

three + twelve =