; ; WbdiSpi.inf ; [Version] Signature="$Windows NT$" Class=Biometric ; TODO: edit Class ClassGuid={53D29EF7-377C-4D14-864B-EB3A85769359} ; TODO: edit ClassGuid Provider=%ManufacturerName% CatalogFile=WbdiSpi.cat DriverVer = 11/14/2018,3.2.5.200 [Manufacturer] %ManufacturerName%=Standard,NTARM64 [Standard.NTARM64] %DeviceName%=MyDevice_Install, ACPI\GXFP3200 %DeviceName%=MyDevice_Install, ACPI\GXFP3206 %DeviceName%=MyDevice_Install, ACPI\GXFP3208 %DeviceName%=MyDevice_Install, ACPI\GXFP3288 %DeviceName%=MyDevice_Install, ACPI\GXFP5187 %DeviceName%=MyDevice_Install, ACPI\GXFP5200 %DeviceName%=MyDevice_Install, ACPI\GXFP55A4; for qualcomm GF3268 %DeviceName%=MyDevice_Install, ACPI\GXFP62A2; for qualcomm GF3206 %DeviceName%=MyDevice_Install, ACPI\GXFP61A2; for HuaWei GF3206 ;[ClassInstall32] ;AddReg=SampleClass_RegistryAdd [SampleClass_RegistryAdd] ;HKR,,,,%ClassName% ;HKR,,Icon,,"-10" ;HKR,,,,%ClassName% ;HKR,,Icon,,"-201" ;HKR,,IconPath,0x00010000,"%SYSTEMROOT%\system32\SysClass.dll,-201" [SourceDisksFiles] wbdi.dll=1 GoodixEngineAdapter.dll=1 ;FpDataProcessor.signed.dll=1 ; ;WbdiDataEnclave.signed.dll=1 ; GoodixEventLog.dll=1 [SourceDisksNames] 1 = %DiskName% ; =================== UMDF Device ================================== [MyDevice_Install.NT] CopyFiles=UMDriverCopy, WinBioEngineAdapterCopy, DependLibsCopy, SgxCopy CopyFiles=SvcCopyFiles AddProperty=Device_Properties [MyDevice_Install.NT.hw] AddReg=Biometric_Device_AddReg AddReg=DriverPlugInAddReg, DatabaseAddReg, QcTreeTaLogReg,ETWEventLogAddReg [MyDevice_Install.NT.Services] AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall ;AddService=SessionSvc,0x00000800,SvcName_ServicceInstall [MyDevice_Install.NT.Wdf] UmdfService=gfspi,gfspi_Install UmdfServiceOrder=gfspi UmdfImpersonationLevel=Impersonation ; this enables direct hardware access from UMDF driver UmdfDirectHardwareAccess=AllowDirectHardwareAccess ; direct i/o devices cannot run in default pool. UmdfHostProcessSharing=ProcessSharingDisabled [Device_Properties] DeviceIcon,,,,"%%SYSTEMROOT%%\system32\SysClass.dll,-201" ; This is where a device specific icon can be specified. [gfspi_Install] UmdfLibraryVersion=2.15.0 ServiceBinary=%12%\UMDF\wbdi.dll [Biometric_Device_AddReg] HKR,,"DeviceCharacteristics",0x10001,0x0100 ; Use same security checks on relative opens HKR,,"Security",,"D:P(A;;GA;;;BA)(A;;GA;;;SY)" ; Allow generic-all access to Built-in administrators and Local system ;HKR,,"LowerFilters",0x00010008,"WinUsb" ; FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND HKR,,"Exclusive",0x10001,1 HKR,,"SystemWakeEnabled",0x00010001,1 HKR,,"DeviceIdleEnabled",0x00010001,1 HKR,,"UserSetDeviceIdleEnabled",0x00010001,1 HKR,,"DefaultIdleState",0x00010001,1 HKR,,"DefaultIdleTimeout",0x00010001,5000 HKR,WudfPowerPolicysettings,"WdfDefaultWakeFromSleepState",0x00010001,1 [DriverPlugInAddReg] HKR,WinBio\Configurations,DefaultConfiguration,,"0" HKR,WinBio\Configurations\0,SensorMode,0x10001,1 ; Basic - 1, Advanced - 2 HKR,WinBio\Configurations\0,SystemSensor,0x10001,1 ; UAC/Winlogon - 1 HKR,WinBio\Configurations\0,SensorAdapterBinary,,"WinBioSensorAdapter.DLL" ; Windows built-in WBDI sensor adapter. HKR,WinBio\Configurations\0,EngineAdapterBinary,,"GoodixEngineAdapter.DLL" ; Vendor engine HKR,WinBio\Configurations\0,StorageAdapterBinary,,"WinBioStorageAdapter.DLL" ; Windows built-in storage adapter HKR,WinBio\Configurations\0,DatabaseId,,"449B518E-CAE1-49FB-9A52-376E26E8546D" ; Unique database GUID [DatabaseAddReg] HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{449B518E-CAE1-49FB-9A52-376E26E8546D},BiometricType,0x00010001,0x00000008 HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{449B518E-CAE1-49FB-9A52-376E26E8546D},Attributes,0x00010001,0x00000001 HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{449B518E-CAE1-49FB-9A52-376E26E8546D},Format,,"00000000-0000-0000-0000-000000000000" HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{449B518E-CAE1-49FB-9A52-376E26E8546D},InitialSize,0x00010001,0x00000020 HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{449B518E-CAE1-49FB-9A52-376E26E8546D},AutoCreate,0x00010001,0x00000001 HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{449B518E-CAE1-49FB-9A52-376E26E8546D},AutoName,0x00010001,0x00000001 HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{449B518E-CAE1-49FB-9A52-376E26E8546D},FilePath,,"" HKLM,System\CurrentControlSet\Services\WbioSrvc\Databases\{449B518E-CAE1-49FB-9A52-376E26E8546D},ConnectionString,,"" ;add reg for TA loading ;[TaLoadAddReg] ;HKLM,System\CurrentControlSet\Services\QcTrEE\Parameters\SecureServices\{2A51AA84-2DFF-468C-9629-B50103B969D9},Enabled,0x00010001,0x00000001 ;HKLM,System\CurrentControlSet\Services\QcTrEE\Parameters\SecureServices\{2A51AA84-2DFF-468C-9629-B50103B969D9},SecureApp,0x00010001,0x00000001 ;HKLM,System\CurrentControlSet\Services\QcTrEE\Parameters\SecureServices\{2A51AA84-2DFF-468C-9629-B50103B969D9},AppName,,"sampleApp" ;HKLM,System\CurrentControlSet\Services\QcTrEE\Parameters\SecureServices\{2A51AA84-2DFF-468C-9629-B50103B969D9},LoadApp,0x00010001,0x00000001 ;HKLM,System\CurrentControlSet\Services\QcTrEE\Parameters\SecureServices\{2A51AA84-2DFF-468C-9629-B50103B969D9},MajorVersion,0x00010001,0x00000001 ;HKLM,System\CurrentControlSet\Services\QcTrEE\Parameters\SecureServices\{2A51AA84-2DFF-468C-9629-B50103B969D9},MinorVersion,0x00010001,0x00000000 ;HKLM,System\CurrentControlSet\Services\QcTrEE\Parameters\SecureServices\{2A51AA84-2DFF-468C-9629-B50103B969D9},FileName,,"goodixfp.mbn" ;HKLM,System\CurrentControlSet\Services\QcTrEE\Parameters\SecureServices\{2A51AA84-2DFF-468C-9629-B50103B969D9},OSDependencies,0x00010000,"{27447C21-BCC3-4D07-A05B-A3395BB4EEE7}", "{1CFE8948-E8FE-43b4-A5C5-DB9802278947}" ;HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\TPM,Start,0x00010001,0x00000001 ;add for autoLogger [QcTreeTaLogReg] HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\TrEE,"BufferSize",0x00010001,0x10 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\TrEE,"Guid",,"{7F7D7CDE-1973-445F-B132-2B9544FEE9EC}" HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\TrEE,"MinimumBuffers",0x00010001,0x4 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\TrEE,"MaximumBuffers",0x00010001,0x8 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\TrEE,"LogFileMode",0x00010001,0x2 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\TrEE,"Start",0x00010001,0x00000001 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\TrEE,"Status",0x00010001,0x0 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\TrEE,"ClockType",0x00010001,0x2 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\TrEE,"MaxFileSize",0x00010001,0x00000010 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\TrEE,"FlushTimer",0x00010001,0x1 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\TrEE\{DE3B1201-A1DF-478A-9062-E443CDABF070},"Enabled",0x00010001,1 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\TrEE\{DE3B1201-A1DF-478A-9062-E443CDABF070},"EnableFlags",0x00010001,0xFFFFFFFF HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\TrEE\{DE3B1201-A1DF-478A-9062-E443CDABF070},"EnableLevel",0x00010001,6 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\TrEE\{DE3B1201-A1DF-478A-9062-E443CDABF070},"MatchAnyKeyword",0x000B0001,0xFFFFFFFF [ETWEventLogAddReg] HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Goodix-FingerprintProvider/Debug,OwningPublisher,,"{5be7f79a-d41d-4368-a72f-384887243344}" HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Goodix-FingerprintProvider/Debug,Enabled,0x00010001,1 HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Goodix-FingerprintProvider/Debug,MaxSize,0x00010001,1073741824 ;1073741824(1G:1024*1024*1024) HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Goodix-FingerprintProvider/Debug,Isolation,0x00010001,0 HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Goodix-FingerprintProvider/Debug,ChannelAccess,,"O:BAG:SYD:(A;;0x2;;;S-1-15-2-1)(A;;0x2;;;S-1-15-3-1024-3153509613-960666767-3724611135-2725662640-12138253-543910227-1950414635-4190290187)(A;;0xf0007;;;SY)(A;;0x7;;;BA)(A;;0x7;;;SO)(A;;0x3;;;IU)(A;;0x3;;;SU)(A;;0x3;;;S-1-5-3)(A;;0x3;;;S-1-5-33)(A;;0x1;;;S-1-5-32-573)" HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Goodix-FingerprintProvider/Debug,Type,0x00010001,0 HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{5be7f79a-d41d-4368-a72f-384887243344},,0x00000000,"Goodix" HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{5be7f79a-d41d-4368-a72f-384887243344},"ResourceFileName",0x00020000,"%%SYSTEMROOT%%\system32\GoodixEventLog.dll" HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{5be7f79a-d41d-4368-a72f-384887243344},"MessageFileName",0x00020000,"%%SYSTEMROOT%%\system32\GoodixEventLog.dll" HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{5be7f79a-d41d-4368-a72f-384887243344},"Enabled",0x00010001,1 HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{5be7f79a-d41d-4368-a72f-384887243344}\ChannelReferences,"Count",0x00010001,1 HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{5be7f79a-d41d-4368-a72f-384887243344}\ChannelReferences\0,,,"Goodix-FingerprintProvider/Debug" HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{5be7f79a-d41d-4368-a72f-384887243344}\ChannelReferences\0,"Id",0x00010001,16 HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Publishers\{5be7f79a-d41d-4368-a72f-384887243344}\ChannelReferences\0,"Flags",0x00010001,1 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\EventLog-Application\{5be7f79a-d41d-4368-a72f-384887243344},"Enabled",0x00010001,1 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\EventLog-Application\{5be7f79a-d41d-4368-a72f-384887243344},"EnableLevel",0x00010001,0 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\EventLog-Application\{5be7f79a-d41d-4368-a72f-384887243344},"LoggerName",0x00000000,"EventLog-Application" HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\EventLog-Application\{5be7f79a-d41d-4368-a72f-384887243344},"MatchAnyKeyword",0x000B0001,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\EventLog-Application\{5be7f79a-d41d-4368-a72f-384887243344},"MatchAllKeyword",0x000B0001,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 HKLM,SYSTEM\CurrentControlSet\Control\WMI\Autologger\EventLog-Application\{5be7f79a-d41d-4368-a72f-384887243344},"EnableProperty",0x00010001,1 HKLM,SYSTEM\CurrentControlSet\Services\EventLog\Application\Goodix,"ProviderGuid",0x00000000,"{5be7f79a-d41d-4368-a72f-384887243344}" HKLM,SYSTEM\CurrentControlSet\Services\EventLog\Application\Goodix,"EventMessageFile",0x00020000,"%%SYSTEMROOT%%\system32\GoodixEventLog.dll" [WUDFRD_ServiceInstall] DisplayName = %WudfRdDisplayName% ServiceType = 1 StartType = 3 ErrorControl = 1 ServiceBinary = %12%\WUDFRd.sys ;LoadOrderGroup = Base ;[SvcName_ServicceInstall] ;DisplayName = %SessionDetection% ;ServiceType = 0x00000010 ;StartType = 2 ;ErrorControl = 1 ;ServiceBinary = %12%\SessionService.exe [DestinationDirs] UMDriverCopy=12,UMDF ; copy to drivers\umdf WinBioEngineAdapterCopy=11,WinBioPlugins ; copy to \Windows\System32\WinBioPlugins DependLibsCopy=11 SgxCopy=11,WinBioPlugins ; copy to \Windows\System32\WinBioPlugins ProgramDataCopy=24,ProgramData SvcCopyFiles=12 [UMDriverCopy] Wbdi.dll [SvcCopyFiles] ;SessionService.exe [WinBioEngineAdapterCopy] GoodixEngineAdapter.dll [DependLibsCopy] GoodixEventLog.dll [SgxCopy] ;FpDataProcessor.signed.dll ;WbdiDataEnclave.signed.dll ;to be D-compliant, copy the 2 files in [WinBioEngineAdapterCopy] ;[ProgramDataCopy] ;MEFlashStorage.dalp ;sgx_white_list_cert.bin [SignatureAttributes] wbdi.dll = SignatureAttributes.WindowsHello GoodixEngineAdapter.dll = SignatureAttributes.WindowsHello ;FpDataProcessor.signed.dll = SignatureAttributes.WindowsHello ;WbdiDataEnclave.signed.dll = SignatureAttributes.WindowsHello GoodixEventLog.dll = SignatureAttributes.WindowsHello [SignatureAttributes.WindowsHello] WindowsHello = true ; =================== Generic ================================== [Strings] ManufacturerName="Goodix" ;TODO: Replace with your manufacturer name ClassName="Biometric Devices" ; TODO: edit ClassName DiskName = "gfspi Installation Disk" SessionDetection = "Session Detection" WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector" DeviceName="Goodix Fingerprint SPI Device" ;SYSTEMROOT="C:\Windows"