diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.1_8A306.bundle/Info.plist b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.1_8A306.bundle/Info.plist new file mode 100644 index 0000000..a9ba167 --- /dev/null +++ b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.1_8A306.bundle/Info.plist @@ -0,0 +1,115 @@ + + + + + DownloadUrl + + Filename + iPhone3,1_4.0.1_8A306_Restore.ipsw + FilesystemPatches + + FirmwarePatches + + Restore Ramdisk + + Decrypt + + File + 018-8235-001.dmg + IV + 5dfa31e28674d44e19ac05148ae7f668 + Key + 79cb7f8c64b6302a58a63a693ce0582df269fad68f6eb9d85340c1f75dbe89d6 + TypeFlag + 8 + + RestoreDeviceTree + + DecryptPath + Downgrade/DeviceTree.n90ap.img3 + File + Firmware/all_flash/all_flash.n90ap.production/DeviceTree.n90ap.img3 + IV + 3fbb3880298f43dfb7d1bd258b58163d + Key + 713f68ac63cc25ab91d8d1eab951b2d32dd3e7a4be3a9cab13f2d71c7017225e + + RestoreKernelCache + + DecryptPath + Downgrade/kernelcache.release.n90 + File + kernelcache.release.n90 + IV + e5b75d5fd254ce8b6b30129ba1c9061b + Key + 7e701d9373343a2503cc0020c27017e289f637f3ea38ece41b0dc637033f17a1 + TypeFlag + 4 + + RestoreLogo + + DecryptPath + Downgrade/applelogo-640x960.s5l8930x.img3 + File + Firmware/all_flash/all_flash.n90ap.production/applelogo-640x960.s5l8930x.img3 + IV + eab39b46e705b57f820beeea28ea051e + Key + 0feb8e5306e2a529e4f7b39e24fc49e90669c15c218d29c55ac734f7516c5519 + + iBSS + + Decrypt + + File + Firmware/dfu/iBSS.n90ap.RELEASE.dfu + IV + 91f94e5d726a2d2f2c7ffad58d4f3b77 + Key + d05c3c40db40e738926f811b8b1314038d26096c4102461698a49098c47a3fe6 + Patch + iBSS.n90ap.RELEASE.patch + TypeFlag + 8 + + + Name + iPhone3,1_4.0.1_8A306 + Platform + 1 + RamdiskMountVolume + ramdisk + RamdiskOptionsPath + /usr/local/share/restore/options.plist + RamdiskPatches + + asr + + File + usr/sbin/asr + Patch + asr.patch + + restoredexternal + + File + usr/local/bin/restored_external + Patch + restoredexternal.patch + + + RootFilesystem + 018-8229-001.dmg + RootFilesystemKey + ebd8aea30e78053112c4062690723fc5ee8e53865d4d6591b64a08216337c5a7aefbc806 + RootFilesystemMountVolume + Apex8A306.N90OS + RootFilesystemSize + 930 + SHA1 + a9cf20679273b7e502ab384854ba96cc2a54d532 + SubPlatform + 6 + + diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.1_8A306.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.1_8A306.bundle/asr.patch new file mode 100644 index 0000000..820fc6f Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.1_8A306.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.1_8A306.bundle/iBSS.n90ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.1_8A306.bundle/iBSS.n90ap.RELEASE.patch new file mode 100644 index 0000000..b583970 Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.1_8A306.bundle/iBSS.n90ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.1_8A306.bundle/restoredexternal.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.1_8A306.bundle/restoredexternal.patch new file mode 100644 index 0000000..e50aaae Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.1_8A306.bundle/restoredexternal.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.2_8A400.bundle/Info.plist b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.2_8A400.bundle/Info.plist new file mode 100644 index 0000000..83f19a9 --- /dev/null +++ b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.2_8A400.bundle/Info.plist @@ -0,0 +1,115 @@ + + + + + DownloadUrl + + Filename + iPhone3,1_4.0.2_8A400_Restore.ipsw + FilesystemPatches + + FirmwarePatches + + Restore Ramdisk + + Decrypt + + File + 018-8393-002.dmg + IV + b662a1cd9b51d43029624adf2c65e56a + Key + 7f3ed4bd7773bd07f9f4a697b56bc85dc0040907cf1282077d477e9b5c92c53f + TypeFlag + 8 + + RestoreDeviceTree + + DecryptPath + Downgrade/DeviceTree.n90ap.img3 + File + Firmware/all_flash/all_flash.n90ap.production/DeviceTree.n90ap.img3 + IV + 3fbb3880298f43dfb7d1bd258b58163d + Key + 713f68ac63cc25ab91d8d1eab951b2d32dd3e7a4be3a9cab13f2d71c7017225e + + RestoreKernelCache + + DecryptPath + Downgrade/kernelcache.release.n90 + File + kernelcache.release.n90 + IV + 810ad53a78428842df24face82f37b9f + Key + 22308c2e2c4f34444184253850823c35a0cb73bd433bbd28230bb5e83759f4b7 + TypeFlag + 4 + + RestoreLogo + + DecryptPath + Downgrade/applelogo-640x960.s5l8930x.img3 + File + Firmware/all_flash/all_flash.n90ap.production/applelogo-640x960.s5l8930x.img3 + IV + eab39b46e705b57f820beeea28ea051e + Key + 0feb8e5306e2a529e4f7b39e24fc49e90669c15c218d29c55ac734f7516c5519 + + iBSS + + Decrypt + + File + Firmware/dfu/iBSS.n90ap.RELEASE.dfu + IV + 91f94e5d726a2d2f2c7ffad58d4f3b77 + Key + d05c3c40db40e738926f811b8b1314038d26096c4102461698a49098c47a3fe6 + Patch + iBSS.n90ap.RELEASE.patch + TypeFlag + 8 + + + Name + iPhone3,1_4.0.2_8A400 + Platform + 1 + RamdiskMountVolume + ramdisk + RamdiskOptionsPath + /usr/local/share/restore/options.plist + RamdiskPatches + + asr + + File + usr/sbin/asr + Patch + asr.patch + + restoredexternal + + File + usr/local/bin/restored_external + Patch + restoredexternal.patch + + + RootFilesystem + 018-8380-002.dmg + RootFilesystemKey + 28bded3ee52eda2f36a241009a493db357b8f19543c07bd3820a35498a1788ce4aa0c54c + RootFilesystemMountVolume + Apex8A400.N90OS + RootFilesystemSize + 930 + SHA1 + 19eb071cdb9f1601b106825d0a16b1449c6eef8c + SubPlatform + 6 + + diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.2_8A400.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.2_8A400.bundle/asr.patch new file mode 100644 index 0000000..820fc6f Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.2_8A400.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.2_8A400.bundle/iBSS.n90ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.2_8A400.bundle/iBSS.n90ap.RELEASE.patch new file mode 100644 index 0000000..b583970 Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.2_8A400.bundle/iBSS.n90ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.2_8A400.bundle/restoredexternal.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.2_8A400.bundle/restoredexternal.patch new file mode 100644 index 0000000..e50aaae Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0.2_8A400.bundle/restoredexternal.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0_8A293.bundle/Info.plist b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0_8A293.bundle/Info.plist new file mode 100644 index 0000000..bf31104 --- /dev/null +++ b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0_8A293.bundle/Info.plist @@ -0,0 +1,115 @@ + + + + + DownloadUrl + + Filename + iPhone3,1_4.0_8A293_Restore.ipsw + FilesystemPatches + + FirmwarePatches + + Restore Ramdisk + + Decrypt + + File + 018-6306-403.dmg + IV + 0ab135879934fdd0d689b3d0f8cf8374 + Key + 62aabe3e763eb3669b4922468be2acb787199c6b0ef8ae873c312e458d9b9be3 + TypeFlag + 8 + + RestoreDeviceTree + + DecryptPath + Downgrade/DeviceTree.n90ap.img3 + File + Firmware/all_flash/all_flash.n90ap.production/DeviceTree.n90ap.img3 + IV + 3fbb3880298f43dfb7d1bd258b58163d + Key + 713f68ac63cc25ab91d8d1eab951b2d32dd3e7a4be3a9cab13f2d71c7017225e + + RestoreKernelCache + + DecryptPath + Downgrade/kernelcache.release.n90 + File + kernelcache.release.n90 + IV + 8e4c493706b43f9fd92021126bebfeda + Key + f241daee7e32a7caf99d55fa0ab17e41501d03d69fe2e02b57688d0b1781e659 + TypeFlag + 4 + + RestoreLogo + + DecryptPath + Downgrade/applelogo-640x960.s5l8930x.img3 + File + Firmware/all_flash/all_flash.n90ap.production/applelogo-640x960.s5l8930x.img3 + IV + eab39b46e705b57f820beeea28ea051e + Key + 0feb8e5306e2a529e4f7b39e24fc49e90669c15c218d29c55ac734f7516c5519 + + iBSS + + Decrypt + + File + Firmware/dfu/iBSS.n90ap.RELEASE.dfu + IV + 91f94e5d726a2d2f2c7ffad58d4f3b77 + Key + d05c3c40db40e738926f811b8b1314038d26096c4102461698a49098c47a3fe6 + Patch + iBSS.n90ap.RELEASE.patch + TypeFlag + 8 + + + Name + iPhone3,1_4.0_8A293 + Platform + 1 + RamdiskMountVolume + ramdisk + RamdiskOptionsPath + /usr/local/share/restore/options.plist + RamdiskPatches + + asr + + File + usr/sbin/asr + Patch + asr.patch + + restoredexternal + + File + usr/local/bin/restored_external + Patch + restoredexternal.patch + + + RootFilesystem + 018-6303-385.dmg + RootFilesystemKey + 8b2915719d9f90ba5521faad1eadbb3d942991bd55e5a0709f26e9db3931517e054afa50 + RootFilesystemMountVolume + Apex8A293.N90OS + RootFilesystemSize + 930 + SHA1 + 171c2a3995fa149f2a369ccd87f82c5c30da3f88 + SubPlatform + 6 + + diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0_8A293.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0_8A293.bundle/asr.patch new file mode 100644 index 0000000..820fc6f Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0_8A293.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0_8A293.bundle/iBSS.n90ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0_8A293.bundle/iBSS.n90ap.RELEASE.patch new file mode 100644 index 0000000..b583970 Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0_8A293.bundle/iBSS.n90ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0_8A293.bundle/restoredexternal.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0_8A293.bundle/restoredexternal.patch new file mode 100644 index 0000000..e50aaae Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.0_8A293.bundle/restoredexternal.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.1_8B117.bundle/Info.plist b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.1_8B117.bundle/Info.plist new file mode 100644 index 0000000..d0c176e --- /dev/null +++ b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.1_8B117.bundle/Info.plist @@ -0,0 +1,115 @@ + + + + + DownloadUrl + + Filename + iPhone3,1_4.1_8B117_Restore.ipsw + FilesystemPatches + + FirmwarePatches + + Restore Ramdisk + + Decrypt + + File + 018-7082-092.dmg + IV + 103ae8786d55bebdea996a56706641c9 + Key + a80b3c27041f09d4554bbf4af59dd5bcea38bd4fe2faf82d8d6f62853ec6b337 + TypeFlag + 8 + + RestoreDeviceTree + + DecryptPath + Downgrade/DeviceTree.n90ap.img3 + File + Firmware/all_flash/all_flash.n90ap.production/DeviceTree.n90ap.img3 + IV + c6aca9cbfad934d789ae1b0274907b1f + Key + 5a97e72449c93c465984c2661bcd78a681ab5e505edf38bf3e3094a4af2644d1 + + RestoreKernelCache + + DecryptPath + Downgrade/kernelcache.release.n90 + File + kernelcache.release.n90 + IV + a52166be88417c9a4db00b838512e664 + Key + 19701b9ceac9811d25a5a9cc1718d8b8347ac432c1e8c0660f97fe9cddeb964c + TypeFlag + 4 + + RestoreLogo + + DecryptPath + Downgrade/applelogo-640x960.s5l8930x.img3 + File + Firmware/all_flash/all_flash.n90ap.production/applelogo-640x960.s5l8930x.img3 + IV + e01950e29b6dab9990555041916ecabf + Key + 3f1c88e1297b29db7dccee73aaf66076f04abd17180ecad87d2fd993fbd97800 + + iBSS + + Decrypt + + File + Firmware/dfu/iBSS.n90ap.RELEASE.dfu + IV + c2c5416472e5a0d6f0a25a123d5a2b1c + Key + 1fbc7dcafaec21a150a51eb0eb99367550e24a077b128831b28c065e61f894a0 + Patch + iBSS.n90ap.RELEASE.patch + TypeFlag + 8 + + + Name + iPhone3,1_4.1_8B117 + Platform + 1 + RamdiskMountVolume + ramdisk + RamdiskOptionsPath + /usr/local/share/restore/options.plist + RamdiskPatches + + asr + + File + usr/sbin/asr + Patch + asr.patch + + restoredexternal + + File + usr/local/bin/restored_external + Patch + restoredexternal.patch + + + RootFilesystem + 018-7063-114.dmg + RootFilesystemKey + 2ab6aea67470994ec3453791ac75f6497c081edd1991e560a61dd666ac4b73f43c781739 + RootFilesystemMountVolume + Baker8B117.N90OS + RootFilesystemSize + 930 + SHA1 + a3f8a333ca181146b862ca6a59c9a6e7c27eba0b + SubPlatform + 6 + + diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.1_8B117.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.1_8B117.bundle/asr.patch new file mode 100644 index 0000000..71f96cf Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.1_8B117.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.1_8B117.bundle/iBSS.n90ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.1_8B117.bundle/iBSS.n90ap.RELEASE.patch new file mode 100644 index 0000000..c2c1b40 Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.1_8B117.bundle/iBSS.n90ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.1_8B117.bundle/restoredexternal.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.1_8B117.bundle/restoredexternal.patch new file mode 100644 index 0000000..9645a8c Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.1_8B117.bundle/restoredexternal.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.2.1_8C148.bundle/Info.plist b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.2.1_8C148.bundle/Info.plist new file mode 100644 index 0000000..8d3eda7 --- /dev/null +++ b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.2.1_8C148.bundle/Info.plist @@ -0,0 +1,108 @@ + + + + + DownloadUrl + + Filename + iPhone3,1_4.2.1_8C148_Restore.ipsw + FilesystemPatches + + FirmwarePatches + + Restore Ramdisk + + Decrypt + + File + 038-0032-002.dmg + IV + 9b20ae16bebf4cf1b9101374c3ab0095 + Key + 06849aead2e9a6ca8a82c3929bad5c2368942e3681a3d5751720d2aacf0694c0 + TypeFlag + 8 + + RestoreDeviceTree + + DecryptPath + Downgrade/DeviceTree.n90ap.img3 + File + Firmware/all_flash/all_flash.n90ap.production/DeviceTree.n90ap.img3 + IV + ea8153bd8ef0b7965e1855959f8706ed + Key + 91fb8c543820ad313578a175d28e74caac973759a766167e423d872dae361ca7 + + RestoreKernelCache + + DecryptPath + Downgrade/kernelcache.release.n90 + File + kernelcache.release.n90 + IV + 318e0d3de933babc06d6500d9a6af759 + Key + 9c32276861ad6935b5ed0af954de8953d569492b14be3600fa5fe93d4b8210e3 + TypeFlag + 4 + + RestoreLogo + + DecryptPath + Downgrade/applelogo-640x960.s5l8930x.img3 + File + Firmware/all_flash/all_flash.n90ap.production/applelogo-640x960.s5l8930x.img3 + IV + 0dcee7d1b9982793558d588d84c44af0 + Key + 91866d7b929b971c72fa6e90530a5b2a361bed9486f2cb884b632f61253ed204 + + iBSS + + Decrypt + + File + Firmware/dfu/iBSS.n90ap.RELEASE.dfu + IV + 45bbf0fa98573425fa21dc6e529eba6b + Key + 32398d3d1328ed3f0e1949446a1357585ae1973b3c8434b83df49ac55cf45d06 + Patch + iBSS.n90ap.RELEASE.patch + TypeFlag + 8 + + + Name + iPhone3,1_4.2.1_8C148 + Platform + 1 + RamdiskMountVolume + ramdisk + RamdiskOptionsPath + /usr/local/share/restore/options.plist + RamdiskPatches + + asr + + File + usr/sbin/asr + Patch + asr.patch + + + RootFilesystem + 038-0019-002.dmg + RootFilesystemKey + b2ee5018ef7d02e45ef67449d9e2ed5f876efae949de64a9a93dbcf7ff9ed84e041e9167 + RootFilesystemMountVolume + Jasper8C148.N90OS + RootFilesystemSize + 930 + SHA1 + 366b28e9c95936bd4b11a84d54fefaf079fd6411 + SubPlatform + 6 + + diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.2.1_8C148.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.2.1_8C148.bundle/asr.patch new file mode 100644 index 0000000..1e05e1e Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.2.1_8C148.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.2.1_8C148.bundle/iBSS.n90ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.2.1_8C148.bundle/iBSS.n90ap.RELEASE.patch new file mode 100644 index 0000000..bbf30eb Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.2.1_8C148.bundle/iBSS.n90ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.1_8G4.bundle/Info.plist b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.1_8G4.bundle/Info.plist new file mode 100644 index 0000000..8c33f43 --- /dev/null +++ b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.1_8G4.bundle/Info.plist @@ -0,0 +1,108 @@ + + + + + DownloadUrl + + Filename + iPhone3,1_4.3.1_8G4_Restore.ipsw + FilesystemPatches + + FirmwarePatches + + Restore Ramdisk + + Decrypt + + File + 038-0902-005.dmg + IV + + Key + + TypeFlag + 8 + + RestoreDeviceTree + + DecryptPath + Downgrade/DeviceTree.n90ap.img3 + File + Firmware/all_flash/all_flash.n90ap.production/DeviceTree.n90ap.img3 + IV + 3abe18d22f1d36d97d4e557ce7b8f4ac + Key + 1b106adcf69295199ed1410c36a15459cab3b58dde1f1339d5537c56f169d949 + + RestoreKernelCache + + DecryptPath + Downgrade/kernelcache.release.n90 + File + kernelcache.release.n90 + IV + 12028a7ee6b2ac6e610b45842c4d470f + Key + 2a300468d54cbaa75f161eecb5cdf518fd8b747a5aab282a56a0a66a548c080e + TypeFlag + 4 + + RestoreLogo + + DecryptPath + Downgrade/applelogo-640x960.s5l8930x.img3 + File + Firmware/all_flash/all_flash.n90ap.production/applelogo-640x960.s5l8930x.img3 + IV + a9b367b0f6846483adf0aa55c21c6716 + Key + 4243444e8633ddfb676089f49b0852ccd840f4c367910842ce7a3f6e263d277a + + iBSS + + Decrypt + + File + Firmware/dfu/iBSS.n90ap.RELEASE.dfu + IV + a441763f051b5537aeefefedf3cf52c9 + Key + bbf0968d5799f444aae52bdf9a2f9ae26d30d94e8de1f9867fba82da220fc852 + Patch + iBSS.n90ap.RELEASE.patch + TypeFlag + 8 + + + Name + iPhone3,1_4.3.1_8G4 + Platform + 1 + RamdiskMountVolume + ramdisk + RamdiskOptionsPath + /usr/local/share/restore/options.plist + RamdiskPatches + + asr + + File + usr/sbin/asr + Patch + asr.patch + + + RootFilesystem + 038-0937-003.dmg + RootFilesystemKey + f6331068497fa4741e135329c399f69b3c109854835789cc6f23f759f333f5e7bbfcdde7 + RootFilesystemMountVolume + Durango8G4.N90OS + RootFilesystemSize + 930 + SHA1 + 6694f69c84d36248d5bb71ba78ddb1f4946260f0 + SubPlatform + 6 + + diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.1_8G4.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.1_8G4.bundle/asr.patch new file mode 100644 index 0000000..733a490 Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.1_8G4.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.1_8G4.bundle/iBSS.n90ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.1_8G4.bundle/iBSS.n90ap.RELEASE.patch new file mode 100644 index 0000000..59f474c Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.1_8G4.bundle/iBSS.n90ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.2_8H7.bundle/Info.plist b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.2_8H7.bundle/Info.plist new file mode 100644 index 0000000..ce88440 --- /dev/null +++ b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.2_8H7.bundle/Info.plist @@ -0,0 +1,108 @@ + + + + + DownloadUrl + + Filename + iPhone3,1_4.3.2_8H7_Restore.ipsw + FilesystemPatches + + FirmwarePatches + + Restore Ramdisk + + Decrypt + + File + 038-1035-007.dmg + IV + + Key + + TypeFlag + 8 + + RestoreDeviceTree + + DecryptPath + Downgrade/DeviceTree.n90ap.img3 + File + Firmware/all_flash/all_flash.n90ap.production/DeviceTree.n90ap.img3 + IV + d94f193539d8ec75a94b142e15a2c8a4 + Key + ee8c985b98fa297c43ccbe1cfdb18bd5998d5cf118f67f9fd452e624f128958f + + RestoreKernelCache + + DecryptPath + Downgrade/kernelcache.release.n90 + File + kernelcache.release.n90 + IV + bbecbf742f0ccaeafa0625d4da0acac4 + Key + 6d31f30e030af721fd1679c61e923c9e1d04848a4c40174bd57a78f391891fe7 + TypeFlag + 4 + + RestoreLogo + + DecryptPath + Downgrade/applelogo-640x960.s5l8930x.img3 + File + Firmware/all_flash/all_flash.n90ap.production/applelogo-640x960.s5l8930x.img3 + IV + 49fd14184476100852003f01417f0c88 + Key + dc88579aa656b45b84434be0f06fa7aa1c5d882570735a8be0631a0a1266d395 + + iBSS + + Decrypt + + File + Firmware/dfu/iBSS.n90ap.RELEASE.dfu + IV + cdd50b45ca1bac4f718d9eb23ce9f0a8 + Key + 8ef00005aa2c01ae409d55e330171589af79d76ac86639e76003835d5d82ffc4 + Patch + iBSS.n90ap.RELEASE.patch + TypeFlag + 8 + + + Name + iPhone3,1_4.3.2_8H7 + Platform + 1 + RamdiskMountVolume + ramdisk + RamdiskOptionsPath + /usr/local/share/restore/options.plist + RamdiskPatches + + asr + + File + usr/sbin/asr + Patch + asr.patch + + + RootFilesystem + 038-1025-007.dmg + RootFilesystemKey + 30804cac61ba4df96999aa4e1ea3a2a18bfbe875534a66a0bb1add095e307a19a7176c82 + RootFilesystemMountVolume + Durango8H7.N90OS + RootFilesystemSize + 930 + SHA1 + 211e556a558ad18921c8b837db65aa20a373db77 + SubPlatform + 6 + + diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.2_8H7.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.2_8H7.bundle/asr.patch new file mode 100644 index 0000000..733a490 Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.2_8H7.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.2_8H7.bundle/iBSS.n90ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.2_8H7.bundle/iBSS.n90ap.RELEASE.patch new file mode 100644 index 0000000..f51692c Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.2_8H7.bundle/iBSS.n90ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.3_8J2.bundle/Info.plist b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.3_8J2.bundle/Info.plist new file mode 100644 index 0000000..153420a --- /dev/null +++ b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.3_8J2.bundle/Info.plist @@ -0,0 +1,108 @@ + + + + + DownloadUrl + + Filename + iPhone3,1_4.3.3_8J2_Restore.ipsw + FilesystemPatches + + FirmwarePatches + + Restore Ramdisk + + Decrypt + + File + 038-1449-003.dmg + IV + + Key + + TypeFlag + 8 + + RestoreDeviceTree + + DecryptPath + Downgrade/DeviceTree.n90ap.img3 + File + Firmware/all_flash/all_flash.n90ap.production/DeviceTree.n90ap.img3 + IV + d94f193539d8ec75a94b142e15a2c8a4 + Key + ee8c985b98fa297c43ccbe1cfdb18bd5998d5cf118f67f9fd452e624f128958f + + RestoreKernelCache + + DecryptPath + Downgrade/kernelcache.release.n90 + File + kernelcache.release.n90 + IV + 301c0db0f6fc3a92c34f34b2dff5d92f + Key + 65c351330f824889fe25b14e2d0cb5e291991a749f13761b825a70f317f005aa + TypeFlag + 4 + + RestoreLogo + + DecryptPath + Downgrade/applelogo-640x960.s5l8930x.img3 + File + Firmware/all_flash/all_flash.n90ap.production/applelogo-640x960.s5l8930x.img3 + IV + 49fd14184476100852003f01417f0c88 + Key + dc88579aa656b45b84434be0f06fa7aa1c5d882570735a8be0631a0a1266d395 + + iBSS + + Decrypt + + File + Firmware/dfu/iBSS.n90ap.RELEASE.dfu + IV + cdd50b45ca1bac4f718d9eb23ce9f0a8 + Key + 8ef00005aa2c01ae409d55e330171589af79d76ac86639e76003835d5d82ffc4 + Patch + iBSS.n90ap.RELEASE.patch + TypeFlag + 8 + + + Name + iPhone3,1_4.3.3_8J2 + Platform + 1 + RamdiskMountVolume + ramdisk + RamdiskOptionsPath + /usr/local/share/restore/options.plist + RamdiskPatches + + asr + + File + usr/sbin/asr + Patch + asr.patch + + + RootFilesystem + 038-1423-003.dmg + RootFilesystemKey + 246f17ec6660672b3207ece257938704944a83601205736409b61fc3565512559abd0f82 + RootFilesystemMountVolume + Durango8J2.N90OS + RootFilesystemSize + 930 + SHA1 + b2e221543f24a66209c70e8465d037fe22afeefa + SubPlatform + 6 + + diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.3_8J2.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.3_8J2.bundle/asr.patch new file mode 100644 index 0000000..36358c3 Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.3_8J2.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.3_8J2.bundle/iBSS.n90ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.3_8J2.bundle/iBSS.n90ap.RELEASE.patch new file mode 100644 index 0000000..f51692c Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.3_8J2.bundle/iBSS.n90ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.4_8K2.bundle/Info.plist b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.4_8K2.bundle/Info.plist new file mode 100644 index 0000000..c80dbe9 --- /dev/null +++ b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.4_8K2.bundle/Info.plist @@ -0,0 +1,108 @@ + + + + + DownloadUrl + + Filename + iPhone3,1_4.3.4_8K2_Restore.ipsw + FilesystemPatches + + FirmwarePatches + + Restore Ramdisk + + Decrypt + + File + 038-2174-001.dmg + IV + + Key + + TypeFlag + 8 + + RestoreDeviceTree + + DecryptPath + Downgrade/DeviceTree.n90ap.img3 + File + Firmware/all_flash/all_flash.n90ap.production/DeviceTree.n90ap.img3 + IV + 1d4ef80ab147f5bce75d73c49f82e932 + Key + 6e5c635103889247829075ded26d2f60a1d44caba3f23a9c55e97dfdc52883ae + + RestoreKernelCache + + DecryptPath + Downgrade/kernelcache.release.n90 + File + kernelcache.release.n90 + IV + 7a66318f4bd304f6c0d10bd80f8a8924 + Key + fe997c3cc78eb7b2da0e62823143bc74aa35c6b48a475474cdf769d03eaa730b + TypeFlag + 4 + + RestoreLogo + + DecryptPath + Downgrade/applelogo-640x960.s5l8930x.img3 + File + Firmware/all_flash/all_flash.n90ap.production/applelogo-640x960.s5l8930x.img3 + IV + bd6eae47ffd9aecfb36245db70a72412 + Key + 195a152a260fae31fb5085e8736132be44f15973c47330aebcaea3f121713e83 + + iBSS + + Decrypt + + File + Firmware/dfu/iBSS.n90ap.RELEASE.dfu + IV + 00ba61665022e97cacb71493f3e92533 + Key + 85d0388a2b1ce6b4fc68aebb3cb87014b6dd57fde5d9599381db4083a30c3803 + Patch + iBSS.n90ap.RELEASE.patch + TypeFlag + 8 + + + Name + iPhone3,1_4.3.4_8K2 + Platform + 1 + RamdiskMountVolume + ramdisk + RamdiskOptionsPath + /usr/local/share/restore/options.plist + RamdiskPatches + + asr + + File + usr/sbin/asr + Patch + asr.patch + + + RootFilesystem + 038-2195-001.dmg + RootFilesystemKey + f3b2e5122cfd8b8215ed8271d83af0183f6d6634afd63444dfd7787e274b7520fc9d5c40 + RootFilesystemMountVolume + Durango8K2.N90OS + RootFilesystemSize + 930 + SHA1 + 65eed031140b908c9f879b8f84d744d1fba2276c + SubPlatform + 6 + + diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.4_8K2.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.4_8K2.bundle/asr.patch new file mode 100644 index 0000000..36358c3 Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.4_8K2.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.4_8K2.bundle/iBSS.n90ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.4_8K2.bundle/iBSS.n90ap.RELEASE.patch new file mode 100644 index 0000000..839ac7c Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.4_8K2.bundle/iBSS.n90ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.5_8L1.bundle/Info.plist b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.5_8L1.bundle/Info.plist new file mode 100644 index 0000000..fbdff3d --- /dev/null +++ b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.5_8L1.bundle/Info.plist @@ -0,0 +1,108 @@ + + + + + DownloadUrl + + Filename + iPhone3,1_4.3.5_8L1_Restore.ipsw + FilesystemPatches + + FirmwarePatches + + Restore Ramdisk + + Decrypt + + File + 038-2265-002.dmg + IV + + Key + + TypeFlag + 8 + + RestoreDeviceTree + + DecryptPath + Downgrade/DeviceTree.n90ap.img3 + File + Firmware/all_flash/all_flash.n90ap.production/DeviceTree.n90ap.img3 + IV + 1d4ef80ab147f5bce75d73c49f82e932 + Key + 6e5c635103889247829075ded26d2f60a1d44caba3f23a9c55e97dfdc52883ae + + RestoreKernelCache + + DecryptPath + Downgrade/kernelcache.release.n90 + File + kernelcache.release.n90 + IV + d3e63e2ec8644d71700b6219481e9ab6 + Key + a076ca188f08d13364406a357c05e1776b5225537545da21d137ea38ab850341 + TypeFlag + 4 + + RestoreLogo + + DecryptPath + Downgrade/applelogo-640x960.s5l8930x.img3 + File + Firmware/all_flash/all_flash.n90ap.production/applelogo-640x960.s5l8930x.img3 + IV + bd6eae47ffd9aecfb36245db70a72412 + Key + 195a152a260fae31fb5085e8736132be44f15973c47330aebcaea3f121713e83 + + iBSS + + Decrypt + + File + Firmware/dfu/iBSS.n90ap.RELEASE.dfu + IV + 00ba61665022e97cacb71493f3e92533 + Key + 85d0388a2b1ce6b4fc68aebb3cb87014b6dd57fde5d9599381db4083a30c3803 + Patch + iBSS.n90ap.RELEASE.patch + TypeFlag + 8 + + + Name + iPhone3,1_4.3.5_8L1 + Platform + 1 + RamdiskMountVolume + ramdisk + RamdiskOptionsPath + /usr/local/share/restore/options.plist + RamdiskPatches + + asr + + File + usr/sbin/asr + Patch + asr.patch + + + RootFilesystem + 038-2288-002.dmg + RootFilesystemKey + e5e061077217c4937e14d9c4ae1eeb8d69827aa4838168033dd5f1806ab485306a8aa3cf + RootFilesystemMountVolume + Durango8L1.N90OS + RootFilesystemSize + 930 + SHA1 + 7099307319c669356955e9aff11a3129d6b8d8b4 + SubPlatform + 6 + + diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.5_8L1.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.5_8L1.bundle/asr.patch new file mode 100644 index 0000000..4a875c2 Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.5_8L1.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.5_8L1.bundle/iBSS.n90ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.5_8L1.bundle/iBSS.n90ap.RELEASE.patch new file mode 100644 index 0000000..183fbcd Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3.5_8L1.bundle/iBSS.n90ap.RELEASE.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3_8F190.bundle/Info.plist b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3_8F190.bundle/Info.plist new file mode 100644 index 0000000..de3890b --- /dev/null +++ b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3_8F190.bundle/Info.plist @@ -0,0 +1,108 @@ + + + + + DownloadUrl + + Filename + iPhone3,1_4.3_8F190_Restore.ipsw + FilesystemPatches + + FirmwarePatches + + Restore Ramdisk + + Decrypt + + File + 038-0715-006.dmg + IV + d11772b6a3bdd4f0b4cd8795b9f10ad9 + Key + 9873392c91743857cf5b35c9017c6683d5659c9358f35c742be27bfb03dee77c + TypeFlag + 8 + + RestoreDeviceTree + + DecryptPath + Downgrade/DeviceTree.n90ap.img3 + File + Firmware/all_flash/all_flash.n90ap.production/DeviceTree.n90ap.img3 + IV + 429eb0520c97d760454b9f9cc3faecaf + Key + 94635b3c9c563e429576e60d53157a88f6f8853846c4c5f24e515dab701faeb5 + + RestoreKernelCache + + DecryptPath + Downgrade/kernelcache.release.n90 + File + kernelcache.release.n90 + IV + 46e295a1b68a063bed5c738a821675c8 + Key + 6e4955725a972adfe1d656c523715cd2fb337b6410c3e3ce5f8d8018bc567871 + TypeFlag + 4 + + RestoreLogo + + DecryptPath + Downgrade/applelogo-640x960.s5l8930x.img3 + File + Firmware/all_flash/all_flash.n90ap.production/applelogo-640x960.s5l8930x.img3 + IV + e6cae37aca610fc27d64001fc69da531 + Key + f31183f5fe2beb0eaea8a057f47e13f967357161054f8d92ebc0fdb3645a822c + + iBSS + + Decrypt + + File + Firmware/dfu/iBSS.n90ap.RELEASE.dfu + IV + 37f4d36494ac9d83ab8a9e4936c885f8 + Key + f5e50c94dfee05ed52b4003750007f4c2d1801f7e90e768774ac656dc62c69db + Patch + iBSS.n90ap.RELEASE.patch + TypeFlag + 8 + + + Name + iPhone3,1_4.3_8F190 + Platform + 1 + RamdiskMountVolume + ramdisk + RamdiskOptionsPath + /usr/local/share/restore/options.plist + RamdiskPatches + + asr + + File + usr/sbin/asr + Patch + asr.patch + + + RootFilesystem + 038-0688-006.dmg + RootFilesystemKey + 34904e749a8c5cfabecc6c3340816d85e7fc4de61c968ca93be621a9b9520d6466a1456a + RootFilesystemMountVolume + Durango8F190.N90OS + RootFilesystemSize + 930 + SHA1 + 146cd896abb21680383fe675cbc99fc36d3cce57 + SubPlatform + 6 + + diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3_8F190.bundle/asr.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3_8F190.bundle/asr.patch new file mode 100644 index 0000000..733a490 Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3_8F190.bundle/asr.patch differ diff --git a/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3_8F190.bundle/iBSS.n90ap.RELEASE.patch b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3_8F190.bundle/iBSS.n90ap.RELEASE.patch new file mode 100644 index 0000000..d0682a5 Binary files /dev/null and b/resources/firmware/FirmwareBundles/Down_iPhone3,1_4.3_8F190.bundle/iBSS.n90ap.RELEASE.patch differ diff --git a/resources/firmware/iPhone3,1/8A293/sha1sum b/resources/firmware/iPhone3,1/8A293/sha1sum new file mode 100644 index 0000000..2cf6047 --- /dev/null +++ b/resources/firmware/iPhone3,1/8A293/sha1sum @@ -0,0 +1 @@ +171c2a3995fa149f2a369ccd87f82c5c30da3f88 diff --git a/resources/firmware/iPhone3,1/8A306/sha1sum b/resources/firmware/iPhone3,1/8A306/sha1sum new file mode 100644 index 0000000..2cf85ba --- /dev/null +++ b/resources/firmware/iPhone3,1/8A306/sha1sum @@ -0,0 +1 @@ +a9cf20679273b7e502ab384854ba96cc2a54d532 diff --git a/resources/firmware/iPhone3,1/8A400/sha1sum b/resources/firmware/iPhone3,1/8A400/sha1sum new file mode 100644 index 0000000..3870502 --- /dev/null +++ b/resources/firmware/iPhone3,1/8A400/sha1sum @@ -0,0 +1 @@ +19eb071cdb9f1601b106825d0a16b1449c6eef8c diff --git a/resources/firmware/iPhone3,1/8B117/sha1sum b/resources/firmware/iPhone3,1/8B117/sha1sum new file mode 100644 index 0000000..ce20e4f --- /dev/null +++ b/resources/firmware/iPhone3,1/8B117/sha1sum @@ -0,0 +1 @@ +a3f8a333ca181146b862ca6a59c9a6e7c27eba0b diff --git a/resources/firmware/iPhone3,1/8C148/sha1sum b/resources/firmware/iPhone3,1/8C148/sha1sum new file mode 100644 index 0000000..dd65293 --- /dev/null +++ b/resources/firmware/iPhone3,1/8C148/sha1sum @@ -0,0 +1 @@ +366b28e9c95936bd4b11a84d54fefaf079fd6411 diff --git a/resources/firmware/iPhone3,1/8G4/sha1sum b/resources/firmware/iPhone3,1/8G4/sha1sum new file mode 100644 index 0000000..aaef9d1 --- /dev/null +++ b/resources/firmware/iPhone3,1/8G4/sha1sum @@ -0,0 +1 @@ +6694f69c84d36248d5bb71ba78ddb1f4946260f0 \ No newline at end of file diff --git a/resources/firmware/iPhone3,1/8H7/sha1sum b/resources/firmware/iPhone3,1/8H7/sha1sum new file mode 100644 index 0000000..80c0ac3 --- /dev/null +++ b/resources/firmware/iPhone3,1/8H7/sha1sum @@ -0,0 +1 @@ +211e556a558ad18921c8b837db65aa20a373db77 \ No newline at end of file diff --git a/resources/firmware/iPhone3,1/8K2/sha1sum b/resources/firmware/iPhone3,1/8K2/sha1sum new file mode 100644 index 0000000..6f0ad9a --- /dev/null +++ b/resources/firmware/iPhone3,1/8K2/sha1sum @@ -0,0 +1 @@ +65eed031140b908c9f879b8f84d744d1fba2276c \ No newline at end of file diff --git a/restore.sh b/restore.sh index 5a3a1ca..a54f177 100755 --- a/restore.sh +++ b/restore.sh @@ -1034,6 +1034,7 @@ device_enter_mode() { log "Placing device to pwnDFU mode using gaster" $gaster pwn tool_pwned=$? + $gaster reset elif [[ $device_proc == 6 && $platform != "macos" ]] || [[ $device_type == "iPod2,1" ]]; then # A6 linux uses ipwndfu # ipod touch 2g uses ipwndfu @@ -1058,7 +1059,7 @@ device_enter_mode() { local selection=() if [[ $platform == "macos" ]]; then print "* This option is set to ipwnder32 by default (1). Select this option if unsure." - selection+=("ipwnder32" "ipwnder") + selection+=("ipwnder32" "ipwnder_lite") elif [[ $device_proc == 7 ]]; then print "* This option is set to gaster by default (1). Select this option if unsure." fi @@ -1088,7 +1089,7 @@ device_enter_mode() { fi irec_pwned=$($irecovery -q | grep -c "PWND") # irec_pwned is instances of "PWND" in serial, must be 1 - # tool_pwned is error code of pwn tool, must be 0 + # tool_pwned is error code of pwning tool, must be 0 if [[ $irec_pwned != 1 && $tool_pwned != 0 ]]; then device_pwnerror fi @@ -1390,20 +1391,23 @@ patch_ibec() { ipsw_preference_set() { # sets ipsw variables: ipsw_jailbreak, ipsw_memory, ipsw_verbose + + # latest version check case $device_latest_vers in 7.1.2 | 6.1.6 | 5.1.1 | 4.2.1 ) ipsw_canjailbreak=1;; esac - if [[ $device_target_vers == "$device_latest_vers" && $ipsw_canjailbreak != 1 ]] || (( device_proc >= 7 )); then return + elif [[ $device_target_vers != "$device_latest_vers" ]]; then + ipsw_canjailbreak= fi - + # target version check case $device_target_vers in 8* | 7* | 6* | 5* ) ipsw_canjailbreak=1;; esac - - if [[ $device_proc == 4 && $device_target_other == 1 && $ipsw_canjailbreak != 1 ]]; then - return + if [[ $device_type == "iPhone3,1" && $device_target_vers == "4.3"* ]] || + [[ $device_proc == 4 && $device_type != "iPhone3,1" ]]; then + ipsw_canjailbreak=1 fi if [[ $device_target_vers == "3.1"* ]]; then @@ -1445,10 +1449,9 @@ ipsw_preference_set() { : elif [[ $device_type == "iPhone2,1" || $device_type == "iPod2,1" ]] && [[ $device_target_other != 1 ]]; then : - elif [[ $ipsw_jailbreak == 1 || $device_type == "$device_disable_bbupdate" ]] || - [[ $device_type == "iPhone3,1" && $device_target_vers != "7.1.2" ]] || + elif [[ $ipsw_jailbreak == 1 || $device_type == "$device_disable_bbupdate" || $device_target_powder == 1 ]] || [[ $device_type == "iPad2"* && $device_target_vers == "4.3"* ]] || - [[ $device_target_powder == 1 ]]; then + [[ $device_type == "iPhone3,1" && $device_target_vers == "4"* ]]; then input "Memory Option for creating custom IPSW" print "* When this option is enabled, system RAM will be used for the IPSW creation process." print "* I recommend to enable this option to speed up creating the custom IPSW." @@ -1639,7 +1642,6 @@ ipsw_prepare_jailbreak() { return fi local ExtraArgs= - local ipsw="$dir/ipsw" local JBFiles=() local JBFiles2=() @@ -1659,8 +1661,12 @@ ipsw_prepare_jailbreak() { done cp -R ../resources/firmware/JailbreakBundles FirmwareBundles ExtraArgs+="-daibutsu" # use daibutsuCFW - elif [[ $device_target_vers == "6.1.3" ]]; then - JBFiles+=("fstab_rw.tar" "p0sixspwn.tar" "freeze.tar") + else + JBFiles+=("fstab_rw.tar" "freeze.tar") + case $device_target_vers in + "6.1.3" ) JBFiles+=("p0sixspwn.tar");; + "4.3"* ) JBFiles+=("unthredeh4il.tar");; + esac for i in {0..2}; do JBFiles[i]=$jelbrek/${JBFiles[$i]} done @@ -1677,7 +1683,7 @@ ipsw_prepare_jailbreak() { if [[ $ipsw_memory == 1 ]]; then ExtraArgs+=" -memory" fi - if [[ $device_use_bb != 0 && $device_type != "$device_disable_bbupdate" ]]; then + if [[ $device_use_bb != 0 && $device_type != "$device_disable_bbupdate" && $device_proc != 4 ]]; then ExtraArgs+=" -bbupdate" elif [[ $device_type == "$device_disable_bbupdate" && $device_type == "iPhone"* ]]; then device_dump baseband @@ -1688,7 +1694,7 @@ ipsw_prepare_jailbreak() { ExtraArgs+=" ../saved/$device_type/activation.tar" fi log "Preparing custom IPSW: $ipsw $ipsw_path.ipsw temp.ipsw $ExtraArgs ${JBFiles[*]}" - "$ipsw" "$ipsw_path.ipsw" temp.ipsw $ExtraArgs ${JBFiles[@]} + "$dir/ipsw" "$ipsw_path.ipsw" temp.ipsw $ExtraArgs ${JBFiles[@]} if [[ ! -e temp.ipsw ]]; then error "Failed to find custom IPSW. Please run the script again" \ @@ -1966,7 +1972,7 @@ ipsw_prepare_32bit() { local daibutsu local JBFiles=() if [[ $device_target_vers == "3"* || $device_target_vers == "4"* ]]; then - if [[ $device_type == "iPad2"* ]]; then + if [[ $device_type == "iPad2"* || $device_type == "iPhone3,1" ]]; then ipsw_prepare_jailbreak elif [[ $ipsw_jailbreak == 1 ]]; then ipsw_prepare_custom @@ -1995,7 +2001,7 @@ ipsw_prepare_32bit() { if [[ $ipsw_memory == 1 ]]; then ExtraArgs+=" -memory" fi - if [[ $device_use_bb != 0 && $device_type != "$device_disable_bbupdate" ]]; then + if [[ $device_use_bb != 0 && $device_type != "$device_disable_bbupdate" && $device_proc != 4 ]]; then ExtraArgs+=" -bbupdate" elif [[ $device_type == "$device_disable_bbupdate" && $device_type == "iPhone"* ]]; then device_dump baseband @@ -2654,19 +2660,22 @@ restore_prepare_1033() { restore_prepare() { case $device_proc in 4 ) - if [[ $device_target_other == 1 ]]; then - if [[ $device_target_vers == "3"* || $device_target_vers == "4"* ]]; then + if [[ $device_target_other == 1 ]] && [[ $device_target_vers == "3"* || $device_target_vers == "4"* ]]; then + if [[ $device_type != "iPhone3,1" ]]; then ipsw_custom="../${device_type}_${device_target_vers}_${device_target_build}_Restore" fi device_enter_mode pwnDFU restore_idevicerestore - if [[ $device_target_vers == "3"* || $device_target_vers == "4"* ]] && [[ $device_type == "iPhone"* ]]; then + if [[ $device_type == "iPhone2,1" ]]; then log "Ignore the baseband error and do not disconnect your device yet" device_find_mode Recovery log "Attempting to exit recovery mode" $irecovery -n log "Done, your device should boot now" fi + elif [[ $device_target_other == 1 ]]; then + device_enter_mode pwnDFU + restore_idevicerestore elif [[ $device_target_vers == "4.1" && $ipsw_jailbreak != 1 ]]; then device_enter_mode DFU restore_latest @@ -2756,7 +2765,6 @@ restore_prepare() { esac if [[ $device_latest_vers == "15"* ]]; then device_enter_mode pwnDFU - $irecovery -f ../README.md # send dummy file device_fw_key_check if [[ ! -s ../resources/firmware.json ]]; then log "Downloading firmwares.json from ipsw.me" @@ -3644,6 +3652,10 @@ menu_ipsw() { print "* Selected Target IPSW: $ipsw_path.ipsw" print "* Target Version: $device_target_vers-$device_target_build" menu_items+=("Select Target SHSH") + if [[ $device_type == "iPhone3,1" && $device_target_vers == "4.2.1" ]]; then + warn "There currently seems to be an issue with 4.2.1 restores for iPhone 4." + print "* The device might get stuck at the Apple logo after the restore." + fi else print "* Select Target IPSW to continue" fi @@ -3753,7 +3765,7 @@ ipsw_custom_set() { if [[ $ipsw_verbose == 1 ]]; then ipsw_custom+="V" fi - if [[ $device_target_vers == "4.3"* && $device_type == "iPhone3,1" ]]; then + if [[ $device_target_vers == "4.3"* && $device_type == "iPhone3,1" && $device_target_powder == 1 ]]; then ipsw_custom+="_$device_ecid" fi } @@ -3915,9 +3927,8 @@ menu_other() { iPhone3,1 ) menu_items+=("Disable/Enable Exploit");; iPhone2,1 ) menu_items+=("Install alloc8 Exploit");; esac - menu_items+=("Attempt Activation") case $device_mode in - "Normal" ) menu_items+=("Enter Recovery Mode");; + "Normal" ) menu_items+=("Attempt Activation" "Enter Recovery Mode");; "Recovery" ) menu_items+=("Exit Recovery Mode");; esac if [[ $device_mode != "DFU" ]]; then