mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-23 23:01:49 +01:00
Restore712 for iPhone3,2 and 3,3
This commit is contained in:
parent
f4df104b8a
commit
b05d79c3b8
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -52,6 +52,8 @@ jobs:
|
||||
mv ./resources/lib/* ./exclude/lib
|
||||
mv ./resources/tools/*linux* ./exclude/tools
|
||||
mv ./resources/firmware/FirmwareBundles ./resources/firmware/JailbreakBundles ./exclude/firmware
|
||||
mkdir ./resources/firmware/FirmwareBundles
|
||||
mv ./exclude/firmware/FirmwareBundles/Down_iPhone3* ./resources/firmware/FirmwareBundles
|
||||
|
||||
- name: Download and extract libimobiledevice_win
|
||||
run: |
|
||||
|
@ -54,9 +54,12 @@
|
||||
<tr><td>iPad 2 (except iPad2,4)</td></tr>
|
||||
<tr>
|
||||
<td>iOS 7.1.2</td>
|
||||
<td rowspan=2>iPhone 4 GSM (iPhone3,1)</td>
|
||||
<td>iPhone 4 (all models)</td></tr>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>iOS 4.3 to 6.1.3</td>
|
||||
<td>iPhone 4 GSM</td>
|
||||
</tr>
|
||||
<tr><td>iOS 4.3 to 6.1.3</td></tr></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
@ -159,7 +159,7 @@ GetDeviceValues() {
|
||||
if [[ $ProductType == "iPhone3"* ]]; then
|
||||
DeviceProc=4
|
||||
if [[ $ProductType == "iPhone3,1" ]]; then
|
||||
Log "iPhone 4 GSM detected. iPhone4Down functions enabled."
|
||||
Log "$ProductType detected. iPhone4Down functions enabled."
|
||||
Echo "* This script uses powdersn0w by dora2ios"
|
||||
else
|
||||
Log "$ProductType detected. Your device is not supported by powdersn0w (yet)"
|
||||
@ -212,9 +212,10 @@ EnterPwnDFU() {
|
||||
local pwnDFUTool
|
||||
local pwnDFUDevice
|
||||
local pwnD=1
|
||||
local pwn="-p"
|
||||
local Selection=()
|
||||
|
||||
if [[ $ProductType == "iPhone3,1" ]]; then
|
||||
if [[ $DeviceProc == 4 ]]; then
|
||||
pwnDFUTool="$pwnedDFU"
|
||||
if [[ $platform == "win" ]]; then
|
||||
Log "iPhone 4 device detected in DFU mode."
|
||||
@ -248,6 +249,12 @@ EnterPwnDFU() {
|
||||
SaveExternal ipwndfu
|
||||
fi
|
||||
|
||||
if [[ $pwnDFUTool == "$gaster" ]]; then
|
||||
pwn="pwn"
|
||||
elif [[ $ProductType == "iPhone3,3" && $platform == "linux" ]]; then
|
||||
pwn="-s"
|
||||
fi
|
||||
|
||||
Log "Entering pwnDFU mode with: $pwnDFUTool"
|
||||
if [[ $pwnDFUTool == "ipwndfu" ]]; then
|
||||
cd resources/ipwndfu
|
||||
@ -262,11 +269,8 @@ EnterPwnDFU() {
|
||||
cd ../..
|
||||
SendPwnediBSS
|
||||
fi
|
||||
elif [[ $pwnDFUTool == "$gaster" ]]; then
|
||||
$pwnDFUTool pwn
|
||||
pwnDFUDevice=$?
|
||||
else
|
||||
$pwnDFUTool -p
|
||||
$pwnDFUTool $pwn
|
||||
pwnDFUDevice=$?
|
||||
fi
|
||||
if [[ $DeviceProc == 4 || $DeviceProc == 7 ]]; then
|
||||
@ -274,7 +278,7 @@ EnterPwnDFU() {
|
||||
SendiBSS=1
|
||||
fi
|
||||
|
||||
if [[ $ProductType == "iPhone3,1" ]]; then
|
||||
if [[ $DeviceProc == 4 ]]; then
|
||||
if [[ $pwnD != 1 ]]; then
|
||||
Error "Failed to enter pwnDFU mode. Please run the script again. Note that kDFU mode will NOT work!" \
|
||||
"Exit DFU mode first by holding the TOP and HOME buttons for about 15 seconds."
|
||||
@ -458,6 +462,29 @@ kDFU() {
|
||||
FindDevice "DFU"
|
||||
}
|
||||
|
||||
Remove4DL() {
|
||||
local Link
|
||||
if [[ ! -e saved/$ProductType/$1_p ]]; then
|
||||
Link=$(cat $Firmware/11D257/url)
|
||||
[[ -n $2 ]] && Link=$(cat $Firmware/$2/url)
|
||||
Log "Downloading $1..."
|
||||
$partialzip $Link Firmware/dfu/$1.${HWModel}ap.RELEASE.dfu $1
|
||||
mkdir -p saved/$ProductType 2>/dev/null
|
||||
cp $1 saved/$ProductType/$1_p
|
||||
mv $1 tmp
|
||||
else
|
||||
cp saved/$ProductType/$1_p tmp/$1
|
||||
fi
|
||||
Log "Patching $1..."
|
||||
if [[ -n $2 ]]; then
|
||||
$bspatch tmp/iBSS tmp/pwnediBSS resources/patches/$1.${HWModel}ap.$2.patch
|
||||
else
|
||||
$bspatch tmp/$1 tmp/pwned$1 resources/patches/$1.${HWModel}ap.RELEASE.patch
|
||||
fi
|
||||
Log "Booting $1..."
|
||||
$irecovery -f tmp/pwned$1
|
||||
}
|
||||
|
||||
Remove4() {
|
||||
Input "Select option:"
|
||||
select opt in "Disable exploit" "Enable exploit" "(Any other key to exit)"; do
|
||||
@ -467,19 +494,13 @@ Remove4() {
|
||||
* ) exit 0;;
|
||||
esac
|
||||
done
|
||||
if [[ ! -e saved/iPhone3,1/iBSS_8L1 ]]; then
|
||||
Log "Downloading iBSS..."
|
||||
$partialzip http://appldnld.apple.com/iPhone4/041-1966.20110721.V3Ufe/iPhone3,1_4.3.5_8L1_Restore.ipsw Firmware/dfu/iBSS.n90ap.RELEASE.dfu iBSS
|
||||
mkdir -p saved/iPhone3,1 2>/dev/null
|
||||
cp iBSS saved/iPhone3,1/iBSS_8L1
|
||||
mv iBSS tmp
|
||||
|
||||
if [[ $ProductType == "iPhone3,1" ]]; then
|
||||
Remove4DL iBSS 8L1
|
||||
else
|
||||
cp saved/iPhone3,1/iBSS_8L1 tmp/iBSS
|
||||
Remove4DL iBSS
|
||||
Remove4DL iBEC
|
||||
fi
|
||||
Log "Patching iBSS..."
|
||||
$bspatch tmp/iBSS tmp/pwnediBSS resources/patches/iBSS.n90ap.8L1.patch
|
||||
Log "Booting iBSS..."
|
||||
$irecovery -f tmp/pwnediBSS
|
||||
sleep 2
|
||||
Log "Running commands..."
|
||||
$irecovery -c "setenv boot-partition $Rec"
|
||||
|
@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>DownloadUrl</key>
|
||||
<string></string>
|
||||
<key>Filename</key>
|
||||
<string>iPhone3,2_7.1.2_11D257_Restore.ipsw</string>
|
||||
<key>FilesystemPatches</key>
|
||||
<dict/>
|
||||
<key>FirmwarePatches</key>
|
||||
<dict>
|
||||
<key>Restore Ramdisk</key>
|
||||
<dict>
|
||||
<key>Decrypt</key>
|
||||
<true/>
|
||||
<key>File</key>
|
||||
<string>058-4107-013.dmg</string>
|
||||
<key>IV</key>
|
||||
<string>4d45b18575f0e48ef0c1f1fea1663e0e</string>
|
||||
<key>Key</key>
|
||||
<string>2ab11294614e2fda8e8c806208e3bd96337877673e166702e5f5df558da48b09</string>
|
||||
<key>TypeFlag</key>
|
||||
<integer>8</integer>
|
||||
</dict>
|
||||
<key>RestoreDeviceTree</key>
|
||||
<dict>
|
||||
<key>DecryptPath</key>
|
||||
<string>Downgrade/DeviceTree.n90bap.img3</string>
|
||||
<key>File</key>
|
||||
<string>Firmware/all_flash/all_flash.n90bap.production/DeviceTree.n90bap.img3</string>
|
||||
<key>IV</key>
|
||||
<string>206e596d02d01842941d90ad71f4265f</string>
|
||||
<key>Key</key>
|
||||
<string>38f09516b60d5d2839ac7ed8d6f288af53babf8d49d1b70bc509170c3dcd0f2a</string>
|
||||
</dict>
|
||||
<key>RestoreKernelCache</key>
|
||||
<dict>
|
||||
<key>DecryptPath</key>
|
||||
<string>Downgrade/kernelcache.release.n90b</string>
|
||||
<key>File</key>
|
||||
<string>kernelcache.release.n90b</string>
|
||||
<key>IV</key>
|
||||
<string>054fa7c7537f0d7f5271349656d729e6</string>
|
||||
<key>Key</key>
|
||||
<string>f24fa28626283eb1e252fec878ab0716d0fd7b6e62cf114fcd1ce132ba96d633</string>
|
||||
<key>TypeFlag</key>
|
||||
<integer>4</integer>
|
||||
</dict>
|
||||
<key>RestoreLogo</key>
|
||||
<dict>
|
||||
<key>DecryptPath</key>
|
||||
<string>Downgrade/applelogo@2x~iphone.s5l8930x.img3</string>
|
||||
<key>File</key>
|
||||
<string>Firmware/all_flash/all_flash.n90bap.production/applelogo@2x~iphone.s5l8930x.img3</string>
|
||||
<key>IV</key>
|
||||
<string>2287b716b833ba84566cf365e3368d37</string>
|
||||
<key>Key</key>
|
||||
<string>2ab11294614e2fda8e8c806208e3bd96337877673e166702e5f5df558da48b09</string>
|
||||
</dict>
|
||||
<key>iBEC</key>
|
||||
<dict>
|
||||
<key>Decrypt</key>
|
||||
<true/>
|
||||
<key>File</key>
|
||||
<string>Firmware/dfu/iBEC.n90bap.RELEASE.dfu</string>
|
||||
<key>IV</key>
|
||||
<string>a6ff0ef84ca1c536f540b81c0c858858</string>
|
||||
<key>Key</key>
|
||||
<string>45f08035e58d63e6426f1b81fa760e6019b37a42c5286b108b4c37f58e0bc06b</string>
|
||||
<key>Patch</key>
|
||||
<string>iBEC.n90bap.RELEASE.patch</string>
|
||||
<key>TypeFlag</key>
|
||||
<integer>8</integer>
|
||||
</dict>
|
||||
<key>iBSS</key>
|
||||
<dict>
|
||||
<key>Decrypt</key>
|
||||
<true/>
|
||||
<key>File</key>
|
||||
<string>Firmware/dfu/iBSS.n90bap.RELEASE.dfu</string>
|
||||
<key>IV</key>
|
||||
<string>a5e8a7cd8e659db3b6f983409b98b66c</string>
|
||||
<key>Key</key>
|
||||
<string>42865aa964f0cba160d173794530e40e46910e14383f3ac9d24cd650ebdb9926</string>
|
||||
<key>Patch</key>
|
||||
<string>iBSS.n90bap.RELEASE.patch</string>
|
||||
<key>TypeFlag</key>
|
||||
<integer>8</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>Name</key>
|
||||
<string>iPhone3,2_7.1.2_11D257</string>
|
||||
<key>Platform</key>
|
||||
<integer>1</integer>
|
||||
<key>RamdiskMountVolume</key>
|
||||
<string>ramdisk</string>
|
||||
<key>RamdiskOptionsPath</key>
|
||||
<string>/usr/local/share/restore/options.n90b.plist</string>
|
||||
<key>RamdiskPatches</key>
|
||||
<dict>
|
||||
<key>asr</key>
|
||||
<dict>
|
||||
<key>File</key>
|
||||
<string>usr/sbin/asr</string>
|
||||
<key>Patch</key>
|
||||
<string>asr.patch</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>RootFilesystem</key>
|
||||
<string>058-4498-010.dmg</string>
|
||||
<key>RootFilesystemKey</key>
|
||||
<string>10a8d34290659b33117f5b6dfe59055d6a38400819dbbecfd3ad50b7b68619c5bf10f852</string>
|
||||
<key>RootFilesystemMountVolume</key>
|
||||
<string>Sochi11D257.N90bOS</string>
|
||||
<key>RootFilesystemSize</key>
|
||||
<integer>1515</integer>
|
||||
<key>SHA1</key>
|
||||
<string>b3c0c0adc95ae2ae1184e9aa111845cd705975d9</string>
|
||||
<key>SubPlatform</key>
|
||||
<integer>6</integer>
|
||||
</dict>
|
||||
</plist>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,143 @@
|
||||
<?xml version=1.0 encoding=UTF-8?>
|
||||
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd>
|
||||
<plist version=1.0>
|
||||
<dict>
|
||||
<key>FilesystemPatches</key>
|
||||
<dict/>
|
||||
<key>FirmwarePatches</key>
|
||||
<dict>
|
||||
<key>RestoreKernelCache</key>
|
||||
<dict>
|
||||
<key>File</key>
|
||||
<string>kernelcache.release.n92</string>
|
||||
<key>IV</key>
|
||||
<string>b84212f017d5ffd962db0bbe050581dc</string>
|
||||
<key>Key</key>
|
||||
<string>92e5720cadf724cdf428d44119b634ab3346aef1ab4e3e20abc8ecb73f7f8642</string>
|
||||
<!--key>Patch</key>
|
||||
<string>kernelcache.release.patch</string-->
|
||||
<key>DecryptPath</key>
|
||||
<string>Downgrade/kernelcache.release.n92</string>
|
||||
<key>TypeFlag</key>
|
||||
<integer>4</integer>
|
||||
</dict>
|
||||
<!--key>Update Ramdisk</key>
|
||||
<dict>
|
||||
<key>File</key>
|
||||
<string>058-4266-010.dmg</string>
|
||||
<key>IV</key>
|
||||
<string>ab730b85ad270792ffd33f9c75382d15</string>
|
||||
<key>Key</key>
|
||||
<string>8b368bd8e2a09f000258f794c95ed405c1078796abefe1f522ec42e248e08f0b</string>
|
||||
<key>TypeFlag</key>
|
||||
<integer>8</integer>
|
||||
</dict-->
|
||||
<key>Restore Ramdisk</key>
|
||||
<dict>
|
||||
<key>File</key>
|
||||
<string>058-4107-013.dmg</string>
|
||||
<key>IV</key>
|
||||
<string>e6562294eb9989aaca7fda5b57065fde</string>
|
||||
<key>Key</key>
|
||||
<string>ad5cfa520f1018d4083710011f627107389785f425303938e5412dff1aee65bb</string>
|
||||
<key>Decrypt</key>
|
||||
<true/>
|
||||
<key>TypeFlag</key>
|
||||
<integer>8</integer>
|
||||
</dict>
|
||||
<key>iBSS</key>
|
||||
<dict>
|
||||
<key>File</key>
|
||||
<string>Firmware/dfu/iBSS.n92ap.RELEASE.dfu</string>
|
||||
<key>IV</key>
|
||||
<string>f5f67870c11f90c5f0f416df89618470</string>
|
||||
<key>Key</key>
|
||||
<string>579c6275ac9835fe7a4c148ee1e6af5289431996d51fa145a8d5bc438559bdb1</string>
|
||||
<key>Patch</key>
|
||||
<string>iBSS.n92ap.RELEASE.patch</string>
|
||||
<key>Decrypt</key>
|
||||
<true/>
|
||||
<key>TypeFlag</key>
|
||||
<integer>8</integer>
|
||||
</dict>
|
||||
<key>iBEC</key>
|
||||
<dict>
|
||||
<key>File</key>
|
||||
<string>Firmware/dfu/iBEC.n92ap.RELEASE.dfu</string>
|
||||
<key>IV</key>
|
||||
<string>858cc5776b240dd9c5eac82e56dd6706</string>
|
||||
<key>Key</key>
|
||||
<string>97c37caee1839d5bf6a51a5d7fbdd5b24d6e4fc50a151d82dd66777825e0efab</string>
|
||||
<key>Patch</key>
|
||||
<string>iBEC.n92ap.RELEASE.patch</string>
|
||||
<key>Decrypt</key>
|
||||
<true/>
|
||||
<key>TypeFlag</key>
|
||||
<integer>8</integer>
|
||||
</dict>
|
||||
<key>RestoreDeviceTree</key>
|
||||
<dict>
|
||||
<key>File</key>
|
||||
<string>Firmware/all_flash/all_flash.n92ap.production/DeviceTree.n92ap.img3</string>
|
||||
<key>IV</key>
|
||||
<string>8662383170bb93fffe2dbdd181a620da</string>
|
||||
<key>Key</key>
|
||||
<string>8473b8932e1957c1e650f15cb3b6f49f497e241ebacfaa7d0b1eca3b15fc633c</string>
|
||||
<key>DecryptPath</key>
|
||||
<string>Downgrade/DeviceTree.n92ap.img3</string>
|
||||
</dict>
|
||||
<key>RestoreLogo</key>
|
||||
<dict>
|
||||
<key>File</key>
|
||||
<string>Firmware/all_flash/all_flash.n92ap.production/applelogo@2x~iphone.s5l8930x.img3</string>
|
||||
<key>IV</key>
|
||||
<string>2287b716b833ba84566cf365e3368d37</string>
|
||||
<key>Key</key>
|
||||
<string>73f0cef0f12ed5e43b53c87373a2be672481c4fc0f1f542c5e8da8b7d518611f</string>
|
||||
<key>DecryptPath</key>
|
||||
<string>Downgrade/applelogo@2x~iphone.s5l8930x.img3</string>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>RamdiskPatches</key>
|
||||
<dict>
|
||||
<key>asr</key>
|
||||
<dict>
|
||||
<key>File</key>
|
||||
<string>usr/sbin/asr</string>
|
||||
<key>Patch</key>
|
||||
<string>asr.patch</string>
|
||||
</dict>
|
||||
<!--key>restored_external</key>
|
||||
<dict>
|
||||
<key>File</key>
|
||||
<string>usr/local/bin/restored_external</string>
|
||||
<key>Patch</key>
|
||||
<string>restored.patch</string>
|
||||
</dict-->
|
||||
</dict>
|
||||
<key>RamdiskMountVolume</key>
|
||||
<string>ramdisk</string>
|
||||
<key>RamdiskOptionsPath</key>
|
||||
<string>/usr/local/share/restore/options.n92.plist</string>
|
||||
<key>RootFilesystem</key>
|
||||
<string>058-4110-009.dmg</string>
|
||||
<key>RootFilesystemSize</key>
|
||||
<integer>1522</integer>
|
||||
<key>RootFilesystemKey</key>
|
||||
<string>423b3503689b7058d1398d1b5d56a7b1ccf4d79e1c3e6ba853122b4f86820a9e3bc911f6</string>
|
||||
<key>RootFilesystemMountVolume</key>
|
||||
<string>Sochi11D257.N92OS</string>
|
||||
<key>SHA1</key>
|
||||
<string>aaeda3c8e1979189faa153cdf43e817a3f81f74c</string>
|
||||
<key>Filename</key>
|
||||
<string>iPhone3,3_7.1.2_11D257_Restore.ipsw</string>
|
||||
<key>Name</key>
|
||||
<string>iPhone3,3_7.1.2_11D257</string>
|
||||
<key>DownloadUrl</key>
|
||||
<string></string>
|
||||
<key>Platform</key>
|
||||
<integer>1</integer>
|
||||
<key>SubPlatform</key>
|
||||
<integer>6</integer>
|
||||
</dict>
|
||||
</plist>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
1
resources/firmware/iPhone3,3/10B329/sha1sum
Normal file
1
resources/firmware/iPhone3,3/10B329/sha1sum
Normal file
@ -0,0 +1 @@
|
||||
42f09fdc2e35426cc402ee683efb3b5e62dfe46a
|
1
resources/firmware/iPhone3,3/10B329/url
Normal file
1
resources/firmware/iPhone3,3/10B329/url
Normal file
@ -0,0 +1 @@
|
||||
http://appldnld.apple.com/iOS6.1/091-2351.20130319.Fe431/iPhone3,3_6.1.3_10B329_Restore.ipsw
|
1
resources/firmware/iPhone3,3/11D257/sha1sum
Normal file
1
resources/firmware/iPhone3,3/11D257/sha1sum
Normal file
@ -0,0 +1 @@
|
||||
aaeda3c8e1979189faa153cdf43e817a3f81f74c
|
@ -42,7 +42,6 @@ JailbreakSet() {
|
||||
}
|
||||
|
||||
JailbreakOption() {
|
||||
echo
|
||||
Input "Jailbreak Option"
|
||||
Echo "* When this option is enabled, your device will be jailbroken on restore."
|
||||
if [[ $OSVer == "6.1.3" ]]; then
|
||||
@ -249,7 +248,6 @@ IPSW4() {
|
||||
local JBFiles=()
|
||||
local JBFiles2
|
||||
local JBSHA1
|
||||
local WinBundles
|
||||
|
||||
if [[ -e $IPSWCustom.ipsw ]]; then
|
||||
Log "Found existing Custom IPSW. Skipping IPSW creation."
|
||||
@ -287,10 +285,9 @@ IPSW4() {
|
||||
if [[ $OSVer == "7.1.2" && ! -e $IPSWCustom.ipsw ]]; then
|
||||
if [[ $platform == "win" ]]; then
|
||||
ipsw="${ipsw}3"
|
||||
WinBundles="windows/"
|
||||
fi
|
||||
Log "Preparing custom IPSW..."
|
||||
cp -rf ../resources/firmware/${WinBundles}FirmwareBundles .
|
||||
cp -rf ../resources/firmware/FirmwareBundles .
|
||||
$ipsw ../$IPSW.ipsw ../$IPSWCustom.ipsw $JBMemory -S 50 ${JBFiles[@]}
|
||||
elif [[ ! -e $IPSWCustom.ipsw ]]; then
|
||||
echo
|
||||
@ -357,6 +354,7 @@ IPSW4Cherry() {
|
||||
Log "ch3rryflower will be used instead of powdersn0w for iOS 4.3.x"
|
||||
SaveExternal ch3rryflower
|
||||
if [[ $platform == "linux" ]]; then
|
||||
# patch cherry temp path from /tmp to ././ (current dir)
|
||||
cd tmp
|
||||
echo "QlNESUZGNDA4AAAAAAAAAEUAAAAAAAAAQKoEAAAAAABCWmg5MUFZJlNZCmbVYQAABtRYTCAAIEAAQAAAEAIAIAAiNNA9QgyYiW0geDDxdyRThQkApm1WEEJaaDkxQVkmU1kFCpb0AACoSA7AAABAAAikAAACAAigAFCDJiApUmmnpMCTNJOaootbhBXWMbqkjO/i7kinChIAoVLegEJaaDkXckU4UJAAAAAA" | base64 -d | tee cherry.patch >/dev/null
|
||||
$bspatch ../$cherry/cherry ../$cherry/cherry2 cherry.patch
|
||||
|
BIN
resources/patches/iBEC.n92ap.RELEASE.patch
Normal file
BIN
resources/patches/iBEC.n92ap.RELEASE.patch
Normal file
Binary file not shown.
34
restore.sh
34
restore.sh
@ -140,8 +140,10 @@ Main() {
|
||||
[[ $NoDevice != 1 ]] && Selection+=("Downgrade Device")
|
||||
[[ $DeviceProc != 4 ]] && Selection+=("Save OTA Blobs")
|
||||
|
||||
if [[ $ProductType == "iPhone3,1" && $NoDevice != 1 ]]; then
|
||||
Selection+=("Disable/Enable Exploit" "Restore to 7.1.2" "SSH Ramdisk")
|
||||
if [[ $ProductType == "iPhone3"* && $NoDevice != 1 ]]; then
|
||||
Selection+=("Restore to 7.1.2")
|
||||
[[ $ProductType != "iPhone3,2" ]] && Selection+=("Disable/Enable Exploit")
|
||||
[[ $ProductType == "iPhone3,1" ]] && Selection+=("SSH Ramdisk")
|
||||
fi
|
||||
|
||||
if [[ $DeviceProc != 7 ]]; then
|
||||
@ -317,10 +319,23 @@ SelectVersion() {
|
||||
Selection+=("iOS 6.1.3")
|
||||
fi
|
||||
|
||||
if [[ $ProductType == "iPhone3,1" ]]; then
|
||||
if [[ $ProductType == "iPhone3"* ]]; then
|
||||
[[ $Mode == "IPSW32" ]] && Selection+=("7.1.2")
|
||||
Selection+=("6.1.3" "5.1.1 (9B208)" "5.1.1 (9B206)")
|
||||
Selection2=("6.1.2" "6.1" "6.0.1" "6.0" "5.1" "5.0.1" "5.0")
|
||||
|
||||
if [[ $ProductType == "iPhone3,1" ]]; then
|
||||
Selection+=("6.1.3 ""5.1.1 (9B208)" "5.1.1 (9B206)")
|
||||
Selection2=("6.1.2" "6.1" "6.0.1" "6.0" "5.1" "5.0.1" "5.0")
|
||||
if [[ $platform != "linux" ]]; then
|
||||
Echo "* iOS 4.3.x downgrades are supported on Linux only"
|
||||
Echo "* For macOS users, use cherryflowerJB instead"
|
||||
fi
|
||||
if [[ $platform != "win" ]]; then
|
||||
Selection+=("4.3.5")
|
||||
Selection2+=("4.3.3" "4.3")
|
||||
fi
|
||||
Selection+=("More versions")
|
||||
fi
|
||||
|
||||
if [[ $Mode == "Restore712" ]]; then
|
||||
Echo "* Make sure to disable the exploit first! See the README for more details."
|
||||
Input "Press Enter/Return to continue (or press Ctrl+C to cancel)"
|
||||
@ -329,15 +344,8 @@ SelectVersion() {
|
||||
BuildVer="11D257"
|
||||
Mode="Downgrade4"
|
||||
return
|
||||
elif [[ $platform != "linux" ]]; then
|
||||
Echo "* iOS 4.3.x downgrades are supported on Linux only"
|
||||
Echo "* For macOS users, use cherryflowerJB instead"
|
||||
fi
|
||||
if [[ $platform != "win" ]]; then
|
||||
Selection+=("4.3.5")
|
||||
Selection2+=("4.3.3" "4.3")
|
||||
fi
|
||||
Selection+=("More versions")
|
||||
|
||||
if [[ $Mode == "Downgrade" ]]; then
|
||||
Mode="Downgrade4"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user