How to connect a HTC android phone to the pc as debugging device

陌路散爱 提交于 2019-12-10 17:40:16

问题


I'd like to connect a HTC Desire to the pc ONLY as debugging device. Every time I plug the cable in it searches for the HTC Sync software on the pc, and it takes a looong time until finally a message appears on the phone like "no HTC Sync found, ... please install...". After that, the phone is available to eclipse for debugging. But how can I avoid that everlasting searching process?


回答1:


Below is copied from this page. Works for me very well. Just remember to follow procedure described at Android documentation how to connect devices for debugging.

The HTC desire works with the v3 version of the ADB drivers - no HTC Sync installation needed. Add these lines to android_winusb.inf:

[Google.NTx86] ;HTC Desire %SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C87 %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C87&MI_01

[Google.NTamd64] ;HTC Desire %SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C87 %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C87&MI_01




回答2:


Try to select "Charge only" connection mode as default for you device. Right now it looks like you've selected something to sync by default.

Settings -> Connection to PC -> Default connection type




回答3:


In Android 2.2 its Settings -> Applications -> Development -> USB Debugging (Enable).



来源:https://stackoverflow.com/questions/4099593/how-to-connect-a-htc-android-phone-to-the-pc-as-debugging-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!