Sensors & health data

Health Connect

Read shared health records; disabled in the baseline configuration.

Reviewed
On this page

Current state

Configuration reviewed October 15, 2026: health_connect.enabled is true in the current registry.json, and the provider is in the allowlist. This enables the configured path; actual collection still depends on enrollment, permissions, available records and runtime scheduling. This review did not repeat device collection tests.

The Android plugin reads records another app has shared with Health Connect. Records present only in the source app, but not shared to Health Connect, cannot be read through this path.

Implemented type paths

TypeObserved code path
stepsRead, event mapping, numeric ingestion
sleepRead, session ingestion, owner-scoped reconciliation
heart_rateRead/mapping, ingestion of each sample inside the requested time window
exerciseRead/mapping, numeric exercise duration
blood_glucoseRead, mapping, numeric ingestion
blood_pressureSystolic and diastolic numeric ingestion
body_fatRead, mapping, numeric ingestion
weightExecutable read, event mapping and numeric ingestion in kg

The table describes executable source paths, including weight. It does not establish successful collection on every device or with every provider.

Requirements and activation

Health Connect is integrated into Android 14 and later. Earlier versions may need the separate app. See the official Android setup guide for preparation and feature availability.

Activation requires aligning registry enabled, types, allowlist, build health-feature settings, and permission handling. Verify a real read and Room write after configuration changes. Documentation work does not change baseline collection settings.

Sleep records and time anchors

The app contains a Health Connect sleep-refresh path and a path that uses sleep-end records as evidence for a wake anchor. Background read access follows the executable sleep-anchor configuration and device capability. Missing records, missing permission, unavailable features, and read failures must not be treated as a valid sleep-end time.

Sharing scope is not integration scope

The presentation's '17 Samsung Health shared types' describes a source platform's sharing scope, not completion of 17 DTRAC integrations. Use the implementation table and study configuration to determine actual support.

Documentation evidence

Working-tree baseline · source paths · HEAD 8213e6b7

  • app/src/main/assets/manifests/plugins/registry.json
  • plugins/healthconnect/src/main/java/com/hdil/datacollection/plugins/healthconnect/HealthConnectPlugin.kt
  • plugins/healthconnect/src/main/java/com/hdil/datacollection/plugins/healthconnect/HealthConnectManager.kt
  • app/src/main/java/com/hdil/datacollection/MainActivity.kt
  • app/src/main/java/com/hdil/datacollection/availability/RoomWakeAnchorRepository.kt
  • app/src/main/AndroidManifest.xml

References

DTRAC EngineYonsei University · Bongshin Lee’s research team