Make OpenHaystack work without the Mail Plugin (see #214 , #240, #247)
Correctly parse new report format (see #242, #249)
To fetch the reports on macOS 14 I made the following changes:
The anisette headers are generated using AOSKit which is the same method used by AltStore
The search party token has to be copied from the Keychain and entered manually via a new settings view. This is not perfect since the token expires and changes from time to time. An alternative solution would be to implement GSA Login as in FindMy and generate a search party token from there.
The mail plugin is still available as a fallback but has to be explicitly enabled in the settings
As discussed in biemster/FindMy#52 some reports are now 89 bytes long instead of 88 bytes with an extra null byte inserted after the timestamp. DecryptReports now checks the length and removes the 5th byte if the report is longer than 88 bytes.
We should probably add some documentation to the README since this changes the default behaviour of OpenHaystack.
This PR fixes two issues:
To fetch the reports on macOS 14 I made the following changes:
AOSKit
which is the same method used by AltStoreAs discussed in biemster/FindMy#52 some reports are now 89 bytes long instead of 88 bytes with an extra null byte inserted after the timestamp.
DecryptReports
now checks the length and removes the 5th byte if the report is longer than 88 bytes.We should probably add some documentation to the README since this changes the default behaviour of OpenHaystack.