Repository navigation
v0.1.0 — it works on two phones
Not affiliated with or endorsed by the AndroidAPS project. An independent add-on containing no AAPS source. This tag versions this project — it is not an AndroidAPS release.
No APK is attached, and none ever will be. You build it yourself, from source you have read.
A working proof of concept. Two Android phones, a live closed loop, and no server anywhere.
What was demonstrated
Two phones. A factory-reset Android phone, set up from nothing, scanned a QR code and showed the subject's live glucose — 117 mg/dL, one minute old, matching the number on the subject's own screen. Over the open internet. No account, no server, nothing typed.
A relay. A stranger peer, granted nothing, replicated 146 segments and all 219 wraps, could open none of it, and served the complete history to a granted reader while the originating phone was switched off. 33,800 records over 73 days of real looping.
How it works
Records are sealed per segment under their own key; that key is wrapped separately to each granted reader. Peers hold what they follow and serve what they hold — including wraps for readers they know nothing about, which is what makes relaying possible at all. Grants are signed and hash-chained, and filed under a tag derived from a shared secret, so the log proves what happened without naming anyone in it.
Revocation is the absence of a file: the departing reader is simply not wrapped for the next segment.
Sharing
One checksummed string, shown as a QR code, whose subject field is exactly the key a grant is made against — so one code works in both directions. Scan someone's invite to follow them, or to share with them; it asks which you meant rather than guessing.
What this is not
The cryptography has not been reviewed. Standard primitives composed by hand. See SECURITY.md — that is the gap that matters, and review is the contribution most wanted.
No forward secrecy. Publication is permanent; revocation is prospective only. Reads are invisible. Discovery is manual. Background sync is at Android's mercy — two minutes while awake, longer in Doze, which is why every reading is shown with its age.
Safety
The AAPS add-on ships disabled and is structurally incapable of dosing — it drains a queue outward, holds no pump reference, and implements no constraint. The realistic risk is availability, not insulin: a plugin that fails to construct takes the app with it.