2011-05-28 118 views
8

我是一名android開發人員。我有一個新的HTC Inspire 4G手機,但我不知道如何安裝USB驅動程序。 這是我android_winusb.inf文件:如何爲任何Android設備安裝ADB驅動程序?

; 
; Android WinUsb driver installation. 
; 
[Version] 
Signature   = "$Windows NT$" 
Class    = AndroidUsbDeviceClass 
ClassGuid   = {3F966BD9-FA04-4ec5-991C-D326973B5128} 
Provider   = %ProviderName% 
DriverVer   = 12/06/2010,4.0.0000.00000 
CatalogFile.NTx86 = androidwinusb86.cat 
CatalogFile.NTamd64 = androidwinusba64.cat 

; 
; This section seems to be required for WinUsb driver installation. 
; If this section is removed the installer will report an error 
; "Required section not found in INF file". 
; 
[ClassInstall32] 
Addreg = AndroidWinUsbClassReg 

[AndroidWinUsbClassReg] 
HKR,,,0,%ClassName% 
HKR,,Icon,,-1 

[Manufacturer] 
%ProviderName% = Google, NTx86, NTamd64 

[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 

[USB_Install] 
Include = winusb.inf 
Needs = WINUSB.NT 

[USB_Install.Services] 
Include  = winusb.inf 
AddService = WinUSB,0x00000002,WinUSB_ServiceInstall 

[WinUSB_ServiceInstall] 
DisplayName  = %WinUSB_SvcDesc% 
ServiceType  = 1 
StartType  = 3 
ErrorControl = 1 
ServiceBinary = %12%\WinUSB.sys 

[USB_Install.Wdf] 
KmdfService = WINUSB, WinUSB_Install 

[WinUSB_Install] 
KmdfLibraryVersion = 1.9 

[USB_Install.HW] 
AddReg = Dev_AddReg 

[Dev_AddReg] 
HKR,,DeviceInterfaceGUIDs,0x10000,"{F72FE0D4-CBCB-407d-8814-9ED673D0DD6B}" 

[USB_Install.CoInstallers] 
AddReg = CoInstallers_AddReg 
CopyFiles = CoInstallers_CopyFiles 

[CoInstallers_AddReg] 
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01009.dll,WdfCoInstaller","WinUSBCoInstaller2.dll" 

[CoInstallers_CopyFiles] 
WinUSBCoInstaller2.dll 
WdfCoInstaller01009.dll 

[DestinationDirs] 
CoInstallers_CopyFiles=11 

[SourceDisksNames] 
1 = %DISK_NAME%,,,\i386 
2 = %DISK_NAME%,,,\amd64 

[SourceDisksFiles.x86] 
WinUSBCoInstaller2.dll = 1 
WdfCoInstaller01009.dll = 1 

[SourceDisksFiles.amd64] 
WinUSBCoInstaller2.dll = 2 
WdfCoInstaller01009.dll = 2 

[Strings] 
ProviderName    = "Google, Inc." 
SingleAdbInterface   = "Android ADB Interface" 
CompositeAdbInterface  = "Android Composite ADB Interface" 
SingleBootLoaderInterface = "Android Bootloader Interface" 
WinUSB_SvcDesc    = "Android USB Driver" 
DISK_NAME     = "Android WinUsb installation disk" 
ClassName     = "Android Phone" 
+0

你在使用什麼操作系統?具體問題是什麼:您找不到驅動程序,或者您無法安裝它? – Egor 2011-05-28 06:16:18

+0

我正在使用Windows 7 64位。我已經下載了谷歌提供的USB驅動程序包,但我無法安裝HTC Inspire 4g USB驅動程序(就像我使用Nexus一樣)。 – 2011-05-30 02:49:22

+0

[使用oem驅動程序或pdanet](http://www.androidsim.net/2009/08/how-to-1-how-to-install-usb-driver-on.html)[@TonyLe] (http://stackoverflow.com/users/775564/tony-le)[*回覆刪除*] – 2013-01-01 11:39:43

回答

24

我已經自己找到了解決辦法。 我使用PDANet工具自動查找驅動程序。

http://www.junefabrics.com/android/download.php

+0

爲什麼@Nguyen Minh Binh它不會在連接時自動檢測到您的設備? – Karthik 2011-05-30 03:32:44

+0

是的,當然!但我只是將設備作爲USB存儲設備連接。我無法在上面部署我的應用程序。 – 2011-06-22 05:30:03

+1

你是最好的,我試圖找到我的Android驅動程序一個月:) – mgraph 2012-10-17 22:11:47

5

UNIVERSAL ADB DRIVER

我面前thesame問題,但我只是簡單地跟着這個容易解決它的步驟:

*連接您的Android手機在調試模式 (啓用調試模式轉到設置向下滾動關於手機向下滾動點擊七次構建號碼,它會自動啓用開發人員選項打開開發人員選項,並檢查USB調試)

下載Universal ADB Driver Installer

*選擇ADB驅動安裝程序(通用)

*安裝 *它會自動檢測你的Android設備(任何種類品牌) *選擇的設備和安裝

+0

謝謝,它的工作原理!檢查HTC Desire Z. – CoolMind 2016-05-16 14:04:03

+0

您的答案是我的聯想TAB10的唯一答案。如果一個星期前只有人指出我的答案! – 2017-11-20 13:05:02

相關問題