summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
38 hours[github-actions] Update build workflowGravatar Nikias Bassen1-20/+32
39 hoursMove device database to data/devices.txt with user-extensible device filesGravatar Nikias Bassen10-381/+1201
The device table is now maintained in data/devices.txt (one device per line, "#!format 1" header) and the built-in table src/devices.c is generated from it at build time by data/gen-devices.sh. At runtime the built-in table is merged with, in order, <pkgdatadir>/devices.txt and ~/.libirecovery/devices.txt (%APPDATA%\libirecovery on Windows, or $LIBIRECOVERY_DEVICE_DB). Entries are matched by hardware_model; later files override earlier ones. User files must be owned by the user (or root) and not world-writable. Add irecv_devices_add() which appends an entry to the user device file so applications can register new models without rebuilding the library. If no display name is given, an existing entry keeps its name and a new one is named "<product_type> (<hardware_model>)". Adding is refused if another hardware_model already uses the same chip and board ID.
40 hoursPropagate recovery command failuresGravatar Furby Haxx furbyhaxx@gmail.com3-45/+142
Co-authored-by: Nikias Bassen <nikias@gmx.li>
40 hoursFix: Only clear halted USB endpointsGravatar Furby Haxx furbyhaxx@gmail.com1-1/+1
11 daysMake the iSerialNumber string read robust to slow or failing devicesGravatar Nicolás Nistal1-7/+138
libusb_get_string_descriptor_ascii() uses a fixed 1 s timeout for the control transfer. The Apple T1 (iBridge1,1) in recovery mode answers the iSerialNumber read only intermittently and often later than that, so the read returns LIBUSB_ERROR_TIMEOUT. Losing it costs the device identity and the AP and SEP nonces, and in the hotplug add handler it meant giving up on the device: IRECV_DEVICE_ADD was never emitted and callers concluded that nothing was attached. - When the libusb helper fails, retry the descriptor read a few times with libirecovery's own USB_TIMEOUT. - On Linux, when the read still yields no iBoot string, fall back to the serial string the kernel already cached for the same bus and device number under /sys/bus/usb/devices. Used both when opening a device and in the hotplug add handler; never fatal, and a no-op on other platforms. - Only assume the legacy CPID 0x8900 when the iBoot string is non-empty but carries no CPID field. An empty string means the read failed, and claiming 0x8900 there mis-identifies every modern part. Behaviour for devices that answer the first read promptly is unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
11 daysAdd Apple T1 coprocessor (iBridge1,1 / x619ap) to the device tableGravatar Nicolás Nistal1-0/+2
The T1 in the 2016 and 2017 Touch Bar MacBook Pros (MacBookPro13,2, 13,3, 14,2 and 14,3) runs its own EmbeddedOS and enumerates over the host's internal USB as 05ac:8600, or as 05ac:1281 in recovery mode when it has nothing to boot. It identifies as iBridge1,1 / x619ap with CPID 0x8002 and BDID 0x12; all four machines share that one identity. Without a device table entry the part stays unidentified, and tools built on libirecovery cannot address it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
11 daysAdd November 2026 MacBook Pro and iMac modelsGravatar Nikias Bassen1-0/+6
11 daysAdd iPad mini (A20) modelsGravatar Nikias Bassen1-0/+2
2026-11-03Add support for iPhone DuoGravatar Nikias Bassen1-1/+2
2026-10-27Fix chip ID for Mac18,5 Mac mini (M6, 2026)Gravatar Alan H.L. Li1-1/+1
Based on chip ID in macOS 27.0 IPSW file, M6 Mac mini's chip ID should be 0x8152 instead of 0x6050 Signed-off-by: Alan H.L. Li <mainreturnzero@gmail.com>
2026-09-30Guard devices list with device_mutexGravatar Sami Kortelainen1-24/+63
Add/remove/lookup of the devices collection is now serialized with device_mutex. The lock is never held while listener callbacks run, so lock order stays listener_mutex -> device_mutex.
2026-09-30win32: fix overlapped USB I/O use-after-free and byte-count underflowGravatar Sami Kortelainen1-17/+56
- Add win32_device_io_control() that always uses OVERLAPPED and waits for completion (including after CancelIo on timeout) - Use it for control, bulk, reset and KIS ioctls - Reject short control transfer replies instead of underflowing count
2026-09-30Fixed some leaks and double freesGravatar Sami Kortelainen1-0/+23
(cherry picked from commit 793f0ca5d36a6bbb360858b198caf9c5565e4eb5)
2026-09-30Fixed memory handling and CloseHandlingGravatar Sami Kortelainen1-7/+29
2026-09-14Add new devices from this fall and missing 2026 Studio DisplaysGravatar ROSeaboyer1-2/+16
2026-08-23Add Lightning Video Adapter modelsGravatar Nick Chan1-0/+3
These devices boot from DFU mode and runs recovery mode via iBSS. Signed-off-by: Nick Chan <towinchenmi@gmail.com>
2026-08-23Replace bzero with memsetGravatar Nikias Bassen1-17/+17
and use 0 instead of '\0' everywhere consistently
2026-08-22fix: IOKit service lifetime during KIS retriesGravatar Peter A.1-1/+1
KIS discovery reused one retained reference across multiple open attempts. A retry could therefore release an invalid Mach port and cause macOS to terminate the process with EXC_GUARD. Retain the service separately for each open attempt while preserving the callback's iterator-owned reference.
2026-08-04Add MacBook Air M5, MacBook Neo, MacBook Pro M5 Pro/MaxGravatar Yureka1-0/+7
Signed-off-by: Yureka <yuka@yuka.dev>
2026-06-20fix dummy usb buildGravatar 1Conan1-0/+4
2026-06-20fix undefined HAVE_READLINE on --without-toolsGravatar 1Conan1-1/+1
2026-05-01Add iPad Air M4 modelsGravatar Tahiatul Islam1-0/+4
2026-04-27Update .gitignoreGravatar Nikias Bassen1-0/+1
2026-04-27Add support for iPhone 17e ModelGravatar Tahiatul Islam1-0/+1
2026-04-27Add Private Cloud Compute Research Environment modelGravatar Lakr1-0/+2
2025-11-27Added detection of stalled pipes for IOKIT and added functions for async ↵Gravatar synackuk2-0/+181
requests
2025-10-17Update NEWS for release1.3.1Gravatar Nikias Bassen1-0/+12
2025-10-17Update soversion for releaseGravatar Nikias Bassen1-1/+1
2025-10-17Add iPad Pro M5, Apple Vision Pro M5, and MacBook Pro 14 inch M5 modelsGravatar Nikias Bassen1-0/+6
2025-09-25Fix: array initialization compatibility with MSVCGravatar zero1-2/+2
2025-09-12Update NEWS for release1.3.0Gravatar Nikias Bassen1-0/+20
2025-09-11Update soversion for releaseGravatar Nikias Bassen1-1/+1
2025-09-10Updated READMEGravatar Nikias Bassen1-4/+6
2025-09-09Add iPhone 17 family and Watch 11/SE3/Ultra3 modelsGravatar Nikias Bassen1-0/+13
2025-09-08Add FUNDINGGravatar Nikias Bassen1-0/+3
2025-09-06IOKit: Fix race condition when trying to delete runloop before it even startedGravatar tihmstar1-0/+1
2025-09-06Add iOS 2 supportGravatar tihmstar2-5/+56
2025-09-06Add iOS 1 supportGravatar tihmstar2-3/+198
2025-07-11[github-actions] Update build workflow to use windows-latestGravatar Nikias Bassen1-1/+2
2025-06-25configure: Print whether building tool(s) or notGravatar Nikias Bassen1-0/+1
2025-06-25Use sizeof() instead of hard-coding buffer sizesGravatar Nikias Bassen1-16/+18
2025-03-20Add support for all March 2025 Apple devicesGravatar Daniel VanBritsom1-0/+10
- iPad Air (M3, 11-inch and 13-inch) - iPad (A16) - MacBook Air (M4, 13-inch and 15-inch, 2025) - Mac Studio (M3 Ultra and M4 Max, 2025)
2025-03-06Add support for the iPhone 16eGravatar Daniel VanBritsom1-0/+1
2025-02-01[github-actions] Use same artifact preparation for macOS tooGravatar Nikias Bassen1-1/+1
2025-02-01[github-actions] Fix artifact preparationGravatar Nikias Bassen1-1/+1
2024-12-02[github-actions] Bump dawidd6/action-download-artifact from 3 to 6Gravatar Nikias Bassen1-6/+6
2024-12-02configure: Remove unused checkGravatar Nikias Bassen1-18/+0
2024-12-02Switch to better initializer strategyGravatar Nikias Bassen2-68/+42
2024-12-02Use _WIN32 instead of WIN32Gravatar Nikias Bassen2-42/+40
2024-11-05Fix conditional compile for libreadlineGravatar Nikias Bassen3-3/+13