From ecc32003b09a3afb27be80fd881cee9fcc0b5d49 Mon Sep 17 00:00:00 2001 From: fullonrager <45670806+fullonrager@users.noreply.github.com> Date: Sun, 27 Mar 2022 19:13:15 +0100 Subject: [PATCH] Update iBEC/iBSS error messages for arm64 users (#70) This commit includes "Possibly invalid iBEC/iBSS." when attempting to send an invalid iBEC/iBSS to the device to alert arm64 users that it may not be compatible. --- futurerestore/futurerestore.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/futurerestore/futurerestore.cpp b/futurerestore/futurerestore.cpp index 25e2c2e0..74e947b4 100644 --- a/futurerestore/futurerestore.cpp +++ b/futurerestore/futurerestore.cpp @@ -681,7 +681,7 @@ void futurerestore::enterPwnRecovery(plist_t build_identity, std::string bootarg #if __aarch64__ retassure(((_client->mode == MODE_UNKNOWN) || (mutex_unlock(&_client->device_event_mutex), 0)), - "Device did not disconnect. Switch to USB-A to lightning cable (see issue #67)"); + "Device did not disconnect. Possibly invalid iBEC. If you're using a USB-C to Lightning cable, switch to USB-A to Lightning (see issue #67)"); #else retassure(((_client->mode == MODE_UNKNOWN) || (mutex_unlock(&_client->device_event_mutex), 0)), "Device did not disconnect. Possibly invalid iBEC. Reset device and try again"); @@ -690,7 +690,7 @@ void futurerestore::enterPwnRecovery(plist_t build_identity, std::string bootarg cond_wait_timeout(&_client->device_event_cond, &_client->device_event_mutex, 10000); #if __aarch64__ retassure(((_client->mode == MODE_RECOVERY) || (mutex_unlock(&_client->device_event_mutex), 0)), - "Device did not reconnect. Switch to USB-A to lightning cable (see issue #67)"); + "Device did not reconnect. Possibly invalid iBEC. If you're using a USB-C to Lightning cable, switch to USB-A to Lightning (see issue #67)"); #else retassure(((_client->mode == MODE_RECOVERY) || (mutex_unlock(&_client->device_event_mutex), 0)), "Device did not reconnect. Possibly invalid iBEC. Reset device and try again"); @@ -707,7 +707,7 @@ void futurerestore::enterPwnRecovery(plist_t build_identity, std::string bootarg cond_wait_timeout(&_client->device_event_cond, &_client->device_event_mutex, 10000); #if __aarch64__ retassure(((_client->mode == MODE_RECOVERY) || (mutex_unlock(&_client->device_event_mutex), 0)), - "Device did not reconnect. Switch to USB-A to lightning cable (see issue #67)"); + "Device did not reconnect. Possibly invalid iBSS. If you're using a USB-C to Lightning cable, switch to USB-A to Lightning (see issue #67)"); #else retassure(((_client->mode == MODE_RECOVERY) || (mutex_unlock(&_client->device_event_mutex), 0)), "Device did not reconnect. Possibly invalid iBSS. Reset device and try again"); @@ -1319,7 +1319,7 @@ void futurerestore::doRestore(const char *ipsw) { cond_wait_timeout(&client->device_event_cond, &client->device_event_mutex, 10000); #if __aarch64__ retassure((client->mode == MODE_UNKNOWN || (mutex_unlock(&client->device_event_mutex), 0)), - "Device did not disconnect. Switch to USB-A to lightning cable (see issue #67)"); + "Device did not disconnect. Possibly invalid iBEC. If you're using a USB-C to Lightning cable, switch to USB-A to Lightning (see issue #67)"); #else retassure((client->mode == MODE_UNKNOWN || (mutex_unlock(&client->device_event_mutex), 0)), "Device did not disconnect. Possibly invalid iBEC. Reset device and try again"); @@ -1331,7 +1331,7 @@ void futurerestore::doRestore(const char *ipsw) { cond_wait_timeout(&client->device_event_cond, &client->device_event_mutex, 10000); #if __aarch64__ retassure((client->mode == MODE_RECOVERY || (mutex_unlock(&client->device_event_mutex), 0)), - "Device did not disconnect. Switch to USB-A to lightning cable (see issue #67)"); + "Device did not disconnect. Possibly invalid iBEC. If you're using a USB-C to Lightning cable, switch to USB-A to Lightning (see issue #67)"); #else retassure((client->mode == MODE_RECOVERY || (mutex_unlock(&client->device_event_mutex), 0)), "Device did not disconnect. Possibly invalid iBEC. Reset device and try again");