summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Benjamin BOURGEAIS2021-06-05 18:02:11 +0200
committerGravatar Benjamin BOURGEAIS2021-06-05 18:02:11 +0200
commit0f34eba9beb51acf482fa3d9d400ae198b7061eb (patch)
treeaf702589ad24b30aa975c426d0cfc5d27774df13 /src
parente18af8e80d71bd0f87915e64be66071d0379be38 (diff)
downloadidevicerestore-0f34eba9beb51acf482fa3d9d400ae198b7061eb.tar.gz
idevicerestore-0f34eba9beb51acf482fa3d9d400ae198b7061eb.tar.bz2
restore: macOS Update LocalPolicy must use the normal build identity
Diffstat (limited to 'src')
-rw-r--r--src/restore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/restore.c b/src/restore.c
index 7022006..45dda07 100644
--- a/src/restore.c
+++ b/src/restore.c
@@ -3045,7 +3045,8 @@ int restore_send_restore_local_policy(restored_client_t restore, struct idevicer
component_size = sizeof(lpol_file);
memcpy(component_data, lpol_file, component_size);
- plist_t build_identity = restore_get_build_identity(client, 1);
+ // The Update mode does not have a specific build identity for the recovery os.
+ plist_t build_identity = restore_get_build_identity(client, client->flags & FLAG_ERASE ? 1 : 0);
int ret = get_recovery_os_local_policy_tss_response(client, build_identity, &client->tss_localpolicy, plist_dict_get_item(msg, "Arguments"));
if (ret < 0) {