From 0f34eba9beb51acf482fa3d9d400ae198b7061eb Mon Sep 17 00:00:00 2001 From: Benjamin BOURGEAIS Date: Sat, 5 Jun 2021 18:02:11 +0200 Subject: restore: macOS Update LocalPolicy must use the normal build identity --- src/restore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.1-32-gdbae