When I try to use my OnePlus 5 with Android 8 installed, my Notebook crashes with a bluescreen (Kernel Security Check Failure).
Seems like the problem is related to a corrupted driver, but I'm actually not able to get any driver details because the system crashes immediately after turning on USB Tethering.
I've got no problems reproducing this error on my Lenovo ThinkPad T460p and my old Lenovo G770 both with Windows 10 Version 1709. The USB Tethering works well when used with e.g. Kali Linux.
I appreciate your help!
Björn
Solution:
- Disable the "netsetupsvc" service with "sc.exe config netsetupsvc start=disabled"
- Reinstall the device by telling devmgmt.msc to "Scan for hardware changes". The device should reappear, but it won't work yet.
- Open regedit and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}
- Expand it and work yourself through the other entries until you found an entry with "Remote NDIS based Internet Sharing Devive" as DriverDesc
- Add three DWORDs named "*IfType", "*MediaType", and "*PhysicalMediaType" set to 6, 0, and E respectively.
- Re-enable the netsetupsvc with "sc.exe config netsetupsvc start=demand"
- Disable & re-enable the device in devmgmt.msc.
For the registry modifications I've developed a short Powershell script:
$ErrorActionPreference = 'SilentlyContinue'
$path = Get-ChildItem -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}' | Get-ItemProperty | Where-Object { $_.DriverDesc -like "*NDIS*" } | Select-Object -ExpandProperty PSPath
New-ItemProperty -Name *IfType -Value 6 -LiteralPath $path -Force
New-ItemProperty -Name *MediaType -Value 0 -LiteralPath $path -Force
New-ItemProperty -Name *PhysicalMediaType -Value 14 -LiteralPath $path -Force
NOTE: The script must be executed with administrator privileges. You still have to do step 1, 2, 6 and 7!