mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 10:24:16 +01:00
oh come on
This commit is contained in:
parent
04f6703fb1
commit
7505eb09f0
27
restore.sh
27
restore.sh
@ -2223,10 +2223,22 @@ ipsw_prepare_paths() {
|
|||||||
local name=$(echo $fw_key | $jq -j '.keys[] | select(.image | startswith("'$getcomp'")) | .filename')
|
local name=$(echo $fw_key | $jq -j '.keys[] | select(.image | startswith("'$getcomp'")) | .filename')
|
||||||
local str="<key>$comp</key><dict><key>File</key><string>Firmware/all_flash/all_flash.${device_model}ap.production/"
|
local str="<key>$comp</key><dict><key>File</key><string>Firmware/all_flash/all_flash.${device_model}ap.production/"
|
||||||
local str2
|
local str2
|
||||||
|
local logostuff
|
||||||
if [[ $2 == "target" ]]; then
|
if [[ $2 == "target" ]]; then
|
||||||
|
case $comp in
|
||||||
|
*"AppleLogo" )
|
||||||
|
if [[ $device_latest_vers == "5"* ]]; then
|
||||||
|
logostuff=1
|
||||||
|
else
|
||||||
|
case $device_target_vers in
|
||||||
|
[789]* ) logostuff=1;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
case $comp in
|
case $comp in
|
||||||
"NewAppleLogo" )
|
"NewAppleLogo" )
|
||||||
if [[ $device_latest_vers != "5"* ]]; then
|
if [[ $logostuff != 1 ]]; then
|
||||||
str+="$str2"
|
str+="$str2"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
@ -2238,7 +2250,7 @@ ipsw_prepare_paths() {
|
|||||||
case $comp in
|
case $comp in
|
||||||
"AppleLogo" )
|
"AppleLogo" )
|
||||||
str+="$str2"
|
str+="$str2"
|
||||||
if [[ $device_latest_vers == "5"* ]]; then
|
if [[ $logostuff == 1 ]]; then
|
||||||
echo "$str2" >> $FirmwareBundle/manifest
|
echo "$str2" >> $FirmwareBundle/manifest
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
@ -3313,7 +3325,11 @@ ipsw_prepare_powder() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local ExtraArr=("--boot-partition" "--boot-ramdisk" "--logo")
|
local ExtraArr=("--boot-partition" "--boot-ramdisk")
|
||||||
|
case $device_target_vers in
|
||||||
|
[789]* ) :;;
|
||||||
|
* ) ExtraArr+=("--logo");;
|
||||||
|
esac
|
||||||
if [[ $device_type == "iPhone5"* ]]; then
|
if [[ $device_type == "iPhone5"* ]]; then
|
||||||
# do this stuff because these use ramdiskH (jump to /boot/iBEC) instead of jump ibot to ibob
|
# do this stuff because these use ramdiskH (jump to /boot/iBEC) instead of jump ibot to ibob
|
||||||
if [[ $device_target_vers == "9"* ]]; then
|
if [[ $device_target_vers == "9"* ]]; then
|
||||||
@ -3352,11 +3368,16 @@ ipsw_prepare_powder() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $device_type != "iPhone5"* && $device_type != "iPad1,1" ]]; then
|
if [[ $device_type != "iPhone5"* && $device_type != "iPad1,1" ]]; then
|
||||||
|
case $device_target_vers in
|
||||||
|
[789]* ) :;;
|
||||||
|
* )
|
||||||
patch_iboot --logo
|
patch_iboot --logo
|
||||||
local all_flash="Firmware/all_flash/all_flash.${device_model}ap.production"
|
local all_flash="Firmware/all_flash/all_flash.${device_model}ap.production"
|
||||||
mkdir -p $all_flash
|
mkdir -p $all_flash
|
||||||
mv iBoot*.img3 $all_flash
|
mv iBoot*.img3 $all_flash
|
||||||
zip -r0 temp.ipsw $all_flash/iBoot*.img3
|
zip -r0 temp.ipsw $all_flash/iBoot*.img3
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
ipsw_bbreplace
|
ipsw_bbreplace
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user