Skip to the content.

Enable Qualcomm Diagnostic Mode on various UEs

This guide assumes you are already familiar with QPST/EFS Explorer, the process of unlocking your bootloader, magisk, adb shell, and how to install drivers (you may have to manually force install if your PID/VID is missing from the .inf).

Download drivers from here

Qualcomm Smartphone for Snapdragon Insiders

In adb shell:

$ su
$ setprop sys.usb.config diag,serial_cdev,rmnet,dpl,qdss,adb
then launch qpst

Google Pixel (4, 5 series)

In adb shell:

$ su
$ resetprop ro.bootmode usbradio
$ resetprop ro.build.type userdebug
$ setprop sys.usb.config diag,diag_mdm,adb
$ diag_mdlog
cancel (ctrl+c) the process once it starts to "hang" at failed to open diag socket
change usb config (file transfer, no file transfer)
wait
then launch qpst

Bonus: enable NSG on Pixel by doing the following:

Install the “MagiskHide Props Config” from the Magisk repo then reboot. An older version of Magisk <v23 is required, since this module has Magisk Hide as a prerequisite.

In adb shell:

$ su
$ props
Choose "Add/edit custom props"
Choose "new custom prop"
Type in ro.vendor.build.type then press enter
Type in userdebug then press enter
Enter "Y" to select the default boot state
Reboot

Samsung (Qualcomm)

In the dialer app:

dial *#0808#
select DM+MODEM
then launch qpst

OnePlus

In the dialer app:

dial *#8011#
then launch qpst

Sony Xperia 1 III

In adb shell:

$ su
$ setprop persist.usb.eng 1
then launch qpst