Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,779,159 Members 45,548 Now Online
XDA Developers Android and Mobile Development Forum

[question] how to enable htc diagnostics interface via adb or terminal emulator

Tip us?
 
mickeyasamoah
Old
#1  
mickeyasamoah's Avatar
Senior Member - OP
Thanks Meter 142
Posts: 657
Join Date: Jan 2013
Location: Accra
Prompt [question] how to enable htc diagnostics interface via adb or terminal emulator

Hello... I have being at this for a long time. I have been googling and searching Xda but no better results. I want to enable the HTC's DIAG MODE via adb-shell or terminal emulator. In most HTC devices running stock HTC ROMS, this can be enabled by entering certain codes in the dailer but it doesnt work on the DESIRE HD's stock rom.
I managed to find some commands.
This one
Code:
echo 1 > /sys/devices/virtual/android_usb/android0/f_diag/on
And this
Code:
echo 1 > /sys/devices/virtual/usb_composite/diag/enable
First one works on non sense roms and the second one works on sense roms. They actually trigger the diag mode when they are issued but when i open QPST, it says no phone although it detects the port been opened,same thing applies to DFS. In device manager i can see the HTC DIAGNOSTICS INTERFACE there. I installed the driver but its still wouldnt work.
This leaves me to think that maybe i havent enabled all the functions needed for diagmode to work.
Reason why i have come to this conclusion is that, with the samsung devices, you would have to enter 3 to 4 commands to have the mode activated.

If anyone has been able to activate diagmode on thier HTC device via adb or terminal, pls share. As many people might be depending on this to fix thier devices(changed imeis after jtag).
XDA-DEVELOPERS SENIOR MEMBER

Mickey Asamoah

DEVICE: MOTOROLA RAZR XT912
ROM: Still Searching For The Right Rom.

Please Use The Thanks Button If I Have Helped You.
 
mickeyasamoah
Old
#2  
mickeyasamoah's Avatar
Senior Member - OP
Thanks Meter 142
Posts: 657
Join Date: Jan 2013
Location: Accra
Quote:
Originally Posted by mickeyasamoah View Post
Hello... I have being at this for a long time. I have been googling and searching Xda but no better results. I want to enable the HTC's DIAG MODE via adb-shell or terminal emulator. In most HTC devices running stock HTC ROMS, this can be enabled by entering certain codes in the dailer but it doesnt work on the DESIRE HD's stock rom.
I managed to find some commands.
This one
Code:
echo 1 > /sys/devices/virtual/android_usb/android0/f_diag/on
And this
Code:
echo 1 > /sys/devices/virtual/usb_composite/diag/enable
First one works on non sense roms and the second one works on sense roms. They actually trigger the diag mode when they are issued but when i open QPST, it says no phone although it detects the port been opened,same thing applies to DFS. In device manager i can see the HTC DIAGNOSTICS INTERFACE there. I installed the driver but its still wouldnt work.
This leaves me to think that maybe i havent enabled all the functions needed for diagmode to work.
Reason why i have come to this conclusion is that, with the samsung devices, you would have to enter 3 to 4 commands to have the mode activated.

If anyone has been able to activate diagmode on thier HTC device via adb or terminal, pls share. As many people might be depending on this to fix thier devices(changed imeis after jtag).

AnyOne?
XDA-DEVELOPERS SENIOR MEMBER

Mickey Asamoah

DEVICE: MOTOROLA RAZR XT912
ROM: Still Searching For The Right Rom.

Please Use The Thanks Button If I Have Helped You.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes