diff options
| author | 2026-11-27 03:11:51 +0100 | |
|---|---|---|
| committer | 2026-11-27 03:11:51 +0100 | |
| commit | ed14f0693d80947f539c2a7597999fb90ee1dcf9 (patch) | |
| tree | fcab6a818c79173ec4dcb0ebcf8ff33330e641ad /src/download.h | |
| parent | 784d3d7069cfd9165013542bdc89c107cfc2af2e (diff) | |
| download | idevicerestore-ed14f0693d80947f539c2a7597999fb90ee1dcf9.tar.gz idevicerestore-ed14f0693d80947f539c2a7597999fb90ee1dcf9.tar.bz2 | |
The device can reboot while idevicerestore is busy with slow steps such
as downloading the IPSW (-l) or extracting the filesystem. E.g. a device
in Recovery mode may time out and reboot to Normal mode. client->mode
then ends up as MODE_UNKNOWN, and later calls like get_ap_nonce() fail
with the unhelpful "Device is in an invalid state" error.
Add resync_device_mode(), which waits up to 60 seconds for the device to
reappear and logs when the mode changed. Call it after the on-demand
IPSW download and after the filesystem extraction. If the device
returned in Normal mode, refresh the cached product/build version, which
is factored out into refresh_device_version().
Diffstat (limited to 'src/download.h')
0 files changed, 0 insertions, 0 deletions
