From 042c03df28fb745700e6bc636d43d91e3f03907d Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 2 Oct 2014 17:02:18 +0200 Subject: 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". --- tools/idevicebackup2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.1-32-gdbae