[Pixel5][DIAG port] How to open DIAG port on Pixel5 to connect to QXDM/QPST

Search This thread

asharz

New member
Dec 10, 2020
2
0
Hello all, I read through some old Pixel forums on how this was achieved on older Pixels. This is what I have tried so far, but all in vain.

Pixel5 (Build: RD1A.200810.022.A4)

1. I have unlocked Pixel5 (USA) bought directly from Google. I extracted boot.img and patched with Magisk to gain root access. Once rooted, I tried "setprop sys.usb.config diag,usb" but didn't see any impact on ports.

2. Found out that I will need userdebug vendor.img from https://developers.google.com/android/drivers for my build. I extracted it and flashed it "adb reboot fastboot" & "fastboot flash vendor vendor.img". Once did this, the phone gets stuck in bootloop.

3. I used factory images from https://developers.google.com/android/images for the above build and did "flash_all.bat". Phone came up fine with stock image and lost root access. Tried to flash the same vendor.img in fastbootd mode, and again got bricked. "your device is corrupted and cannot be trusted" and stuck in bootloop.

4. Restored the device again with factory image "flash_all.bat".

I need to access the QPST/QXDM ports on this phone. I have found most my answers on xda forums and was wondering if someone ran into these issues with Pixel5.
 

Obeid Allah

Member
Aug 19, 2017
39
18
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) once it starts to "hang" at failed to open diag socket
change usb config (file transfer, no file transfer)
wait
open qpst
 

elong7681

Senior Member
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) once it starts to "hang" at failed to open diag socket
change usb config (file transfer, no file transfer)
wait
open qpst
@Obeid Allah How do I revert my phone back to the original state it was in before issuing the adb shell commands?


I figured it out and it worked
 
Last edited:

encryptttt

New member
Dec 10, 2022
1
0
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) once it starts to "hang" at failed to open diag socket
change usb config (file transfer, no file transfer)
wait
open qpst
I typed adb shell but nothing appears
 

Waqasdurrani

New member
Jun 10, 2023
1
0
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) once it starts to "hang" at failed to open diag socket
change usb config (file transfer, no file transfer)
wait
open qpst
MOD TRANSLATION
"brother my dear pixel 5 diag port is not enabled plz help"
***********************************************
bhai jan mera be pixel 5 ka diag port enable nhi ho raha plzz help


Waqasdurrani, Greetings, and welcome to XDA. As a friendly reminder, we ask all members to please post in English as stipulated by Forum Rule 4 (quoted below) -- that you just agreed to when you first registered your account; feel free to include your original message under the English message if you wish. If you do not know English, I encourage you to use any of the resources in the quote below. Your post has been translated as a one-time courtesy.

Thank you for your cooperation, and have a good one!
simplepinoi177 FSM (Forum Specific Moderator)
4. Use the English language.

We understand that with all the different nationalities, not everyone speaks English well, but please try. If you're really unable to post in English, use an online translator. You're free to include your original message in your own language, below the English translation. (This rule covers your posts, profile entries and signature). You could try :- https://translate.google.com/ , https://www.babelfish.com/ or https://fanyi.baidu.com/#auto/en or use one of your choice.
 
Last edited by a moderator:

sarmadsss

New member
Aug 18, 2023
1
0
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) once it starts to "hang" at failed to open diag socket
change usb config (file transfer, no file transfer)
wait
open qpst
I have been trying to do this all day but it never "hangs" and it keeps going on. any idea what could be wrong?
 

Top Liked Posts