From 18f6e42f261386f10c93f16d31c927704fdd78a3 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Mon, 9 Aug 2021 16:36:11 +0200 Subject: restore: Set SupportedDataTypes and SupportedMessageTypes for ALL restore variants/platforms --- src/restore.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/restore.c b/src/restore.c index e090594..d5d1463 100644 --- a/src/restore.c +++ b/src/restore.c @@ -3485,6 +3485,9 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit } } + plist_dict_set_item(opts, "SupportedDataTypes", restore_supported_data_types()); + plist_dict_set_item(opts, "SupportedMessageTypes", restore_supported_message_types()); + // FIXME: Should be adjusted for update behaviors if (client->build_major >= 20) { plist_dict_set_item(opts, "AddSystemPartitionPadding", plist_new_bool(1)); @@ -3512,8 +3515,6 @@ int restore_device(struct idevicerestore_client_t* client, plist_t build_identit plist_dict_set_item(opts, "RecoveryOSUnpack", plist_new_bool(1)); plist_dict_set_item(opts, "ShouldRestoreSystemImage", plist_new_bool(1)); plist_dict_set_item(opts, "SkipPreflightPersonalization", plist_new_bool(0)); - plist_dict_set_item(opts, "SupportedDataTypes", restore_supported_data_types()); - plist_dict_set_item(opts, "SupportedMessageTypes", restore_supported_message_types()); plist_dict_set_item(opts, "UpdateBaseband", plist_new_bool(1)); // FIXME: I don't know where this number comes from yet. It seems like it matches this part of the build identity: // OSVarContentSize -- cgit v1.1-32-gdbae