diff options
author | Nikias Bassen | 2019-09-25 19:24:32 +0200 |
---|---|---|
committer | Nikias Bassen | 2019-09-25 19:24:32 +0200 |
commit | 5c4680dcdcb751ab3d8185f2cf7dc5900037574d (patch) | |
tree | bd167ce6c53f8b1e3a52b803231f8cd6d78689d8 | |
parent | 3050e61588bfc79b3b360fa25db32c81e3264efb (diff) | |
download | idevicerestore-5c4680dcdcb751ab3d8185f2cf7dc5900037574d.tar.gz idevicerestore-5c4680dcdcb751ab3d8185f2cf7dc5900037574d.tar.bz2 |
normal: Unpair device before entering recovery mode
-rw-r--r-- | src/normal.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c index 0f64108..58d907c 100644 --- a/src/normal.c +++ b/src/normal.c @@ -218,6 +218,12 @@ int normal_enter_recovery(struct idevicerestore_client_t* client) return -1; } + /* unpair the device */ + lockdown_error = lockdownd_unpair(lockdown, NULL); + if (lockdown_error != LOCKDOWN_E_SUCCESS) { + error("WARNING: Could not unpair device\n"); + } + lockdown_error = lockdownd_enter_recovery(lockdown); if (lockdown_error != LOCKDOWN_E_SUCCESS) { error("ERROR: Unable to place device in recovery mode\n"); |