| Age | Commit message (Collapse) | Author | Files | Lines |
|
The udev rule reset 05ac:1905 (an Apple Silicon Mac exposing Apple
private CDC-NCM networking) to configuration 0. usbmuxd then found no
usbmux interface and left it unconfigured, so the Mac gave up and
re-enumerated in a loop.
- udev: don't write bConfigurationValue for 1905, same as for 8600.
usbmuxd still switches the configuration itself if the device has a
usbmux interface.
- usb: if no suitable interface is found and the device is
unconfigured, restore its default configuration so kernel drivers
can bind again.
|
|
The internal T1 of a MacBook Pro is driven by a kernel driver that
selects its own configuration (e.g. 2 with the Linux T1 stack). The
udev rule forced configuration 1, and usbmuxd itself switched the
configuration and detached kernel drivers when it found the device.
Remove the bConfigurationValue assignment from the 8600 udev rule, and
in set_valid_configuration() only accept the currently active
configuration for an already configured 8600 device.
|
|
A fully booted Apple Vision Pro (in the device setup screen) reports itself as 0x12b1.
|
|
|
|
|
|
This is the PID used by the mac studio when in recovery mode.
|
|
1904 is the M1 iMac; presumably this is now a range
Signed-off-by: Hector Martin <marcan@marcan.st>
|
|
|
|
|
|
|
|
Make sure that udev doesn't lose our properties when bind events come
in, as implemented in kernels 4.12+.
See https://github.com/systemd/systemd/issues/8221
and https://github.com/systemd/systemd/issues/7109
|
|
This fixes spontaneous USB reconfiguration causing "remove" event to be sent to
the daemon, which causes it to close itself if it did not have enough time to
connect to phone.
|
|
systemd will not restart the usbmuxd service the after the first time it
is plugged in if it does not receive the "remove" events, which also
happen to lack the idVendor and idProduct attributes, so use
ENV{PRODUCT} instead.
|
|
|
|
With the introduction of iOS 7, devices should start of in the "deactivated"
USB configuration "0" by default to not trigger a trust dialog.
Once the devices are identified, usbmuxd will set the correct USB configuration
itself and immediately run the preflight worker code to ensure a trust
relationship with the host is established. This change fixes the trust dialog
from appearing during hotplug of paired devices. The last remaining issue is
that current kernel code still sets the USB configuration to "1" by default
before the udev rules and thus causes multiple connection beeps.
|
|
To prevent the trust dialog from appearing on iOS7 devices we need to make
sure that no PTP access is happening before usbmuxd starts. So we start as
early as possible so the device will be in trusted host state.
|