From 04f6703fb1950e84fa48ad8e5629082fb4f3abdf Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Mon, 12 Feb 2024 16:59:08 +0800 Subject: [PATCH] This should be the last of em apple logos --- restore.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/restore.sh b/restore.sh index 15f9d98..5dcd1c2 100755 --- a/restore.sh +++ b/restore.sh @@ -3004,9 +3004,16 @@ ipsw_prepare_ios4multipart() { unzip -o -j "$ipsw_path.ipsw" $all_flash2/$logo_name echo "0000010: 3467" | xxd -r - $logo_name echo "0000020: 3467" | xxd -r - $logo_name - mv $logo_name $all_flash/applelogo4.img3 log "Add AppleLogo to all_flash" - echo "applelogo4.img3" >> $all_flash/manifest + if [[ $device_latest_vers == "5"* ]]; then + mv $logo_name $all_flash/applelogo4.img3 + echo "applelogo4.img3" >> $all_flash/manifest + else + sed '/applelogo/d' $all_flash/manifest > manifest + rm $all_flash/manifest + echo "$logo_name" >> manifest + mv $logo_name manifest $all_flash/ + fi log "Creating $ipsw_custom_part2.ipsw..." pushd $ipsw_custom_part2 >/dev/null