I'm trying to block my iPhone from being used when I connect it so that I can pass it through to a VM. So far, I have this udev rule but I still get an error about the device being used whenever I try and pass it through.
blacklist ipheth
blacklist apple-mfi-fastcharge
install ipheth /bin/false
install apple-mfi-fastcharge /bin/false
SUBSYSTEM=="usb", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="12a8", ATTR{authorized}="0"
As you can see, I have tried to deauth using the vendor and product IDs as well as disable the two modules mentioned in dmesg.
This is all I get from dmesg now. Which would indicate that what I've got is at least somewhat working, as there's no ipheth or fast charging.
Jan 21 19:56:44 carbon-14 kernel: usb 1-3: new high-speed USB device number 11 using xhci_hcd
Jan 21 19:56:45 carbon-14 kernel: usb 1-3: New USB device found, idVendor=05ac, idProduct=12a8, bcdDevice=16.01
Jan 21 19:56:45 carbon-14 kernel: usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 21 19:56:45 carbon-14 kernel: usb 1-3: Product: iPhone
Jan 21 19:56:45 carbon-14 kernel: usb 1-3: Manufacturer: Apple Inc.
Jan 21 19:56:45 carbon-14 kernel: usb 1-3: SerialNumber: xxx
What have I missed?
Asked by ScottishTapWater
(187 rep)
Jan 21, 2024, 07:58 PM
Last activity: Jan 21, 2024, 08:18 PM
Last activity: Jan 21, 2024, 08:18 PM