Package-level declarations
Framing (app.tether.core.Record, app.tether.core.RecordReader), P-256 keys and the handshake, the AES-GCM record layer, the control message envelope and its type names (app.tether.core.T), body types (SMS, contacts, calls) and the audio frame.
Types
Audio channel frame: codec ‖ seq ‖ payload.
A call as clients see it (protocol §5 Call). tone: "busy" | "congestion" | "ended", the tone Android's own phone app would play for how the call ended; sent only with state "ended".
Pairing code tether1:<S_P>.<token>.<name>; the QR code holds its link form tether://pair?c=<S_P>.<token>.<name> (since 1.2: the iPhone's Camera app offers to open it in the app). parse accepts both.
Peripheral (Android) side of the handshake. staticKey may be an AndroidKeyStore key. staticPublic is its X9.63 encoding.
A plain-text problem report (the same format in the Android phone app, the Android client and the iPhone app):
Accumulates stream bytes and yields complete records.
Removes what identifies a person from text that goes into a problem report (logs, system values): phone numbers, e-mail addresses, full Bluetooth / MAC addresses (only the last two bytes stay), IP addresses, IMEI- or serial-like digit runs, long keys and tokens, and any names given (Bluetooth device names, the client's name, SIM and carrier names). Timestamps, versions, build fingerprints, durations, counters and percentages stay as they are.
AES-256-GCM record layer with strict per-direction counters (protocol §4). Thread-safe.