diff options
author | Nikias Bassen | 2022-06-20 14:14:43 +0200 |
---|---|---|
committer | Nikias Bassen | 2022-06-20 14:14:43 +0200 |
commit | aa25a29e1cf7bc81450a85fdc3320c48c2d95afb (patch) | |
tree | f35ca55518affa72cf50e26ae032d3fb4da79ff8 /src/recovery.c | |
parent | f6c3d53006733e1f5bae4b073d4e7f19cefd0870 (diff) | |
download | idevicerestore-aa25a29e1cf7bc81450a85fdc3320c48c2d95afb.tar.gz idevicerestore-aa25a29e1cf7bc81450a85fdc3320c48c2d95afb.tar.bz2 |
Remove more serial number checks, and get ECID early on in all modes
Some devices seem to not have a serial number, usually in restore mode, which
will cause the restore operation to fail since we specifically check for it.
An earlier commit already removed the actual comparison in favor of comparing
the ECID, but some checks would still result in restore failures as it can't
retrieve the serial number on said devices at all.
This commit also makes sure to get the ECID in all modes as early as possible
and removes all the helper functions for it since they are not needed anymore.
Diffstat (limited to 'src/recovery.c')
-rw-r--r-- | src/recovery.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/recovery.c b/src/recovery.c index bcdd945..1a9c970 100644 --- a/src/recovery.c +++ b/src/recovery.c @@ -507,24 +507,6 @@ int recovery_send_kernelcache(struct idevicerestore_client_t* client, plist_t bu return 0; } -int recovery_get_ecid(struct idevicerestore_client_t* client, uint64_t* ecid) -{ - if(client->recovery == NULL) { - if (recovery_client_new(client) < 0) { - return -1; - } - } - - const struct irecv_device_info *device_info = irecv_get_device_info(client->recovery->client); - if (!device_info) { - return -1; - } - - *ecid = device_info->ecid; - - return 0; -} - int recovery_is_image4_supported(struct idevicerestore_client_t* client) { if(client->recovery == NULL) { |