blacktop / ipsw

iOS/macOS Research Swiss Army Knife
https://blacktop.github.io/ipsw
MIT License
1.83k stars 144 forks source link

Unable to extract OTA payload files: AppleTV 4K #318

Open kasiimh1 opened 1 year ago

kasiimh1 commented 1 year ago

Hi Trying to extract the OTA bundle get this error:

• Processing OTA payload filename=AssetData/payloadv2/payload.018 size=81 MB • Processing OTA payload filename=AssetData/payloadv2/payload.020 size=82 MB • Processing OTA payload filename=AssetData/payloadv2/payload.016 size=74 MB • Processing OTA payload filename=AssetData/payloadv2/payload.011 size=77 MB • Processing OTA payload filename=AssetData/payloadv2/payload.010 size=64 MB • Processing OTA payload filename=AssetData/payloadv2/payload.017 size=74 MB • Processing OTA payload filename=AssetData/payloadv2/payload.021 size=69 MB • Processing OTA payload filename=AssetData/payloadv2/payload.019 size=77 MB • Processing OTA payload filename=AssetData/payloadv2/payload.004 size=29 MB • Processing OTA payload filename=AssetData/payloadv2/payload.003 size=130 MB ⨯ xz: invalid header magic bytes • Processing OTA payload filename=AssetData/payloadv2/payload.002 size=126 MB ⨯ xz: invalid header magic bytes • Processing OTA payload filename=AssetData/payloadv2/payload.005 size=46 MB • Processing OTA payload filename=AssetData/payloadv2/payload.023 size=16 MB • Processing OTA payload filename=AssetData/payloadv2/payload.024 size=3.7 MB • Processing OTA payload filename=AssetData/payloadv2/payload.012 size=79 MB • Processing OTA payload filename=AssetData/payloadv2/payload.015 size=80 MB • Processing OTA payload filename=AssetData/payloadv2/payload.014 size=81 MB • Processing OTA payload filename=AssetData/payloadv2/payload.013 size=87 MB • Processing OTA payload filename=AssetData/payloadv2/payload.022 size=58 MB • Processing OTA payload filename=AssetData/payloadv2/payload.000 size=172 kB • Processing OTA payload filename=AssetData/payloadv2/payload.007 size=78 MB • Processing OTA payload filename=AssetData/payloadv2/payload.009 size=76 MB • Processing OTA payload filename=AssetData/payloadv2/payload.008 size=79 MB • Processing OTA payload filename=AssetData/payloadv2/payload.006 size=82 MB • Processing OTA payload filename=AssetData/payloadv2/payload.001 size=253 MB

  From what i can tell some payload files do not have XZ data at the start like the rest, they have something before it (like another 
  file).

  In payload.002 It has two sets of XZ data with something else before hand.

  Also exists on many ATV OTA bundles just different payloads will error because of this.

  Example link to OTA: https://updates.cdn-apple.com/2020SummerSeed/patches/061-92077/73A5B815-38F1-4474-812D-F24E5A88575C/com_apple_MobileAsset_SoftwareUpdate/8988ef3518b1f20f95c66d03be3c15eb4e1be2a0.zip
kasiimh1 commented 1 year ago

So what we are trying to do is create an Apple TV 4K IPSW for restoring, which we have already done successfully allowing upgrade and downgrade, with the right hardware and tools.

This would allow us to release a method without shipping an IPSW

kk5201314 commented 7 months ago

Hello, I just need this file because my appletv4k is broken and needs to be restored. Have you made this ipws file? Can you share it with me? Thank you.

kasiimh1 commented 6 months ago

Hello, I just need this file because my appletv4k is broken and needs to be restored. Have you made this ipws file? Can you share it with me? Thank you.

If you message me on Reddit I can help you out. /u/Spxrk

blacktop commented 5 months ago

hello! there is currently no way for ipsw to generate an IPSW from an OTA. That is an interesting problem, but I currently have no use for it myself and therefore cannot prioritize it, however, I'll leave the issue open as a feature request so that it might be placed on the RoadMap at some point