-
-
Save Skrilltrax/bc8d23bbfbf3d0ff2e2fb720371243ff to your computer and use it in GitHub Desktop.
@Echo off | |
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "osvc" /t REG_BINARY /d "0000" /f | |
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipContainerIdQuery" /t REG_BINARY /d "01000000" /f | |
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\usbflags\18D1D00D0100" /v "SkipBOSDescriptorQuery" /t REG_BINARY /d "01000000" /f | |
pause |
Hi, is there any performance influence after execute this script? Like usb performance or something else.
Hey, no. There are no performance impacts.
If anyone looking solution for linux, here is it:
$ lsusb
$ echo 'ID:k' | sudo tee /sys/module/usbcore/parameters/quirks # ID is the id of your phone device of previous command in format xxxx:xxxx
$ echo 'ID:k' | sudo tee /sys/module/usbcore/parameters/quirks # ID is the id of your phone device of previous command in format xxxx:xxxx
A better way to do this (which persists after reboots) is
# ID is the USB ID of the phone device
# e.g.
# ID='xxxx:xxxx'
echo "options usbcore quirks=${ID}:k" | sudo tee /etc/modprobe.d/fastboot.conf
$ echo 'ID:k' | sudo tee /sys/module/usbcore/parameters/quirks # ID is the id of your phone device of previous command in format xxxx:xxxx
A better way to do this (which persists after reboots) is
# ID is the USB ID of the phone device # e.g. # ID='xxxx:xxxx' echo "options usbcore quirks=${ID}:k" | sudo tee /etc/modprobe.d/fastboot.conf
Is there a way to use some kind of wildcard for the ID? Like 18d1:*
. I am asking, because I've noticed, that if the bootloader gets flashed during an update, the USB ID might or will change, so the phone won't be recognized after it is rebooting into fastboot during the flash process.
$ echo 'ID:k' | sudo tee /sys/module/usbcore/parameters/quirks # ID is the id of your phone device of previous command in format xxxx:xxxx
A better way to do this (which persists after reboots) is
# ID is the USB ID of the phone device # e.g. # ID='xxxx:xxxx' echo "options usbcore quirks=${ID}:k" | sudo tee /etc/modprobe.d/fastboot.confIs there a way to use some kind of wildcard for the ID? Like
18d1:*
. I am asking, because I've noticed, that if the bootloader gets flashed during an update, the USB ID might or will change, so the phone won't be recognized after it is rebooting into fastboot during the flash process.
I do not think so, and even if possible to do something similar (e.g. you can write a loop to enumerate all hex), it does not seem reasonable to do so, since it tells the kernel that "device can't handle Link Power Management", and if you plug in another device with ID satisfying this pattern, it would be wrongly indicated.
Hi, is there any performance influence after execute this script? Like usb performance or something else.