summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2015-10-09 03:07:34 +0200
committerGravatar Nikias Bassen2015-10-09 03:07:34 +0200
commit7336b600a160d731231d3ab05506e7be0c05f4e0 (patch)
tree0d6f362a80b4f1c33f97f278be925ab655bb7155 /src/idevicerestore.h
parent46ead9b3afd6e79fa05a391b94bc929e94101e33 (diff)
downloadidevicerestore-7336b600a160d731231d3ab05506e7be0c05f4e0.tar.gz
idevicerestore-7336b600a160d731231d3ab05506e7be0c05f4e0.tar.bz2
Select build identity based on hardware model instead of first or last identity in manifest
While this might have worked in the past it didn't work anymore with the iPhone 6S (plus) since it comes with two different CPUs (Samsung & TSMC A9). Therefore the BuildManifest.plist has multiple build identities and for a successful restore the correct build identity has to be selected for the actual hardware model of the corresponding device.
Diffstat (limited to 'src/idevicerestore.h')
-rw-r--r--src/idevicerestore.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/idevicerestore.h b/src/idevicerestore.h
index 931604c..7b23c87 100644
--- a/src/idevicerestore.h
+++ b/src/idevicerestore.h
@@ -84,6 +84,8 @@ int build_manifest_get_identity_count(plist_t build_manifest);
int build_manifest_check_compatibility(plist_t build_manifest, const char* product);
void build_manifest_get_version_information(plist_t build_manifest, struct idevicerestore_client_t* client);
plist_t build_manifest_get_build_identity(plist_t build_manifest, uint32_t identity);
+plist_t build_manifest_get_build_identity_for_model(plist_t build_manifest, const char *hardware_model);
+plist_t build_manifest_get_build_identity_for_model_with_restore_behavior(plist_t build_manifest, const char *hardware_model, const char *behavior);
int build_manifest_get_build_count(plist_t build_manifest);
void build_identity_print_information(plist_t build_identity);
int build_identity_has_component(plist_t build_identity, const char* component);