OPEN DIAG代码

root 设备 adb 打开命令


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

Samsung 手机


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

OnePlus 手机


dial *#8011#
then launch qpst

Sony Xperia


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

Sonim 手机


dial *#*#0701#*#*
then launch qpst

Google Pixel


$ 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

其他


adb shell su -c "setprop sys.usb.config rndis,none,adb"

adb shell su -c "setprop sys.usb.config diag,adb"

adb shell su -c "setprop sys.usb.config rndis,diag,adb"

adb shell su -c "setprop sys.usb.config rndis,none,diag,adb"

adb shell su -c "setprop sys.usb.config diag,rndis,adb"

个人笔记记录