From fbbd4b69842cf97c2d89f0732c88ce127b5d098c Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 27 Jun 2022 03:31:33 +0200 Subject: Ignore 'Research*' variant in build identity selection --- src/idevicerestore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/idevicerestore.c b/src/idevicerestore.c index 40c7d5c..96ba67a 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -1954,8 +1954,8 @@ plist_t build_manifest_get_build_identity_for_model_with_variant(plist_t build_m } str = plist_get_string_ptr(rvariant, NULL); if (strcmp(str, variant) != 0) { - /* if it's not a full match, let's try a partial match */ - if (strstr(str, variant)) { + /* if it's not a full match, let's try a partial match, but ignore "*Research*" */ + if (strstr(str, variant) && !strstr(str, "Research")) { return ident; } continue; -- cgit v1.1-32-gdbae