tihmstar / img4tool

A tool for manipulating IMG4, IM4M and IM4P files
GNU Lesser General Public License v3.0
270 stars 105 forks source link

Problems with new manifests #4

Closed arx8x closed 5 years ago

arx8x commented 6 years ago

iPhone 8, 8 plus and X models now have new buildidentities for AudioCodec and NFC firmwares. img4tool fails to find a digest for SE, UpdatePayload buildidentity. Verification for all new models will fail for this reason and shsh2 files are deemed invalid by img4tool. Since iOS 11.2, iPhone 7 and 8 models have a single buildmanifest. img4tool reads the buildmanifest and finds the iPhone 8's SE, UpdatePayload key. This causes img4tool to mark iPhone 7's shsh2 files as invalid, although SE, UpdatePayload isn't actually present in builidentities for iPhone 7. I think reading the buildidentities based on the input model will be nice.