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, ... ple开发者_JAVA百科ase install...". After that, the phone is available to eclipse for debugging. But how can I avoid that everlasting searching process?
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
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
In Android 2.2 its Settings -> Applications -> Development -> USB Debugging (Enable).
精彩评论