mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-26 08:11:50 +01:00
Custom IPSW option
This commit is contained in:
parent
f28130e5ec
commit
fe3e6f0f00
@ -43,7 +43,7 @@ SaveOTABlobs() {
|
|||||||
|
|
||||||
if [[ ! -z $SHSH && $SHSHContinue != 1 ]]; then
|
if [[ ! -z $SHSH && $SHSHContinue != 1 ]]; then
|
||||||
mkdir -p saved/shsh 2>/dev/null
|
mkdir -p saved/shsh 2>/dev/null
|
||||||
[[ -z $APNonce ]] && cp "$SHSH" saved/shsh
|
[[ -z $APNonce && ! $SHSHExisting ]] && cp "$SHSH" saved/shsh
|
||||||
Log "Successfully saved $OSVer blobs."
|
Log "Successfully saved $OSVer blobs."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ SetToolPaths() {
|
|||||||
MPath+="$platform"
|
MPath+="$platform"
|
||||||
bspatch="$(which bspatch)"
|
bspatch="$(which bspatch)"
|
||||||
futurerestore="sudo LD_LIBRARY_PATH=./resources/lib ./resources/tools/futurerestore_linux"
|
futurerestore="sudo LD_LIBRARY_PATH=./resources/lib ./resources/tools/futurerestore_linux"
|
||||||
|
futurerestore2="sudo LD_LIBRARY_PATH=./resources/lib ./resources/tools/futurerestore2_linux"
|
||||||
idevicerestore="sudo LD_LIBRARY_PATH=./resources/lib ./resources/tools/idevicerestore_linux"
|
idevicerestore="sudo LD_LIBRARY_PATH=./resources/lib ./resources/tools/idevicerestore_linux"
|
||||||
python="$(which python2)"
|
python="$(which python2)"
|
||||||
ipwndfu="sudo $python ipwndfu"
|
ipwndfu="sudo $python ipwndfu"
|
||||||
@ -32,6 +33,7 @@ SetToolPaths() {
|
|||||||
bspatch="/usr/bin/bspatch"
|
bspatch="/usr/bin/bspatch"
|
||||||
futurerestore="./resources/tools/futurerestore_macos_$(uname -m)"
|
futurerestore="./resources/tools/futurerestore_macos_$(uname -m)"
|
||||||
[[ ! -e $futurerestore ]] && futurerestore="./resources/tools/futurerestore_macos_arm64"
|
[[ ! -e $futurerestore ]] && futurerestore="./resources/tools/futurerestore_macos_arm64"
|
||||||
|
futurerestore2="./resources/tools/futurerestore2_macos"
|
||||||
idevicerestore="./resources/tools/idevicerestore_macos"
|
idevicerestore="./resources/tools/idevicerestore_macos"
|
||||||
ipwnder32="./resources/tools/ipwnder32_macos"
|
ipwnder32="./resources/tools/ipwnder32_macos"
|
||||||
python="/usr/bin/python"
|
python="/usr/bin/python"
|
||||||
|
@ -64,6 +64,16 @@ FutureRestore() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetIPSWCustomW() {
|
||||||
|
if [[ $DeviceProc == 7 ]]; then
|
||||||
|
IPSWCustomW=2
|
||||||
|
futurerestore=$futurerestore2
|
||||||
|
else
|
||||||
|
IPSWCustom="${IPSWCustom}W"
|
||||||
|
IPSWCustomW=1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
Downgrade() {
|
Downgrade() {
|
||||||
local IPSWExtract
|
local IPSWExtract
|
||||||
local IPSWSHA1
|
local IPSWSHA1
|
||||||
@ -143,12 +153,17 @@ Downgrade() {
|
|||||||
IPSWCustom="${IPSWType}_${OSVer}_${BuildVer}_Custom"
|
IPSWCustom="${IPSWType}_${OSVer}_${BuildVer}_Custom"
|
||||||
|
|
||||||
if [[ $Jailbreak != 1 && $platform == "win" ]]; then
|
if [[ $Jailbreak != 1 && $platform == "win" ]]; then
|
||||||
if [[ $DeviceProc == 7 ]]; then
|
SetIPSWCustomW
|
||||||
IPSWCustomW=2
|
elif [[ $Jailbreak != 1 ]]; then
|
||||||
else
|
Input "Custom IPSW Option"
|
||||||
IPSWCustom="${IPSWCustom}W"
|
Echo "* When this option is enabled, a custom IPSW will be made for the restore."
|
||||||
IPSWCustomW=1
|
Echo "* Enable this option later if you experience issues with futurerestore."
|
||||||
|
Echo "* This option is disabled by default (N)."
|
||||||
|
read -p "$(Input 'Enable this option? (y/N):')" IPSWCustomW
|
||||||
|
if [[ $IPSWCustomW == 'Y' || $IPSWCustomW == 'y' ]]; then
|
||||||
|
SetIPSWCustomW
|
||||||
fi
|
fi
|
||||||
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $Jailbreak == 1 || ! -z $IPSWCustomW ]]; then
|
if [[ $Jailbreak == 1 || ! -z $IPSWCustomW ]]; then
|
||||||
@ -208,6 +223,8 @@ Downgrade() {
|
|||||||
if [[ $Jailbreak == 1 || $IPSWCustomW == 1 ]]; then
|
if [[ $Jailbreak == 1 || $IPSWCustomW == 1 ]]; then
|
||||||
IPSW32
|
IPSW32
|
||||||
IPSWExtract="$IPSWCustom"
|
IPSWExtract="$IPSWCustom"
|
||||||
|
elif [[ $IPSWCustomW == 2 && $Verify != 1 ]]; then
|
||||||
|
IPSWExtract="$IPSWCustom"
|
||||||
else
|
else
|
||||||
IPSWExtract="$IPSW"
|
IPSWExtract="$IPSW"
|
||||||
fi
|
fi
|
||||||
|
BIN
resources/tools/futurerestore2_linux
Executable file
BIN
resources/tools/futurerestore2_linux
Executable file
Binary file not shown.
BIN
resources/tools/futurerestore2_macos
Executable file
BIN
resources/tools/futurerestore2_macos
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user