How libimobiledevice/idevicerestore works
idevicerestore is a command-line iOS firmware restoration tool. The main workflow selects or downloads firmware, prepares signing data, communicates with the device across its operating modes, and runs the restore. The graph also preserves documented capabilities and substantial firmware-format, baseband, and transfer modules. The excerpts show only portions of the orchestration and restore code, so several internal links are marked unverified rather than asserted as observed calls.
Main entry points: idevicerestore.c Restore workflow · restore.c Restore session · common.c Client state · dfu.c DFU mode
Components 20
Restore orchestration
- Restore workflow
src/idevicerestore.c - Client state
src/common.c
Device modes
- DFU mode
src/dfu.c - Recovery mode
src/recovery.c - Normal mode
src/normal.c
Firmware and signing
- Firmware downloads
src/download.c - IPSW archive
src/ipsw.c - Signing records
src/idevicerestore.c - Ace3 payload
src/ace3.c - IMG3 stitching
src/img3.c - IMG4 stitching
src/img4.c
Restore protocols
- Restore session
src/restore.c - Filesystem transfer
src/asr.c - FDR service
src/fdr.c - Baseband FLS
src/fls.c - Baseband FTAB
src/ftab.c - Baseband MBN
src/mbn.c
Other components
- CLI user
- Apple signing service
- iOS device
Connections 19
- CLI user → Restore workflow: starts
README.md - Restore workflow → IPSW archive: extracts firmware
src/idevicerestore.c - Restore workflow → Ace3 payload: creates payload
src/idevicerestore.c - Restore workflow → Firmware downloads: downloads firmware
- Restore workflow → Signing records: requests signing
src/idevicerestore.c - Signing records → Apple signing service: requests tickets
README.md - Restore workflow → DFU mode: handles DFU
- Restore workflow → Recovery mode: handles recovery
- Restore workflow → Normal mode: checks device
- Restore workflow → Restore session: runs restore
- Restore session → iOS device: restores firmware
README.md - Restore session → Filesystem transfer: transfers filesystem
- Restore session → FDR service: uses FDR service
- Restore session → Baseband FLS: uses baseband data
- Restore session → Baseband FTAB: uses baseband tables
- Restore session → Baseband MBN: uses baseband images
- Restore workflow → IMG3 stitching: stitches images
- Restore workflow → IMG4 stitching: stitches images
- Restore workflow → Client state: uses shared state