diff options
author | Nikias Bassen | 2021-08-09 16:36:11 +0200 |
---|---|---|
committer | Nikias Bassen | 2021-08-09 16:36:11 +0200 |
commit | 18f6e42f261386f10c93f16d31c927704fdd78a3 (patch) | |
tree | 81c0ccd22d4a43f24716ff508e54102b5ece785a /src | |
parent | dfa05a8c417e785799a0d8ea0f9a58ed89a13085 (diff) | |
download | idevicerestore-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.c | 5 |
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> |