From 0ba8a76392db9dbed511aace3697674113a66d0e Mon Sep 17 00:00:00 2001 From: LukeZGD <26163116+LukeZGD@users.noreply.github.com> Date: Sat, 6 Jan 2024 17:32:10 +0800 Subject: [PATCH] iPad 2 4.3.x semi-tethered jailbreaking - tethered without blobs, semi-tethered with blobs - only tested on 2,1 wi-fi, might have issues in the cellular ones, hopefully not --- README.md | 3 +- .../patch/kernelcache.release.k93.8F191.patch | Bin 0 -> 503 bytes .../patch/kernelcache.release.k93.8G4.patch | Bin 0 -> 503 bytes .../patch/kernelcache.release.k93.8H7.patch | Bin 0 -> 496 bytes .../patch/kernelcache.release.k93.8J2.patch | Bin 0 -> 496 bytes .../patch/kernelcache.release.k93.8K2.patch | Bin 0 -> 497 bytes .../patch/kernelcache.release.k93.8L1.patch | Bin 0 -> 497 bytes .../patch/kernelcache.release.k94.8F191.patch | Bin 0 -> 496 bytes .../patch/kernelcache.release.k94.8G4.patch | Bin 0 -> 496 bytes .../patch/kernelcache.release.k94.8H7.patch | Bin 0 -> 491 bytes .../patch/kernelcache.release.k94.8J2.patch | Bin 0 -> 491 bytes .../patch/kernelcache.release.k94.8K2.patch | Bin 0 -> 491 bytes .../patch/kernelcache.release.k94.8L1.patch | Bin 0 -> 491 bytes .../patch/kernelcache.release.k95.8F191.patch | Bin 0 -> 496 bytes .../patch/kernelcache.release.k95.8G4.patch | Bin 0 -> 496 bytes .../patch/kernelcache.release.k95.8H8.patch | Bin 0 -> 491 bytes .../patch/kernelcache.release.k95.8J2.patch | Bin 0 -> 491 bytes .../patch/kernelcache.release.k95.8K2.patch | Bin 0 -> 491 bytes .../patch/kernelcache.release.k95.8L1.patch | Bin 0 -> 491 bytes restore.sh | 53 +++++++++--------- 20 files changed, 29 insertions(+), 27 deletions(-) create mode 100755 resources/patch/kernelcache.release.k93.8F191.patch create mode 100755 resources/patch/kernelcache.release.k93.8G4.patch create mode 100755 resources/patch/kernelcache.release.k93.8H7.patch create mode 100755 resources/patch/kernelcache.release.k93.8J2.patch create mode 100755 resources/patch/kernelcache.release.k93.8K2.patch create mode 100755 resources/patch/kernelcache.release.k93.8L1.patch create mode 100755 resources/patch/kernelcache.release.k94.8F191.patch create mode 100755 resources/patch/kernelcache.release.k94.8G4.patch create mode 100755 resources/patch/kernelcache.release.k94.8H7.patch create mode 100755 resources/patch/kernelcache.release.k94.8J2.patch create mode 100755 resources/patch/kernelcache.release.k94.8K2.patch create mode 100755 resources/patch/kernelcache.release.k94.8L1.patch create mode 100755 resources/patch/kernelcache.release.k95.8F191.patch create mode 100755 resources/patch/kernelcache.release.k95.8G4.patch create mode 100755 resources/patch/kernelcache.release.k95.8H8.patch create mode 100755 resources/patch/kernelcache.release.k95.8J2.patch create mode 100755 resources/patch/kernelcache.release.k95.8K2.patch create mode 100755 resources/patch/kernelcache.release.k95.8L1.patch diff --git a/README.md b/README.md index b65a03c8..384c165e 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ - Tethered restores to other iOS versions for A5/A6 and other devices - Jailbreak all 32-bit iOS devices on (almost) any iOS version - Available on iOS versions 3.1.3 to 9.3.4 - - Only unsupported versions are iOS 9.0.x and iPad 2 on 4.3.x + - Only unsupported versions are iOS 9.0.x - Hacktivation for iPhone 2G, 3G, 3GS (activate without valid SIM card) - Restore to iOS 10.3.3 (signed OTA version) on supported A7 devices - Install IPA files for supported devices with AppSync installed @@ -145,6 +145,7 @@ - 32-bit bundles from [OdysseusOTA](https://www.youtube.com/watch?v=Wo7mGdMcjxw), [OdysseusOTA2](https://www.youtube.com/watch?v=fh0tB6fp0Sc), [alitek12](https://www.mediafire.com/folder/b1z64roy512wd/FirmwareBundles), [gjest](https://www.reddit.com/r/jailbreak/comments/6yrzzj/release_firmware_bundles_for_ios_841_ipad21234567/) (modified bundles for daibutsuCFW) - A7 patches from [MatthewPierson](https://github.com/MatthewPierson/iPhone-5s-OTA-Downgrade-Patches) - iPad 2 iOS 4.3.x bundles from [selfisht, Ralph0045](https://www.reddit.com/r/LegacyJailbreak/comments/1172ulo/release_ios_4_ipad_2_odysseus_firmware_bundles/) +- [datautils0](https://github.com/comex/datautils0) - comex (used for iPad 2 4.3.x kernel diffs) - [sshpass](https://sourceforge.net/project/sshpass) - Bootstrap tar from [SpiritNET](https://invoxiplaygames.uk/projects/spiritnet/) - [Cydia HTTPatch](https://cydia.invoxiplaygames.uk/package/cydiahttpatch) for 3.1.3 downgrades/jailbreaks diff --git a/resources/patch/kernelcache.release.k93.8F191.patch b/resources/patch/kernelcache.release.k93.8F191.patch new file mode 100755 index 0000000000000000000000000000000000000000..9f142fb2bfab588e0a194d690363d2c5129ec0ed GIT binary patch literal 503 zcmZ7B=NE+M(j&O!%-m0q0H`xyjU%KtxLP-I}3 zU?ITR(ZI#!z{DVs(csX)!VtvJz`)SJwSi$rOQsr-nR3gN$H0fPp{-|Dg2+-A6JCa| z42i~FsyRosrmk0M_;*mD_JNk)9<3Fboi0qzH&keuMzVV29pa1F3i?^IVESIsNCYL zjLSX_DF-enU%BklE5*L3Dl5(B9rGve42j&XKxGc6be87Z9qLLs+}j(ctIbf=G!}R1 zY{(ZWxpUkiMCpUUnFc14mnzfk-aW5B(q59^n5A{g^7cZJC$bs+Z~LO|Wec^u3EdEM bbxmxHvclF^BAnGfc2Ckg)Y2l<``ZEl6?wbQ literal 0 HcmV?d00001 diff --git a/resources/patch/kernelcache.release.k93.8G4.patch b/resources/patch/kernelcache.release.k93.8G4.patch new file mode 100755 index 0000000000000000000000000000000000000000..9f142fb2bfab588e0a194d690363d2c5129ec0ed GIT binary patch literal 503 zcmZ7B=NE+M(j&O!%-m0q0H`xyjU%KtxLP-I}3 zU?ITR(ZI#!z{DVs(csX)!VtvJz`)SJwSi$rOQsr-nR3gN$H0fPp{-|Dg2+-A6JCa| z42i~FsyRosrmk0M_;*mD_JNk)9<3Fboi0qzH&keuMzVV29pa1F3i?^IVESIsNCYL zjLSX_DF-enU%BklE5*L3Dl5(B9rGve42j&XKxGc6be87Z9qLLs+}j(ctIbf=G!}R1 zY{(ZWxpUkiMCpUUnFc14mnzfk-aW5B(q59^n5A{g^7cZJC$bs+Z~LO|Wec^u3EdEM bbxmxHvclF^BAnGfc2Ckg)Y2l<``ZEl6?wbQ literal 0 HcmV?d00001 diff --git a/resources/patch/kernelcache.release.k93.8H7.patch b/resources/patch/kernelcache.release.k93.8H7.patch new file mode 100755 index 0000000000000000000000000000000000000000..9223095d50789d699d1b4a026a574073b81215cc GIT binary patch literal 496 zcmZnjv8mnB^3eVQJ_XsTLghtR_{6fx)`^+$)1t0Yd=>2Od^t z50(H21_lle1{Q_|3I-mcCD(@d(u^~Q1Q%T!hX%A@qNQe>w;Aam#GSc%~-W+<+4D}(+VqWcRx`HsQUN#bzLu4e;Dt- z64kd76K)Bap07G9!ZLwDg~{o-(mRjkTtcEUYw8yuoVVE93uvog{l8@AEZ>h;7BD!z zabhVbFi;58THv4{MrM;njv8mnB^3eVQJ_XsTLghtR_{6fx)`^+$)1t0Yd=>2Od^t z50(H21_lle1{Q_|3I-mcCD(@d(u^~Q1Q%T!hX%A@qNQe>w;Aam#GSc%~-W+<+4D}(+VqWcRx`HsQUN#bzLu4e;Dt- z64kd76K)Bap07G9!ZLwDg~{o-(mRjkTtcEUYw8yuoVVE93uvog{l8@AEZ>h;7BD!z zabhVbFi;58THv4{MrM;2Od^t z50(H21_lle1{Q_|3I-mcCD(@d(u^~Q1Q%_(S0pY&I-d+j}41)FllAW`BKVDhD z;P}RgrJ%q-Ay8|9gMyF~TL)vp0R@HJYbt&p{u6sr2Od^t z50(H21_lle1{Q_|3I-mcCD(@d(u^~Q1Q%_(S0pY&I-d+j}41)FllAW`BKVDhD z;P}RgrJ%q-Ay8|9gMyF~TL)vp0R@HJYbt&p{u6sr|DO`6+^}e+oJR>DLaHb#qA0eI1HO) zUosW%^7rLGtsQwzr-1438eyBu+Yf(|NDSJk)dG% z6N3c@=Dq} zr%jur9Z&ocjc{NP;AH7o|LC2^axNjU{jrP<2zOZ(OzdZ15Ul@~?40HM@ybF5$G1)_ z1qB8Qfm#X<3PMh79SjKv6c|dBmakxId?jfjmBMh@;Zx({Q~6hwPYDKRWxkjx$!p;3 zBXIf3K?!H|6;)X>dVkzzD?0?f6*rV+=-J&;Tysq1(7cI}4{C+3vMV_)6niv-?XXf* zr+w46)bto`me@Pxn}q%ZzZd-AQLdA+Rd*d@@|jEX7_IE(TD*jLau)ey8_W(px8>y8 Qn%k}aA%0-@6Eb`N0O0zv9{>OV literal 0 HcmV?d00001 diff --git a/resources/patch/kernelcache.release.k94.8G4.patch b/resources/patch/kernelcache.release.k94.8G4.patch new file mode 100755 index 0000000000000000000000000000000000000000..0dc369f94eaab7ab1d84922c416d38f1cc33e36b GIT binary patch literal 496 zcmZ|DO`6+^}e+oJR>DLaHb#qA0eI1HO) zUosW%^7rLGtsQwzr-1438eyBu+Yf(|NDSJk)dG% z6N3c@=Dq} zr%jur9Z&ocjc{NP;AH7o|LC2^axNjU{jrP<2zOZ(OzdZ15Ul@~?40HM@ybF5$G1)_ z1qB8Qfm#X<3PMh79SjKv6c|dBmakxId?jfjmBMh@;Zx({Q~6hwPYDKRWxkjx$!p;3 zBXIf3K?!H|6;)X>dVkzzD?0?f6*rV+=-J&;Tysq1(7cI}4{C+3vMV_)6niv-?XXf* zr+w46)bto`me@Pxn}q%ZzZd-AQLdA+Rd*d@@|jEX7_IE(TD*jLau)ey8_W(px8>y8 Qn%k}aA%0-@6Eb`N0O0zv9{>OV literal 0 HcmV?d00001 diff --git a/resources/patch/kernelcache.release.k94.8H7.patch b/resources/patch/kernelcache.release.k94.8H7.patch new file mode 100755 index 0000000000000000000000000000000000000000..3855e809cc7eca63c7d69e4ceeae6de26a482e8d GIT binary patch literal 491 zcmZLfk$l%1A}Gl`B#N43<4Yq49pBl zOe_ID3=A9`3@i?e42ld37(xPOC^qzPzRG25HK}r&xq`tcV`Ey_KEWd@LY9RJE}T7$ z<%_%Z&!(-jpJZ9;Z9ZUPf61jx?@3p|LPZ7%-wcF>Rtv>F82IP>|N8)FG{XcY z1`CEpjs`9+2QDXp3iX~f9#&5d8noFD#tDdBv%zo>}OyQtpAtnoaOuR%0dRmw@xet1qKR% zS_%#dLQZTQ3<(Dm7)q3uuV8C@C21m+!f@H)Q{&=O`B#-s2?l3nzL+V=YvAl7aQVtX z31{^cRar86f81s(I|RNJH*F`do+XXuu@c~ebcwp z^cZfI*gNH$g#HA-7yRH+u9LD=cO7H$nM?B+t?cDmyo7mj7Wrfw%nm)b<>cC$+pYf} Pz4KVkCB*J0WcUC8Lp`nH literal 0 HcmV?d00001 diff --git a/resources/patch/kernelcache.release.k94.8J2.patch b/resources/patch/kernelcache.release.k94.8J2.patch new file mode 100755 index 0000000000000000000000000000000000000000..3855e809cc7eca63c7d69e4ceeae6de26a482e8d GIT binary patch literal 491 zcmZLfk$l%1A}Gl`B#N43<4Yq49pBl zOe_ID3=A9`3@i?e42ld37(xPOC^qzPzRG25HK}r&xq`tcV`Ey_KEWd@LY9RJE}T7$ z<%_%Z&!(-jpJZ9;Z9ZUPf61jx?@3p|LPZ7%-wcF>Rtv>F82IP>|N8)FG{XcY z1`CEpjs`9+2QDXp3iX~f9#&5d8noFD#tDdBv%zo>}OyQtpAtnoaOuR%0dRmw@xet1qKR% zS_%#dLQZTQ3<(Dm7)q3uuV8C@C21m+!f@H)Q{&=O`B#-s2?l3nzL+V=YvAl7aQVtX z31{^cRar86f81s(I|RNJH*F`do+XXuu@c~ebcwp z^cZfI*gNH$g#HA-7yRH+u9LD=cO7H$nM?B+t?cDmyo7mj7Wrfw%nm)b<>cC$+pYf} Pz4KVkCB*J0WcUC8Lp`nH literal 0 HcmV?d00001 diff --git a/resources/patch/kernelcache.release.k94.8K2.patch b/resources/patch/kernelcache.release.k94.8K2.patch new file mode 100755 index 0000000000000000000000000000000000000000..79fbcdce9a5bb74d78ecf58f0d9742b95e27da50 GIT binary patch literal 491 zcmZLfk$l%1A}Gl`B#N43<4Yq49pBl zOe_ID3=A9`3@i?e42ld37(xPOC^qzPzRG25HK}r&xq`tcV`Ey_KEWd@LY9RJE}T7$ z<%_%Z&!(-jpJZ9;Z9ZUPf61jx?@3p|LPZ7%-wcF>Yh-jbG4Rj%|MvmVXod+) z3>pHB91UDt4qQ$G84L~$EG!NT3=Lch7$)+pe92(Kz^rV_G-VZ=vqI)##l=}tLScIx zLyxNjmZoZH-E3HC`Y_b_y29$;LPEYjHC4@@Ix#M<(F$niwb{A%Lg)%N$IX{#d^xnn zgTwm%vQQ@ml?D$L*Lv|HSBroNAa@{KWmPb-pMgQJ{$H|lmhZ)Vx}aofwPamQEmP2W<} zW4Kvj@04#6`V;(K@PkLWPRdr@b&SbpF3n@KvX^V|66VQS35WAm{;R673O|G&4 literal 0 HcmV?d00001 diff --git a/resources/patch/kernelcache.release.k94.8L1.patch b/resources/patch/kernelcache.release.k94.8L1.patch new file mode 100755 index 0000000000000000000000000000000000000000..79fbcdce9a5bb74d78ecf58f0d9742b95e27da50 GIT binary patch literal 491 zcmZLfk$l%1A}Gl`B#N43<4Yq49pBl zOe_ID3=A9`3@i?e42ld37(xPOC^qzPzRG25HK}r&xq`tcV`Ey_KEWd@LY9RJE}T7$ z<%_%Z&!(-jpJZ9;Z9ZUPf61jx?@3p|LPZ7%-wcF>Yh-jbG4Rj%|MvmVXod+) z3>pHB91UDt4qQ$G84L~$EG!NT3=Lch7$)+pe92(Kz^rV_G-VZ=vqI)##l=}tLScIx zLyxNjmZoZH-E3HC`Y_b_y29$;LPEYjHC4@@Ix#M<(F$niwb{A%Lg)%N$IX{#d^xnn zgTwm%vQQ@ml?D$L*Lv|HSBroNAa@{KWmPb-pMgQJ{$H|lmhZ)Vx}aofwPamQEmP2W<} zW4Kvj@04#6`V;(K@PkLWPRdr@b&SbpF3n@KvX^V|66VQS35WAm{;R673O|G&4 literal 0 HcmV?d00001 diff --git a/resources/patch/kernelcache.release.k95.8F191.patch b/resources/patch/kernelcache.release.k95.8F191.patch new file mode 100755 index 0000000000000000000000000000000000000000..0dc369f94eaab7ab1d84922c416d38f1cc33e36b GIT binary patch literal 496 zcmZ|DO`6+^}e+oJR>DLaHb#qA0eI1HO) zUosW%^7rLGtsQwzr-1438eyBu+Yf(|NDSJk)dG% z6N3c@=Dq} zr%jur9Z&ocjc{NP;AH7o|LC2^axNjU{jrP<2zOZ(OzdZ15Ul@~?40HM@ybF5$G1)_ z1qB8Qfm#X<3PMh79SjKv6c|dBmakxId?jfjmBMh@;Zx({Q~6hwPYDKRWxkjx$!p;3 zBXIf3K?!H|6;)X>dVkzzD?0?f6*rV+=-J&;Tysq1(7cI}4{C+3vMV_)6niv-?XXf* zr+w46)bto`me@Pxn}q%ZzZd-AQLdA+Rd*d@@|jEX7_IE(TD*jLau)ey8_W(px8>y8 Qn%k}aA%0-@6Eb`N0O0zv9{>OV literal 0 HcmV?d00001 diff --git a/resources/patch/kernelcache.release.k95.8G4.patch b/resources/patch/kernelcache.release.k95.8G4.patch new file mode 100755 index 0000000000000000000000000000000000000000..0dc369f94eaab7ab1d84922c416d38f1cc33e36b GIT binary patch literal 496 zcmZ|DO`6+^}e+oJR>DLaHb#qA0eI1HO) zUosW%^7rLGtsQwzr-1438eyBu+Yf(|NDSJk)dG% z6N3c@=Dq} zr%jur9Z&ocjc{NP;AH7o|LC2^axNjU{jrP<2zOZ(OzdZ15Ul@~?40HM@ybF5$G1)_ z1qB8Qfm#X<3PMh79SjKv6c|dBmakxId?jfjmBMh@;Zx({Q~6hwPYDKRWxkjx$!p;3 zBXIf3K?!H|6;)X>dVkzzD?0?f6*rV+=-J&;Tysq1(7cI}4{C+3vMV_)6niv-?XXf* zr+w46)bto`me@Pxn}q%ZzZd-AQLdA+Rd*d@@|jEX7_IE(TD*jLau)ey8_W(px8>y8 Qn%k}aA%0-@6Eb`N0O0zv9{>OV literal 0 HcmV?d00001 diff --git a/resources/patch/kernelcache.release.k95.8H8.patch b/resources/patch/kernelcache.release.k95.8H8.patch new file mode 100755 index 0000000000000000000000000000000000000000..3855e809cc7eca63c7d69e4ceeae6de26a482e8d GIT binary patch literal 491 zcmZLfk$l%1A}Gl`B#N43<4Yq49pBl zOe_ID3=A9`3@i?e42ld37(xPOC^qzPzRG25HK}r&xq`tcV`Ey_KEWd@LY9RJE}T7$ z<%_%Z&!(-jpJZ9;Z9ZUPf61jx?@3p|LPZ7%-wcF>Rtv>F82IP>|N8)FG{XcY z1`CEpjs`9+2QDXp3iX~f9#&5d8noFD#tDdBv%zo>}OyQtpAtnoaOuR%0dRmw@xet1qKR% zS_%#dLQZTQ3<(Dm7)q3uuV8C@C21m+!f@H)Q{&=O`B#-s2?l3nzL+V=YvAl7aQVtX z31{^cRar86f81s(I|RNJH*F`do+XXuu@c~ebcwp z^cZfI*gNH$g#HA-7yRH+u9LD=cO7H$nM?B+t?cDmyo7mj7Wrfw%nm)b<>cC$+pYf} Pz4KVkCB*J0WcUC8Lp`nH literal 0 HcmV?d00001 diff --git a/resources/patch/kernelcache.release.k95.8J2.patch b/resources/patch/kernelcache.release.k95.8J2.patch new file mode 100755 index 0000000000000000000000000000000000000000..3855e809cc7eca63c7d69e4ceeae6de26a482e8d GIT binary patch literal 491 zcmZLfk$l%1A}Gl`B#N43<4Yq49pBl zOe_ID3=A9`3@i?e42ld37(xPOC^qzPzRG25HK}r&xq`tcV`Ey_KEWd@LY9RJE}T7$ z<%_%Z&!(-jpJZ9;Z9ZUPf61jx?@3p|LPZ7%-wcF>Rtv>F82IP>|N8)FG{XcY z1`CEpjs`9+2QDXp3iX~f9#&5d8noFD#tDdBv%zo>}OyQtpAtnoaOuR%0dRmw@xet1qKR% zS_%#dLQZTQ3<(Dm7)q3uuV8C@C21m+!f@H)Q{&=O`B#-s2?l3nzL+V=YvAl7aQVtX z31{^cRar86f81s(I|RNJH*F`do+XXuu@c~ebcwp z^cZfI*gNH$g#HA-7yRH+u9LD=cO7H$nM?B+t?cDmyo7mj7Wrfw%nm)b<>cC$+pYf} Pz4KVkCB*J0WcUC8Lp`nH literal 0 HcmV?d00001 diff --git a/resources/patch/kernelcache.release.k95.8K2.patch b/resources/patch/kernelcache.release.k95.8K2.patch new file mode 100755 index 0000000000000000000000000000000000000000..79fbcdce9a5bb74d78ecf58f0d9742b95e27da50 GIT binary patch literal 491 zcmZLfk$l%1A}Gl`B#N43<4Yq49pBl zOe_ID3=A9`3@i?e42ld37(xPOC^qzPzRG25HK}r&xq`tcV`Ey_KEWd@LY9RJE}T7$ z<%_%Z&!(-jpJZ9;Z9ZUPf61jx?@3p|LPZ7%-wcF>Yh-jbG4Rj%|MvmVXod+) z3>pHB91UDt4qQ$G84L~$EG!NT3=Lch7$)+pe92(Kz^rV_G-VZ=vqI)##l=}tLScIx zLyxNjmZoZH-E3HC`Y_b_y29$;LPEYjHC4@@Ix#M<(F$niwb{A%Lg)%N$IX{#d^xnn zgTwm%vQQ@ml?D$L*Lv|HSBroNAa@{KWmPb-pMgQJ{$H|lmhZ)Vx}aofwPamQEmP2W<} zW4Kvj@04#6`V;(K@PkLWPRdr@b&SbpF3n@KvX^V|66VQS35WAm{;R673O|G&4 literal 0 HcmV?d00001 diff --git a/resources/patch/kernelcache.release.k95.8L1.patch b/resources/patch/kernelcache.release.k95.8L1.patch new file mode 100755 index 0000000000000000000000000000000000000000..79fbcdce9a5bb74d78ecf58f0d9742b95e27da50 GIT binary patch literal 491 zcmZLfk$l%1A}Gl`B#N43<4Yq49pBl zOe_ID3=A9`3@i?e42ld37(xPOC^qzPzRG25HK}r&xq`tcV`Ey_KEWd@LY9RJE}T7$ z<%_%Z&!(-jpJZ9;Z9ZUPf61jx?@3p|LPZ7%-wcF>Yh-jbG4Rj%|MvmVXod+) z3>pHB91UDt4qQ$G84L~$EG!NT3=Lch7$)+pe92(Kz^rV_G-VZ=vqI)##l=}tLScIx zLyxNjmZoZH-E3HC`Y_b_y29$;LPEYjHC4@@Ix#M<(F$niwb{A%Lg)%N$IX{#d^xnn zgTwm%vQQ@ml?D$L*Lv|HSBroNAa@{KWmPb-pMgQJ{$H|lmhZ)Vx}aofwPamQEmP2W<} zW4Kvj@04#6`V;(K@PkLWPRdr@b&SbpF3n@KvX^V|66VQS35WAm{;R673O|G&4 literal 0 HcmV?d00001 diff --git a/restore.sh b/restore.sh index 5881c39b..14f5ac42 100755 --- a/restore.sh +++ b/restore.sh @@ -1656,7 +1656,7 @@ ipsw_preference_set() { fi case $device_target_vers in - 9.3.[1234] | 9.3 | 9.2* | 9.1 | 8* | 7* | 6* | 5* | 3.1.3 ) ipsw_canjailbreak=1;; + 9.3.[1234] | 9.3 | 9.2* | 9.1 | 8* | 7* | 6* | 5* | 4* | 3.1.3 ) ipsw_canjailbreak=1;; esac if [[ $device_proc == 5 ]]; then case $device_target_vers in @@ -1670,21 +1670,6 @@ ipsw_preference_set() { 4.2.1 | 4.1 | 4.0* | 3* ) :;; * ) ipsw_canjailbreak=1;; esac - elif [[ $device_proc == 4 || $device_type == "iPad2"* ]]; then - case $device_type in - iPhone3* | iPad1,1 | iPod[34],1 ) - if [[ $device_target_vers != "4.2.1" ]]; then - ipsw_canjailbreak=1 - fi - ;; - iPhone2,1 | iPod2,1 ) - if [[ $device_target_vers == "4"* && $device_target_other != 1 ]]; then - ipsw_canjailbreak=1 - fi - ;; - esac - elif [[ $device_proc == 1 ]]; then - ipsw_canjailbreak=1 elif [[ $device_target_other == 1 && $ipsw_canjailbreak != 1 ]]; then return fi @@ -1697,6 +1682,10 @@ ipsw_preference_set() { print "* When this option is enabled, your device will be jailbroken on restore." print "* I recommend to enable this option to have the jailbreak and Cydia pre-installed." print "* This option is enabled by default (Y). Select this option if unsure." + if [[ $device_type == "iPad2"* && $device_target_vers == "4.3"* && $device_target_tethered != 1 ]]; then + warn "This will be a semi-tethered jailbreak. Arduino is required to boot to a jailbroken state." + print "* To boot jailbroken later, go to: Other Utilities -> Just Boot" + fi read -p "$(input 'Enable this option? (Y/n): ')" ipsw_jailbreak if [[ $ipsw_jailbreak == 'N' || $ipsw_jailbreak == 'n' ]]; then ipsw_jailbreak= @@ -2011,6 +2000,12 @@ ipsw_prepare_jailbreak() { done if [[ $device_proc != 1 ]]; then case $device_target_vers in + 4.3* ) + JBFiles[2]=$jelbrek/${JBFiles[2]} + if [[ $device_type == "iPad2"* ]]; then + JBFiles[2]= + fi + ;; 4.2.1 ) ExtraArgs+="-punchd" JBFiles[2]=$jelbrek/${JBFiles[2]} @@ -3870,7 +3865,9 @@ device_ramdisk() { else log "Patch iBEC" "$dir/xpwntool" iBEC.dec iBEC.raw - if [[ $1 == "justboot" ]]; then + if [[ $1 == "justboot" && $device_type == "iPad2"* && $device_target_build == "8"* ]]; then + "$dir/iBoot32Patcher" iBEC.raw iBEC.patched --rsa -b "-v cs_enforcement_disable=1" + elif [[ $1 == "justboot" ]]; then "$dir/iBoot32Patcher" iBEC.raw iBEC.patched --rsa -b "-v" else "$dir/iBoot32Patcher" iBEC.raw iBEC.patched --rsa --debug -b "rd=md0 -v amfi=0xff cs_enforcement_disable=1" @@ -3879,9 +3876,17 @@ device_ramdisk() { fi fi + if [[ $device_type == "iPad2"* && $device_target_build == "8"* ]]; then + log "Patch Kernelcache" + mv Kernelcache.dec Kernelcache0.dec + "$dir/xpwntool" Kernelcache0.dec Kernelcache.raw + $bspatch Kernelcache.raw Kernelcache.patched ../resources/patch/kernelcache.release.${device_model}.${device_target_build}.patch + "$dir/xpwntool" Kernelcache.patched Kernelcache.dec -t Kernelcache0.dec + fi + mv iBSS iBEC DeviceTree.dec Kernelcache.dec Ramdisk.dmg $ramdisk_path 2>/dev/null - if [[ $1 == "jailbreak" ]]; then + if [[ $1 == "jailbreak" || $1 == "justboot" ]]; then device_enter_mode pwnDFU elif [[ $device_proc == 4 ]] || [[ $device_proc == 6 && $platform == "macos" ]]; then device_buttons @@ -3998,10 +4003,6 @@ device_ramdisk() { log "The current iOS version of this device is: $vers ($build)" $ssh -p 2222 root@127.0.0.1 "reboot_bak" return - elif [[ $device_type == "iPad2"* && $vers == "4"* ]]; then - warn "iOS $vers on $device_type is not supported for jailbreaking with SSHRD." - $ssh -p 2222 root@127.0.0.1 "reboot_bak" - return fi case $vers in 9.3.[1234] | 9.3 ) untether="untetherhomedepot.tar";; @@ -5173,9 +5174,9 @@ device_jailbreakrd() { esac fi if [[ $device_type == "iPad2"* && $device_vers == "4"* ]]; then - warn "This version ($device_vers) is not supported for jailbreaking with SSHRD." - print "* Supported versions for iPad 2 are: 5.0 to 9.3.4 (excluding 9.0.x)" - return + warn "This will be a semi-tethered jailbreak. Arduino is required to boot to a jailbroken state." + print "* To boot jailbroken later, go to: Other Utilities -> Just Boot" + pause fi case $device_vers in 9.3.[1234] | 9.3 | 9.2* | 9.1 | 8* | 7* | 6* | 5* | 4* | 3.2* | 3.1.3 ) :;; @@ -5295,7 +5296,7 @@ device_activate() { log "Attempting to activate device with ideviceactivation" if (( device_proc <= 4 )) && [[ $device_type == "iPhone"* ]]; then print "* For iPhone 4 and older devices, make sure to have a valid SIM card." - if [[ $device_proc == 1 || $device_type == "iPhone2,1" ]]; then + if [[ $device_type == "iPhone1"* || $device_type == "iPhone2,1" ]]; then print "* For hacktivation, go to Restore/Downgrade instead." fi fi