OpenBridge
OpenVitals is offline: it has no internet permission. OpenBridge is a separate app, published by Hale like OpenVitals, that reads the data OpenVitals shares and can reach the internet, so it can pass that data on to other services. The first service is VertMatch. What OpenBridge reads, sends and keeps is in Privacy.
How it gets data
OpenVitals shares data through a read-only content provider, split into 11 groups: activity, workouts, routes, sleep, heart, vitals, body, nutrition, recovery, cycle and sexual activity.
- In OpenVitals, turn on Settings, Share with other apps. It starts off.
- In the bridge, tap Ask for all groups, or Ask on one group. Android shows its own dialog for each group. Change a group later in Android’s settings for the bridge.
- Tap Read on a group, or Read everything.
The bridge reads, per group:
- daily: the last 7 days
- samples: the last 24 hours
- sessions: the last 30 days (workouts, sleep and mindfulness)
- routes: the latest 3 workouts of the last 30 days; this also needs the workouts group
Every answer carries a status. sharing_off means the switch in OpenVitals is off. background_read_missing means OpenVitals may not read Health Connect while it is closed, so only its own data comes through. partial means some reads failed, but the rows that came back are right.
OpenVitals builds
Each OpenVitals build names its permissions and its provider after its own application id: tech.mmarca.openvitals, .debug or .ci. The bridge asks for all three and reads from whichever is installed; with more than one, it lets you choose. The sharing API is in OpenVitals’ nightly builds, and in its releases after 2.17.0. Sending a workout to a service also needs that OpenVitals, since it writes the workout’s file.
Install OpenVitals before the bridge. Android may not offer a permission that another app defined after the bridge was installed; reinstall the bridge if a group never shows a dialog.
Developers
The bridge reads OpenVitals’ content provider with the names in openvitals/OpenVitalsApi.kt, copied from sharing/contract/DataSharingContract.kt in the OpenVitals repository ; the two are kept in step. Build instructions are in the README .
Help and source
- Source and issues: github.com/Hale-MTU/OpenBridge
- Community chat: Zulip
- License: AGPL-3.0-or-later