diff options
author | Benjamin BOURGEAIS | 2021-04-30 10:02:43 +0200 |
---|---|---|
committer | Benjamin BOURGEAIS | 2021-05-08 08:23:06 +0200 |
commit | 5e484e18f1383b5a0bd6c353ab1d668b03e4ffab (patch) | |
tree | 6065e2191b3967ec68560652d4b3caaa45d9328e | |
parent | bb04e78eee0de10db3661ce6e29cf90fbff2a25d (diff) | |
download | usbmuxd-5e484e18f1383b5a0bd6c353ab1d668b03e4ffab.tar.gz usbmuxd-5e484e18f1383b5a0bd6c353ab1d668b03e4ffab.tar.bz2 |
usb: Enable Apple Silicon restore mode
-rw-r--r-- | src/usb.c | 3 | ||||
-rw-r--r-- | src/usb.h | 1 |
2 files changed, 3 insertions, 1 deletions
@@ -381,7 +381,8 @@ static int usb_device_add(libusb_device* dev) if(devdesc.idVendor != VID_APPLE) return -1; if((devdesc.idProduct != PID_APPLE_T2_COPROCESSOR) && - ((devdesc.idProduct < PID_RANGE_LOW) || + (devdesc.idProduct != PID_APPLE_SILICON_RESTORE) && + ((devdesc.idProduct < PID_RANGE_LOW) || (devdesc.idProduct > PID_RANGE_MAX))) return -1; libusb_device_handle *handle; @@ -47,6 +47,7 @@ #define PID_RANGE_LOW 0x1290 #define PID_RANGE_MAX 0x12af #define PID_APPLE_T2_COPROCESSOR 0x8600 +#define PID_APPLE_SILICON_RESTORE 0x1901 struct usb_device; |