Monday, October 11, 2010

Using Google's ADB driver for other phones

If you've got a few test phones and you're developing under Windows7, you may find that your particular device doesn't work with the standard Google ADB driver.  This is the one that's installed by the SDK in the usb_driver folder.

The easy way to fix this is to add the device's ID into the android_winusb.inf file found in the root of the usb_driver folder.

Here's some I've had use of recently, and know work on Win7 x64.

%SingleAdbInterface%        = USB_Install, USB\VID_22B8&PID_70A9
%CompositeAdbInterface%     = USB_Install, USB\VID_22B8&PID_70A9&MI_01

;Droid X2
%SingleAdbInterface%        = USB_Install, USB\VID_22B8&PID_70C9
%CompositeAdbInterface%     = USB_Install, USB\VID_22B8&PID_70C9&MI_01

;Sony Xperia Play

%SingleAdbInterface%        = USB_Install, USB\Vid_0fce&Pid_215b
%CompositeAdbInterface%     = USB_Install, USB\Vid_0fce&Pid_215b&MI_01

;Samsung Galaxy Tab 10.1
%SingleAdbInterface%        = USB_Install, USB\VID_04E8&PID_685E&MI_02
%CompositeAdbInterface%     = USB_Install, USB\VID_04E8&PID_685E&REV_0400&MI_02

;Verizon HTC Incredible
%SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C9E
%CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C9E&MI_01

;T-Mobile HTC G2
%SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C91
%CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C91&MI_01

;Sprint HTC EVO
%SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C8D
%CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C8D&MI_01

;Motorola Droid 2
%SingleAdbInterface%       = USB_Install, USB\VID_22B8&PID_42A4
%CompositeAdbInterface%      = USB_Install, USB\VID_22B8&PID_42A4&MI_01

; Motorola Droid 3
%SingleAdbInterface%        = USB_Install, USB\VID_22B8&PID_42D7
%CompositeAdbInterface%     = USB_Install, USB\VID_22B8&PID_42D7&MI_01

;Google Nexus S
%SingleAdbInterface%        = USB_Install, USB\VID_18D1&PID_4E22
%CompositeAdbInterface%     = USB_Install, USB\VID_18D1&PID_4E22&MI_01

;Samsung Fascinate
%CompositeAdbInterface%     = USB_Install, USB\VID_04E8&PID_6640&MI_00
%SingleBootLoaderInterface% = USB_Install, USB\VID_04E8&PID_6640&MI_04

; Acer Iconia a100
%SingleAdbInterface%        = USB_Install, USB\VID_0502&PID_3348
%CompositeAdbInterface%     = USB_Install, USB\VID_0502&PID_3348&MI_01

The attractive thing about this, to me, is that you get to avoid installing whatever annoying music-sync software comes with the phone, but can still debug with it.

1 comment: