日期:2014-05-16  浏览次数:20514 次

ADB 自制万用驱动方法,解决找不到驱动问题,独家秘笈
做android经常碰到某个手机找不到adb 驱动,或者为了适配装了N多驱动,其实有很简单的方法解决
以官方的google android 驱动作为蓝本,把自己的设备加进去就可以了

准备记事本 打开extra\usb_driver\android_winusb.inf
看到下面的信息,相信一般有程序员素质的都能找到规律修改
[Google.NTx86]
; HTC Dream
%SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C01
%CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C02&MI_01
%SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4&PID_0FFF
; HTC Magic
%CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C03&MI_01
;
;Moto Sholes
%SingleAdbInterface%        = USB_Install, USB\VID_22B8&PID_41DB
%CompositeAdbInterface%     = USB_Install, USB\VID_22B8&PID_41DB&MI_01
;
;Google NexusOne
%SingleAdbInterface%        = USB_Install, USB\VID_18D1&PID_0D02
%CompositeAdbInterface%     = USB_Install, USB\VID_18D1&PID_0D02&MI_01
%SingleAdbInterface%        = USB_Install, USB\VID_18D1&PID_4E11
%CompositeAdbInterface%     = USB_Install, USB\VID_18D1&PID_4E12&MI_01
%CompositeAdbInterface%     = USB_Install, USB\VID_18D1&PID_4E22&MI_01

[Google.NTamd64]
; HTC Dream
%SingleAdbInterface%        = USB_Install, USB\VID_0BB4&PID_0C01
%CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C02&MI_01
%SingleBootLoaderInterface% = USB_Install, USB\VID_0BB4&PID_0FFF
; HTC Magic
%CompositeAdbInterface%     = USB_Install, USB\VID_0BB4&PID_0C03&MI_01
;
;Moto Sholes
%SingleAdbInterface%        = USB_Install, USB\VID_22B8&PID_41DB
%CompositeAdbInterface%     = USB_Install, USB\VID_22B8&PID_41DB&MI_01
;
;Google NexusOne
%SingleAdbInterface%        = USB_Install, USB\VID_18D1&PID_0D02
%CompositeAdbInterface%     = USB_Install, USB\VID_18D1&PID_0D02&MI_01
%SingleAdbInterface%        = USB_Install, USB\VID_18D1&PID_4E11
%CompositeAdbInterface%     = USB_Install, USB\VID_18D1&PID_4E12&MI_01
%CompositeAdbInterface%     = USB_Install, USB\VID_18D1&PID_4E22&MI_01

;ASUS
%SingleAdbInterface%        = USB_Install, USB\VID_0B05&PID_4C0F
%CompositeAdbInterface%     = USB_Install, USB\VID_22B8&PID_4C0F&MI_01
;

; SonyEricsson
%SingleAdbInterface%        = USB_Install, USB\VID_0FCE&PID_0DDE
%CompositeAdbInterface%     = USB_Install, USB\VID_0FCE&PID_0DDE&MI_01
%SingleBootLoaderInterface% = USB_Install, USB\VID_0FCE&PID_0DDE

注意红色的部分,这个就是我们要添加的,除了几个大牌厂商,大多小公司的都很简单,我们就以ASUS作为蓝本 复制一份填在下面就可以了,下面就是找这个ID, 其实很简单,插上USB设备后,直接打开设备管理器就能看到
打开那个!号的USB 手机设备,右键属性 详细信息 选择硬件ID, 把自己的填上就可以了。
OK, 驱动做好了,下一步选择更新安装我们刚做好的驱动就可以了。

希望能给大家带来帮助:)