summaryrefslogtreecommitdiffstats
path: root/src/normal.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2026-11-27 03:11:51 +0100
committerGravatar Nikias Bassen2026-11-27 03:11:51 +0100
commited14f0693d80947f539c2a7597999fb90ee1dcf9 (patch)
treefcab6a818c79173ec4dcb0ebcf8ff33330e641ad /src/normal.c
parent784d3d7069cfd9165013542bdc89c107cfc2af2e (diff)
downloadidevicerestore-ed14f0693d80947f539c2a7597999fb90ee1dcf9.tar.gz
idevicerestore-ed14f0693d80947f539c2a7597999fb90ee1dcf9.tar.bz2
Re-detect device mode after long-running preparation stepsHEADmaster
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/normal.c')
0 files changed, 0 insertions, 0 deletions