;-------------------------------------------------------------------------------
;
; Motorola Android (Mot) USB Bulk device (motoandroid.inf)
;
; Copyright (c) 2009-2014 Motorola
;
;-------------------------------------------------------------------------------
[Version]
Signature="$WINDOWS NT$"
Class=USB
ClassGuid={F72FE0D4-CBCB-407d-8814-9ED673D0DD6B}
Provider=%Motorola%
DriverVer=08/08/2009,1.1.1.0
CatalogFile=motoandroid.cat

; ================= Class section =====================

[ClassInstall32]
Addreg=AndroidUsbClassReg

[AndroidUsbClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-5

[DestinationDirs]
DefaultDestDir = 12

; ================= Device section =====================

[Manufacturer]
%Motorola% = Motorola,NTx86,NTamd64

; For Win2K
[Motorola]
; For loopback testing
%USB\VID_18D1&PID_DDDD.DeviceDescTest%=androidusb.Dev, USB\VID_18D1&PID_DDDD
; Android Sooner
%USB\VID_18D1&PID_D00D.DeviceDescRelease%=androidusb.Dev, USB\VID_18D1&PID_D00D
%USB\VID_18D1&PID_DEED&MI_01.DeviceDescRelease%=androidusb.Dev, USB\VID_18D1&PID_DEED&MI_01
%USB\VID_18D1&PID_DEED&MI_02.DeviceDescRelease%=androidusb.Dev, USB\VID_18D1&PID_DEED&MI_02
;Calgary
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D74&MI_04
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D75&MI_02
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D76&MI_02

;Morrison
%MotSingleInterface%    = androidusb.Dev, USB\VID_22B8&PID_2D62
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D61&MI_01
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D64&MI_01
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D66&MI_00
;sholes umts
%MotSingleInterface%    = androidusb.Dev, USB\VID_22B8&PID_41D1
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41D2
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41DA&MI_04
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41DB&MI_01
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41DC&MI_01
;Sholes CDMA
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41DB&MI_01
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41E2&MI_04
;
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41EE&MI_04

; For XP and later
[Motorola.NTx86]

; For loopback testing
%USB\VID_18D1&PID_DDDD.DeviceDescTest%=androidusb.Dev, USB\VID_18D1&PID_DDDD
; Android Sooner
%USB\VID_18D1&PID_D00D.DeviceDescRelease%=androidusb.Dev, USB\VID_18D1&PID_D00D
%USB\VID_18D1&PID_DEED&MI_01.DeviceDescRelease%=androidusb.Dev, USB\VID_18D1&PID_DEED&MI_01
%USB\VID_18D1&PID_DEED&MI_02.DeviceDescRelease%=androidusb.Dev, USB\VID_18D1&PID_DEED&MI_02
;Calgary
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D74&MI_04
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D75&MI_02
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D76&MI_02

;Morrison
%MotSingleInterface%    = androidusb.Dev, USB\VID_22B8&PID_2D62
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D61&MI_01
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D64&MI_01
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D66&MI_00
;sholes umts
%MotSingleInterface%    = androidusb.Dev, USB\VID_22B8&PID_41D1
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41D2
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41DA&MI_04
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41DB&MI_01
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41DC&MI_01
;Sholes CDMA
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41DB&MI_01
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41E2&MI_04
;
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41EE&MI_04

[Motorola.NTamd64]
; For loopback testing
%USB\VID_18D1&PID_DDDD.DeviceDescTest%=androidusb.Dev, USB\VID_18D1&PID_DDDD
; Android Sooner
%USB\VID_18D1&PID_D00D.DeviceDescRelease%=androidusb.Dev, USB\VID_18D1&PID_D00D
%USB\VID_18D1&PID_DEED&MI_01.DeviceDescRelease%=androidusb.Dev, USB\VID_18D1&PID_DEED&MI_01
%USB\VID_18D1&PID_DEED&MI_02.DeviceDescRelease%=androidusb.Dev, USB\VID_18D1&PID_DEED&MI_02
;Calgary
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D74&MI_04
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D75&MI_02
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D76&MI_02

;Morrison
%MotSingleInterface%    = androidusb.Dev, USB\VID_22B8&PID_2D62
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D61&MI_01
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D64&MI_01
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_2D66&MI_00
;sholes umts
%MotSingleInterface%    = androidusb.Dev, USB\VID_22B8&PID_41D1
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41D2
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41DA&MI_04
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41DB&MI_01
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41DC&MI_01
;Sholes CDMA
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41DB&MI_01
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41E2&MI_04
;
%MotCompositeInterface% = androidusb.Dev, USB\VID_22B8&PID_41EE&MI_04

[androidusb.Dev.NT]
CopyFiles=androidusb.Files.Ext

[androidusb.Dev.NT.Services]
Addservice = androidusb, 0x00000002, androidusb.AddService

[androidusb.AddService]
DisplayName    = %androidusb.SvcDesc%
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %10%\System32\Drivers\motoandroid.sys
AddReg         = androidusb.AddReg
LoadOrderGroup = Base

[androidusb.AddReg]
HKR,"Parameters","MaximumTransferSize",0x10001,4096
HKR,"Parameters","DebugLevel",0x10001,2
HKR, Parameters\Wdf, VerboseOn,       0x00010001, 1
HKR, Parameters\Wdf, VerifierOn,      0x00010001, 1
HKR, Parameters\Wdf, DbgBreakOnError, 0x00010001, 1

[androidusb.Files.Ext]
motoandroid.sys

[SourceDisksNames]
1=%Disk_Description%,,,

[SourceDisksFiles]
motoandroid.sys = 1

;-------------- WDF Coinstaller installation
[DestinationDirs]
CoInstaller_CopyFiles = 11

[androidusb.Dev.NT.CoInstallers]
AddReg=CoInstaller_AddReg
CopyFiles=CoInstaller_CopyFiles

[CoInstaller_CopyFiles]
wdfcoinstaller01007.dll

[SourceDisksFiles]
wdfcoinstaller01007.dll=1 ; make sure the number matches with SourceDisksNames

[CoInstaller_AddReg]
HKR,,CoInstallers32,0x00010000, "wdfcoinstaller01007.dll,WdfCoInstaller"

[androidusb.Dev.NT.Wdf]
KmdfService = androidusb, androidusb_wdfsect

[androidusb_wdfsect]
KmdfLibraryVersion = 1.7

;---------------------------------------------------------------;

[Strings]
Motorola                = "Motorola"
Disk_Description        = "ADB Interface Installation Disk"
androidusb.SvcDesc      = "ADB Interface Driver"
ClassName               = "ADB Interface"
USB\VID_18D1&PID_DDDD.DeviceDescTest="Android Sooner ADB Testing Interface"
USB\VID_18D1&PID_D00D.DeviceDescRelease="Android Sooner Single ADB Interface"
USB\VID_18D1&PID_DEED&MI_01.DeviceDescRelease="Android Sooner Composite ADB Interface"
USB\VID_18D1&PID_DEED&MI_02.DeviceDescRelease="Android Sooner Kernel Debug Interface"
MotSingleInterface		= "Mot Single ADB Interface"
MotCompositeInterface	= "Mot Composite ADB Interface"
