
Open Implementation of iMessage Protocol in Kotlin
An open implementation of Apple's madrid protocol (iMessage) in Kotlin: the binary plist codecs, the APNs "courier" push client, the IDS identity service, the encryption envelopes, the registration/activation chain, and…
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
An open implementation of Apple's madrid protocol (iMessage) in Kotlin: the binary plist codecs, the APNs "courier" push client, the IDS identity service, the encryption envelopes, the registration/activation chain, and the ADI anisette chain (device provisioning, OTP headers, the validation-stamp mint).
Almost every route to iMessage is closed in some way:
*open-absinthe, the reference everyone else depends on, is a mock placeholder with no real code; this is the real thing.
The protocol facts behind the code are written up in the spec: docs/imessage-protocol-spec.md.
This is a clean-room. Contributors never read the source of rustpush, pypush, imessagego, or their forks. Two roles, kept apart:
This keeps the code fully open and acceptable to F-Droid and other distribution channels.
No Apple-derived code or binary ships here, including the IMDAppleServices framework. The bundled identity in registration/src/main/resources/imessage/fairplay/ is a synthetic placeholder, generated and self-signed, for tests only; live activation requires each user to stage Apple's real FairPlay identity themselves.
One documented exception: the ClearADI and pear lookup tables (constant data the ADI ciphers need) were reconstructed by analyzing a compiled ADI implementation and ship as generated Kotlin source, decoded at startup. No Apple code, binary, or resource file is committed. The extraction method is in the spec.
Tagged releases build on JitPack — module coordinates and code snippets for the mint, anisette, and the engine are in docs/USAGE.md.
./gradlew build # all modules + tests ./gradlew :engine:runProbe # live drift check
License
Apache-2.0.
Support my work on Ko-fi or GitHub Sponsors.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。