tihmstar / img4tool

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

Fix signing tickets verification for A12+ #40

Closed s0uthwest closed 4 years ago

s0uthwest commented 4 years ago

Issue, opened in futurerestore: https://github.com/tihmstar/futurerestore/issues/301

tihmstar commented 4 years ago

I'm trying to figure out a way to not have to maintain a whitelist on every update. Current procedure is to check for Trusted=YES in buildmanifest and to ignore if either Trusted=NO or if Trusted element is missing completely. This seems to work with ignoring Savage, Yonkers and the other things, while still correctly detecting things like Update and Erase install in my quick test. Commit 22a2671082a9232c180e1856dfce04eea9681315 should fix the particular issue of verification failure.

I kinda rather have false negatives, than having the tool telling people that they can restore even though their aptickets is broken, because i don't want them to mess up their devices.