;
; ssudaoa.inf
;
; Installs WinUsb
;

[Version]
Signature = "$Windows NT$"
Class     = AndroidAoADeviceClass
ClassGUID = {CA000021-5064-48EA-8922-E08580F9955B}
Provider = %ManufacturerName%
PnpLockdown=1
CatalogFile=ssudaoa.cat
DriverVer=09/23/2024,2.21.0.0

; ========== Manufacturer/Models sections ===========

[Manufacturer]
%ManufacturerName% = Standard,NTx86,NTx86.6.1,NTx86.10.0...22000,NTamd64,NTamd64.6.1,NTamd64.10.0...22000,NTarm64,NTarm64.10.0...22000

[Standard.NTx86]
%DeviceName% =USB_Install.CoInst, USB\VID_18D1&PID_2D00	; Android Open Accessory Mode
%DeviceName% =USB_Install.CoInst, USB\VID_18D1&PID_2D01&MI_00	; Android Open Accessory Mode with ADB Interface

[Standard.NTx86.6.1]
%DeviceName% =USB_Install, USB\VID_18D1&PID_2D00	; Android Open Accessory Mode
%DeviceName% =USB_Install, USB\VID_18D1&PID_2D01&MI_00	; Android Open Accessory Mode with ADB Interface

[Standard.NTx86.10.0...22000]
%DeviceName% =USB_Install.Win11, USB\VID_18D1&PID_2D00	; Android Open Accessory Mode
%DeviceName% =USB_Install.Win11, USB\VID_18D1&PID_2D01&MI_00	; Android Open Accessory Mode with ADB Interface

[Standard.NTamd64]
%DeviceName% =USB_Install.CoInst, USB\VID_18D1&PID_2D00	; Android Open Accessory Mode
%DeviceName% =USB_Install.CoInst, USB\VID_18D1&PID_2D01&MI_00	; Android Open Accessory Mode with ADB Interface

[Standard.NTamd64.6.1]
%DeviceName% =USB_Install, USB\VID_18D1&PID_2D00	; Android Open Accessory Mode
%DeviceName% =USB_Install, USB\VID_18D1&PID_2D01&MI_00	; Android Open Accessory Mode with ADB Interface

[Standard.NTamd64.10.0...22000]
%DeviceName% =USB_Install.Win11, USB\VID_18D1&PID_2D00	; Android Open Accessory Mode
%DeviceName% =USB_Install.Win11, USB\VID_18D1&PID_2D01&MI_00	; Android Open Accessory Mode with ADB Interface

[Standard.NTarm64]
%DeviceName% =USB_Install, USB\VID_18D1&PID_2D00	; Android Open Accessory Mode
%DeviceName% =USB_Install, USB\VID_18D1&PID_2D01&MI_00	; Android Open Accessory Mode with ADB Interface

[Standard.NTarm64.10.0...22000]
%DeviceName% =USB_Install.Win11, USB\VID_18D1&PID_2D00	; Android Open Accessory Mode
%DeviceName% =USB_Install.Win11, USB\VID_18D1&PID_2D01&MI_00	; Android Open Accessory Mode with ADB Interface

; ========== Class definition (for Windows 8 and earlier versions) ===========

[ClassInstall32]
AddReg = ClassInstall_AddReg

[ClassInstall_AddReg]
HKR,,,,%ClassName%
HKR,,Icon,,-20

; =================== Installation ===================

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

[USB_Install.NT.Services]
Include=winusb.inf
AddService=WinUsb,0x00000002,WinUsb_ServiceInstall

[USB_Install.NT.Wdf]
KmdfService = WINUSB, Winssud.Install

[USB_Install.NT.HW]
AddReg=Dev_AddReg

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

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

[USB_Install.Win11.NT.Wdf]
KmdfService = WINUSB, Winssud.Install

[USB_Install.Win11.NT.HW]
AddReg=Dev_AddReg

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

[USB_Install.Coinst.NT.Services]
Include=winusb.inf
AddService=WinUsb,0x00000002,WinUsb_ServiceInstall

[USB_Install.Coinst.NT.Wdf]
KmdfService = WINUSB, Winssud.Install

[USB_Install.Coinst.NT.HW]
AddReg=Dev_AddReg

[Dev_AddReg]
; By default, USBDevice class uses iProduct descriptor to name the device in
; Device Manager on Windows 8 and higher.
; Uncomment for this device to use %DeviceName% on Windows 8 and higher:
;HKR,,FriendlyName,,%DeviceName%
HKR,,DeviceInterfaceGUIDs,0x10000,"{C3516FF6-1B2B-426D-A2D9-7A1B1634AA0A}"

[USB_Install.Coinst.NT.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01007.dll,WdfCoInstaller","WinUSBCoInstaller.dll"

[CoInstallers_CopyFiles]
WinUSBCoInstaller.dll
WdfCoInstaller01007.dll

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

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

[USB_Install.NTarm64.Wdf]
KmdfService = WINUSB, Winssud.Install

[USB_Install.NTarm64.HW]
AddReg  = Dev_AddReg

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

[USB_Install.Win11.NTarm64.Services]
Include     = winusb.inf
Needs = WINUSB.NT.Services

[USB_Install.Win11.NTarm64.Wdf]
KmdfService = WINUSB, Winssud.Install

[USB_Install.Win11.NTarm64.HW]
AddReg  = Dev_AddReg

[USB_Install.NTarm64.CoInstallers]
AddReg    = CoInstallers_AddReg_NTarm64
CopyFiles = CoInstallers_CopyFiles_NTarm64

[CoInstallers_AddReg_NTarm64]
; No AddReg

[CoInstallers_CopyFiles_NTarm64]
; No CopyFiles

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

[Winssud.Install]
KmdfLibraryVersion  = 1.7

[DestinationDirs]
CoInstallers_CopyFiles=11

; ================= Source Media Section =====================

[SourceDisksNames]
1 = %DiskName%,,,\i386
2 = %DiskName%,,,\amd64
3 = %DiskName%,,,\arm64

[SourceDisksFiles.x86]
WinUSBCoInstaller.dll  = 1
WdfCoInstaller01007.dll = 1

[SourceDisksFiles.amd64]
WinUSBCoInstaller.dll  = 2
WdfCoInstaller01007.dll = 2

[SourceDisksFiles.arm64]

; =================== Strings ===================

[Strings]
ManufacturerName="SAMSUNG Electronics Co., Ltd."
ClassName="SAMSUNG Android Open Accessory(AOA) devices"
DiskName="SAMSUNG Android Open Accessory(AOA) Installation Disk"
WinUsb_SvcDesc="SAMSUNG Android Open Accessory(AOA) Driver"
DeviceName="SAMSUNG Android Open Accessory(AOA) Device"
REG_MULTI_SZ = 0x00010000
