summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-06-04 12:39:25 +0200
committerGravatar Nikias Bassen2010-06-04 12:39:25 +0200
commit6586d0b91b67ed47eb79e7bfdf830de5f681c4fa (patch)
tree731d8ac33169e2cdccb7d7ce799178edcc265a6e /tools
parent43964b02b5c32ead9d69f3eafc5f22700d0d5436 (diff)
downloadlibimobiledevice-6586d0b91b67ed47eb79e7bfdf830de5f681c4fa.tar.gz
libimobiledevice-6586d0b91b67ed47eb79e7bfdf830de5f681c4fa.tar.bz2
idevicebackup: updated the workflow for the restore process
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicebackup.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c
index d6380d0..cacacc4 100644
--- a/tools/idevicebackup.c
+++ b/tools/idevicebackup.c
@@ -872,11 +872,22 @@ int main(int argc, char *argv[])
872 872
873 break; 873 break;
874 case CMD_RESTORE: 874 case CMD_RESTORE:
875 printf("Restoring backup is NOT IMPLEMENTED.\n"); 875 /* TODO: verify battery on AC enough battery remaining */
876 /* verify battery on AC enough battery remaining */ 876 /* verify if Status.plist says we read from an successful backup */
877 /* now make sure backup integrity is ok! verify all files */
878 /* loop over Files entries in Manifest data plist */
879 /* make sure both .mddata/.mdinfo files are available for each entry */
877 /* request restore from device with manifest (BackupMessageRestoreMigrate) */ 880 /* request restore from device with manifest (BackupMessageRestoreMigrate) */
878 /* read mddata/mdinfo files and send to devices using DLSendFile */ 881 /* loop over Files entries in Manifest data plist */
879 /* signal restore finished message to device */ 882 /* read mddata/mdinfo files and send to device using DLSendFile */
883 /* if all hunks of a file are sent, device must send ack */
884 /* observe notification_proxy id com.apple.mobile.application_installed */
885 /* loop over Applications entries in Manifest data plist */
886 /* send AppInfo entries */
887 /* receive com.apple.mobile.application_installed notification */
888 /* receive BackupMessageRestoreApplicationReceived from device */
889 /* signal restore finished message to device; BackupMessageRestoreComplete */
890 /* close down notification_proxy connection */
880 /* close down lockdown connection as it is no longer needed */ 891 /* close down lockdown connection as it is no longer needed */
881 lockdownd_client_free(client); 892 lockdownd_client_free(client);
882 client = NULL; 893 client = NULL;