diff options
author | Martin Szulecki | 2014-10-02 17:02:18 +0200 |
---|---|---|
committer | Martin Szulecki | 2014-10-02 17:02:18 +0200 |
commit | 042c03df28fb745700e6bc636d43d91e3f03907d (patch) | |
tree | f812db759aa851a2be853e38dca9afc6b0d5b2d4 | |
parent | 1841dc39d0087525969d45d156dfbfaf2bf47675 (diff) | |
download | libimobiledevice-042c03df28fb745700e6bc636d43d91e3f03907d.tar.gz libimobiledevice-042c03df28fb745700e6bc636d43d91e3f03907d.tar.bz2 |
idevicebackup2: Fix backup failure for passcode devices entering lock screen
A device would report "ErrorCode 1: Error copying keychain data
(MBErrorDomain/1)" if a device entered lock state and had a passcode enabled
during the backup or restore process. To prevent this, an escrow bag must be
sent when starting the service to keep the operation "alive".
-rw-r--r-- | tools/idevicebackup2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index f76296d..229fa93 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c @@ -1539,7 +1539,7 @@ int main(int argc, char *argv[]) /* start mobilebackup service and retrieve port */ mobilebackup2_client_t mobilebackup2 = NULL; - ret = lockdownd_start_service(lockdown, MOBILEBACKUP2_SERVICE_NAME, &service); + ret = lockdownd_start_service_with_escrow_bag(lockdown, MOBILEBACKUP2_SERVICE_NAME, &service); if ((ret == LOCKDOWN_E_SUCCESS) && service && service->port) { PRINT_VERBOSE(1, "Started \"%s\" service on port %d.\n", MOBILEBACKUP2_SERVICE_NAME, service->port); mobilebackup2_client_new(device, service, &mobilebackup2); |