fix potential error for iPhone5,1 baseband
This commit is contained in:
LukeZGD 2021-06-08 11:04:40 +08:00
parent 00978b4120
commit 559d8d1563
3 changed files with 4 additions and 5 deletions

View File

@ -46,8 +46,8 @@ SetToolPaths() {
}
SaveExternal() {
ExternalURL="https://github.com/LukeZGD/$1.git"
External=$1
local ExternalURL="https://github.com/LukeZGD/$1.git"
local External=$1
[[ $1 == "iOS-OTA-Downgrader-Keys" ]] && External="firmware"
cd resources
if [[ ! -d $External || ! -d $External/.git ]]; then

View File

@ -135,6 +135,7 @@ GetDeviceValues() {
CheckM8() {
local pwnDFUTool
local pwnDFUDevice
[[ $platform == macos ]] && pwnDFUTool="iPwnder32" || pwnDFUTool="ipwndfu"
Log "Entering pwnDFU mode with $pwnDFUTool..."

View File

@ -17,11 +17,9 @@ iDeviceRestore() {
FRBaseband() {
local BasebandSHA1L
if [[ $DeviceProc == 7 ]]; then
if [[ $DeviceProc == 7 ]] || [[ $ProductType == "iPhone5,1" && $Baseband5 != 0 ]]; then
mkdir -p saved/baseband 2>/dev/null
cp -f $IPSWRestore/Firmware/$Baseband saved/baseband
elif [[ $ProductType == "iPhone5,1" && $Baseband5 != 0 ]]; then
unzip -o -j $IPSW.ipsw Firmware/$Baseband -d .
elif [[ ! -e saved/baseband/$Baseband ]]; then
Log "Downloading baseband..."
$partialzip $BasebandURL Firmware/$Baseband $Baseband