summaryrefslogtreecommitdiffstats
path: root/src/restore.c
AgeCommit message (Collapse)AuthorFilesLines
2017-06-08restore: Add previously missing DeviceTree data request handlingGravatar Nikias Bassen1-0/+7
2017-06-08restore: Move restore_send_kernelcache() to a generic restore_send_component()Gravatar Nikias Bassen1-13/+15
2017-04-07restore: Fix a use-after-freeGravatar Nikias Bassen1-2/+3
Also fixing the string length of the affected strncmp. Credit to Mällon Lobjakas
2017-02-21restore: Add support for 10.3+ firmware images (ipsw)Gravatar Nikias Bassen1-14/+73
Starting with iOS 10.3 the ipsw files don't contain any 'manifest' file anymore which we used to determine the files required for the reply to the 'NorData' request. Since this info is also included in the BuildManifest we us that instead, unless a 'manifest' file is present.
2017-02-07Remove some unneded variables and conditionals and plug some potential ↵Gravatar BALATON Zoltan1-74/+48
memory leaks
2017-02-07Use udid as temp file name prefix to make it more unique and avoid race ↵Gravatar BALATON Zoltan1-1/+1
conditions when tempnam generated name is not random enough.
2016-09-30restore: Add support for FirmwareUpdaterData request used for Secure Element ↵Gravatar Nikias Bassen1-0/+167
firmware
2016-09-23restore: Make sure newer Mav16 baseband firmware image files are recognizedGravatar Nikias Bassen1-1/+2
The iPhone 7/7+ models with Mav16 baseband failed to restore as the baseband firmware files are now called RestoreSBL1-HastTableDigest and SBL1-HashTableDigest. The code only stripped off the '-Blob' part from the baseband tss response so it couldn't match the firmware filenames properly. This commit fixes the issue by only keeping the first part of the string (everything before the first occurance of '-').
2016-09-22Add support for ICE16 baseband firmware files (iPhone 7/7+)Gravatar Nikias Bassen1-1/+8
While not tested, the new Mav16 baseband firmware files should also work with this update.
2016-07-08restore: Fix error message to show the actual baseband component nameGravatar Nikias Bassen1-2/+2
2016-06-26restore: Explicitly stop FDR thread to suppress error messages at the end of ↵Gravatar Nikias Bassen1-0/+8
the restore
2016-06-26restore: Fix restore mode status/progress messagesGravatar Nikias Bassen1-63/+135
2016-06-26restore: Add support for FUD data request, required for iOS 10Gravatar Nikias Bassen1-0/+89
2015-10-09restore: Always enable reverse proxy, some newer devices (iPad Air) require ↵Gravatar Nikias Bassen1-16/+9
it for iOS 9+
2015-10-09Use hardware model instead of product type to identify device correctlyGravatar Nikias Bassen1-3/+3
2015-10-09restore: Fix segfault when .bbfw file contains files without extensionGravatar Nikias Bassen1-1/+1
2015-09-24restore: Print error message on status 53 (failed to recover FDR data)Gravatar Nikias Bassen1-0/+3
2015-09-24restore: Also print device UDID in log message when entering restore modeGravatar Nikias Bassen1-2/+2
2015-09-24restore: Fix inverted comparison checking for ApImg4Ticket in TSS responseGravatar Nikias Bassen1-1/+1
2015-09-24Revise several changes from commit 245bc9b6510a8900c69c2fd543434bae1bc6ca6aGravatar Nikias Bassen1-6/+2
In very rare cases the changes introduced by commit can actually cause an invalid free. Reverted those changes. Also, plist_free() will check for NULL before doing anything, so an extra check for that is not needed.
2015-09-24restore: Cast to thread_t to fix compiler warningGravatar Martin Szulecki1-1/+1
2015-05-05Update fdr implementation for thread function changes in latestGravatar BALATON Zoltan1-3/+3
libimobiledevice version
2015-05-05Improved command sequence and use SystemPartitionPadding from buildGravatar BALATON Zoltan1-5/+7
identity to make sure we use correct values.
2015-05-05Clean up free() usage and plug some potential memory leaksGravatar BALATON Zoltan1-70/+61
2014-11-04Implement the FDR forwarder proxy service used during restore of recent iOS ↵Gravatar BALATON Zoltan1-0/+21
versions.
2014-11-03tss: Add missing values to fix baseband TSS requestGravatar BALATON Zoltan1-0/+9
2014-10-28Rename restore step to indicate flashing of firmware instead of NORGravatar Martin Szulecki1-1/+1
2014-10-24restore: Handle FDRTrustData request messagesGravatar BALATON Zoltan1-2/+36
Only send an empty reply but this seems to be enough to restore devices that already have valid data.
2014-05-16restore: Prevent disturbing error message due to missing SEP related componentsGravatar Martin Szulecki1-5/+3
2014-03-22Use "plist_dict_set_item" instead of deprecated "plist_dict_insert_item"Gravatar Martin Szulecki1-45/+45
2014-01-07restore: make restore_asr_progress_cb staticGravatar Nikias Bassen1-1/+1
2013-12-01restore: removed unused variablesGravatar Nikias Bassen1-16/+4
2013-11-27Refactor TSS parameter handling and parse RestoreRequestRules properlyGravatar Nikias Bassen1-5/+7
2013-11-20get baseband ticket in normal mode and pass preflight info to StartRestore ↵Gravatar Nikias Bassen1-0/+20
request
2013-11-20restore: Add PersonalizedDuringPreflight key for "single TSS request" restoreGravatar Martin Szulecki1-0/+3
2013-11-20restore: Add partition layout information for 128GB models to restore optionsGravatar Martin Szulecki1-0/+1
2013-11-20restore: Free LLB image data after having added it to fix a memory leakGravatar Martin Szulecki1-0/+2
2013-11-20restore: Make sure iBoot is the first entry in the NORImage arrayGravatar Martin Szulecki1-1/+7
Apparently restored is very picky about the order and expects the iBoot component as the first item in the array. This fixes restore of new models.
2013-11-20restore: Make sure to free MsgType string after having handled itGravatar Martin Szulecki1-0/+3
2013-11-20restore/tss: do not add an empty BbNonce node to TSS requestGravatar Nikias Bassen1-1/+3
2013-11-20restore: Add error message for failed SEP firmware loading statusGravatar Martin Szulecki1-0/+3
2013-11-20restore: add new SEP/RestoreSEP components to NORData request responseGravatar Nikias Bassen1-1/+58
2013-11-20restore: send correct image4 ticket in response to RootTicket requestGravatar Nikias Bassen1-3/+10
2013-11-20restore: Use new helper to add common tags to TSS baseband requestGravatar Martin Szulecki1-0/+1
2013-11-20refactor component personalization and add support for Image4 stitchingGravatar Nikias Bassen1-7/+50
2013-11-19restore: Fix baseband request creation order for proper error checkingGravatar Martin Szulecki1-4/+5
2013-11-19restore: Fix typo in error messageGravatar Martin Szulecki1-1/+2
2013-11-19silence some clang compiler warningsGravatar Nikias Bassen1-2/+2
2013-11-19tss: Refactor TSS handlers for Image4 support and flexibilityGravatar Martin Szulecki1-6/+17
2013-10-02ipsw: change buffers to use type unsigned char*Gravatar Nikias Bassen1-8/+8