summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-08-09 16:36:11 +0200
committerGravatar Nikias Bassen2021-08-09 16:36:11 +0200
commit18f6e42f261386f10c93f16d31c927704fdd78a3 (patch)
tree81c0ccd22d4a43f24716ff508e54102b5ece785a /src
parentdfa05a8c417e785799a0d8ea0f9a58ed89a13085 (diff)
downloadidevicerestore-18f6e42f261386f10c93f16d31c927704fdd78a3.tar.gz
idevicerestore-18f6e42f261386f10c93f16d31c927704fdd78a3.tar.bz2
restore: Set SupportedDataTypes and SupportedMessageTypes for ALL restore variants/platforms
Diffstat (limited to 'src')
-rw-r--r--src/restore.c5
1 files changed, 3 insertions, 2 deletions
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:
// <key>OSVarContentSize</key>