mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-12-25 07:41:49 +01:00
Update ipsw.sh
fix ios4fix script even though it doesn't really work anyway
This commit is contained in:
parent
9248c9002c
commit
d151d71aac
@ -4,7 +4,7 @@
|
||||
- **iPhone4Down: Downgrade your iPhone 4 on Linux (using ch3rryflower)**
|
||||
- **Linux and macOS** are supported
|
||||
- **Partial support for Windows** - usage is not recommended
|
||||
- iPhone4Down is focused on Linux only - macOS is untested, Windows is unsupported
|
||||
- iPhone4Down is focused on Linux only - macOS and Windows are unsupported
|
||||
- **Read the ["How to Use" wiki page](https://github.com/LukeZGD/iOS-OTA-Downgrader/wiki/How-to-Use) for a step-by-step tutorial**
|
||||
- **Read the ["Troubleshooting" wiki page](https://github.com/LukeZGD/iOS-OTA-Downgrader/wiki/Troubleshooting) for tips, frequent questions, and troubleshooting**
|
||||
|
||||
|
@ -369,15 +369,15 @@ IPSW4() {
|
||||
mv -v applelogo-640x960.s5l8930x.img3 applelogo4-640x960.s5l8930x.img3
|
||||
echo "0000010: 34" | xxd -r - applelogo4-640x960.s5l8930x.img3
|
||||
echo "0000020: 34" | xxd -r - applelogo4-640x960.s5l8930x.img3
|
||||
if [[ $platform == macos ]]; then
|
||||
plutil -extract 'APTicket' xml1 ../../../../../../shsh/$UniqueChipID-iPhone3,1-$OSVer.shsh -o 'apticket.plist'
|
||||
if [[ $platform == "macos" ]]; then
|
||||
plutil -extract 'APTicket' xml1 ../../../../../../$SHSH -o 'apticket.plist'
|
||||
cat apticket.plist | sed -ne '/<data>/,/<\/data>/p' | sed -e "s/<data>//" | sed "s/<\/data>//" | awk '{printf "%s",$0}' | base64 --decode > apticket.der
|
||||
else
|
||||
$xmlstarlet sel -t -m "/plist/dict/key[.='APTicket']" -v "following-sibling::data[1]" ../../../../../../shsh/$UniqueChipID-iPhone3,1-$OSVer.shsh > apticket.plist
|
||||
$xmlstarlet sel -t -m "/plist/dict/key[.='APTicket']" -v "following-sibling::data[1]" ../../../../../../$SHSH > apticket.plist
|
||||
sed -i -e 's/[ \t]*//' apticket.plist
|
||||
cat apticket.plist | base64 --decode > apticket.der
|
||||
fi
|
||||
env LD_LIBRARY_PATH=../../../../../../resources/lib ../../../../../../$cherry/bin/xpwntool apticket.der applelogoT-640x960.s5l8930x.img3 -t scab_template.img3
|
||||
../../../../../$xpwntool apticket.der applelogoT-640x960.s5l8930x.img3 -t scab_template.img3
|
||||
cd ../../..
|
||||
zip -r0 ../../../$IPSWCustom.ipsw Firmware/all_flash/all_flash.n90ap.production/manifest
|
||||
zip -r0 ../../../$IPSWCustom.ipsw Firmware/all_flash/all_flash.n90ap.production/applelogo4-640x960.s5l8930x.img3
|
||||
|
Loading…
Reference in New Issue
Block a user