# Health Connect

**Health Connect** 是 Android 上的一个设备端健康数据平台，让健康、健身与医疗类应用通过一套统一的 API 读写用户的健康与健身数据，并配有标准化的数据模式和集中式的权限控制。数据存储在设备本地，用户通过专门的权限界面逐个授予或撤销各应用的访问权。<sup>[1](https://developer.android.com/health-and-fitness/guides/health-connect/migrate/fit-apis-end-of-service?hl=en)</sup><sup> • </sup><sup>[2](https://support.google.com/android/answer/12201227?hl=en)</sup>

| 关键事实 | 说明 |
|---|---|
| 发布时间 | 2022 年 5 月 11 日，作为面向 Android 应用开发者的平台与 API 发布，与三星（Samsung）合作构建<sup>[3](https://android-developers.googleblog.com/2022/05/introducing-health-connect.html?debug=true)</sup> |
| Play 商店上线 | 2022 年 11 月 11 日，作为面向 Android 13 及更低版本的独立应用上线<sup>[4](https://developer.android.com/health-and-fitness/health-connect/availability?authuser=111)</sup> |
| Android 14 集成 | 随 Android 14 作为系统应用打包；Android 13 的 APK 保留为向后兼容层，功能完全对等<sup>[5](https://developer.android.com/health-and-fitness/health-connect/migration/android-13-to-14?authuser=485)</sup> |
| 设备要求 | SDK 最低支持 Android 8（API 26）；Health Connect 应用需要 Android 9（API 28）或更高版本，并具备 Google Play 服务<sup>[6](https://developer.android.com/health-and-fitness/health-connect/architecture?hl=en)</sup><sup> • </sup><sup>[4](https://developer.android.com/health-and-fitness/health-connect/availability?authuser=111)</sup> |
| 数据存储 | 仅存于设备本地；没有云端 API，接入的应用对自己共享出去的数据各自保留一份副本<sup>[2](https://support.google.com/android/answer/12201227?hl=en)</sup><sup> • </sup><sup>[7](https://wearlink.io/guides/apple-health-vs-health-connect)</sup> |
| 读取窗口 | 默认情况下，应用最多可读取首次授予权限之前 30 天内的数据；`READ_HEALTH_DATA_HISTORY` 权限可延长这一范围<sup>[8](https://developer.android.com/health-and-fitness/health-connect/get-started?hl=en)</sup> |
| 取代 Google Fit | Google Fit 的各套 API（包括 REST API）将于 2026 年弃用；2024 年 5 月 1 日起停止新用户注册<sup>[1](https://developer.android.com/health-and-fitness/guides/health-connect/migrate/fit-apis-end-of-service?hl=en)</sup> |
| 已知限制 | 在设有工作资料（work profile）的设备上不受支持；此类设备上或许可以授予权限，但 API 无法使用，也不会写入任何数据<sup>[4](https://developer.android.com/health-and-fitness/health-connect/availability?authuser=111)</sup> |

## 目的与起源

在 Health Connect 之前，Android 上的健康与健身信息分散在多个应用和设备之中，用户也没有集中式的隐私控制手段。2022 年 5 月 11 日，Google 宣布推出 Health Connect，作为一个统一的平台与 API，与三星合作开发，使开发者只需一套 API，即可在用户许可下跨 Android 设备访问与共享健康及健身数据。<sup>[3](https://android-developers.googleblog.com/2022/05/introducing-health-connect.html?debug=true)</sup> 早期接入的合作伙伴包括 [MyFitnessPal](https://www.edgepedia.org/zh/myfitnesspal)、Leap Fitness 和 Withings，[三星健康](https://www.edgepedia.org/zh/samsung-health)（Samsung Health）、Google Fit 与 Fitbit 则被宣布为采用方。<sup>[3](https://android-developers.googleblog.com/2022/05/introducing-health-connect.html?debug=true)</sup> Google 负责 Android 开发者体验的 Sean McBreen 表示，其目标是在用户同意的前提下跨设备存储与访问健康信息，同时免去样板式的集成代码。<sup>[9](https://techcrunch.com/2022/05/11/google-and-samsung-team-up-to-make-sharing-data-between-health-and-fitness-apps-easier/)</sup>

自 2022 年 10 月发布的 6.22.5 版本起，三星健康即支持与 Health Connect 同步数据，且为双向共享：既向 Health Connect 写入新增或更新的记录，也从其中获取更新。<sup>[10](https://developer.samsung.com/health/blog/en/accessing-samsung-health-data-through-health-connect)</sup>

## 架构

Health Connect 由四个主要组件构成。客户端应用链接通过 [Android Jetpack](https://www.edgepedia.org/zh/android-jetpack) 提供的 Health Connect SDK，由 SDK 经进程间通信（IPC）与 Health Connect APK 通信。该 APK 包含平台面向用户的两个组件：权限管理，即一个供应用请求访问、供用户查看各应用现有授权的界面；以及数据管理，它提供已记录数据的总览，并提供插入、更新与删除功能、用于同步的变更日志，以及平均值、最小值与最大值、总和、计数、总时长等聚合功能。<sup>[6](https://developer.android.com/health-and-fitness/health-connect/architecture?hl=en)</sup>

**交付模式。** 该平台已从一款可安装的应用转变为操作系统的一个组件。在 [Android 14](https://www.edgepedia.org/zh/android-14) 及更高版本上，Health Connect 属于 Android 系统的一部分，无法卸载，可从“设置”中的“安全与隐私”进入。在 [Android 13](https://www.edgepedia.org/zh/android-13) 及更低版本上，它是 Google Play 商店中公开提供的应用。<sup>[4](https://developer.android.com/health-and-fitness/health-connect/availability?authuser=111)</sup> 设备升级到 Android 14 时，健康与健身数据及权限会自动迁移，数据迁移预计不超过 2 小时，其间模块 API 暂停，状态显示为“迁移进行中”（Migration in Process）。<sup>[5](https://developer.android.com/health-and-fitness/health-connect/migration/android-13-to-14?authuser=485)</sup><sup> • </sup><sup>[11](https://support.google.com/android/answer/14119325?hl=en-en)</sup>

## 数据类型与操作

Health Connect 存储并组织多个类别的数据，包括活动、身体测量、周期追踪、生命体征、睡眠与营养，涵盖心率、血糖、血压、体温、步数以及带 GPS 路线的运动记录等类型。<sup>[3](https://android-developers.googleblog.com/2022/05/introducing-health-connect.html?debug=true)</sup><sup> • </sup><sup>[12](https://developer.android.com/health-and-fitness/health-connect/data-types?hl=en)</sup><sup> • </sup><sup>[13](https://developer.android.com/health-and-fitness/health-connect?authuser=8)</sup> 每种数据类型由记录类型（区间型、瞬时型或序列型）、计量单位，以及写入数据时必须提供的必填字段来定义。<sup>[12](https://developer.android.com/health-and-fitness/health-connect/data-types?hl=en)</sup>

应用执行标准的增删改查（CRUD）操作：用 `insertRecords` 写入记录，用 `readRecords` 逐条读取或用 `aggregate` 聚合读取，并按记录 ID 或时间范围删除。<sup>[8](https://developer.android.com/health-and-fitness/health-connect/get-started?hl=en)</sup><sup> • </sup><sup>[14](https://developer.android.com/health-and-fitness/health-connect/delete-data)</sup> 每条记录都带有元数据，包括 Health Connect 分配的唯一标识符、最后修改时间、来源应用的包名、设备信息，以及供同步时解决冲突的客户端提供的 ID 与版本号。<sup>[15](https://developer.android.com/health-and-fitness/health-connect/data-format?hl=en)</sup>

**去重与优先级。** 多个应用可以写入同一类数据，例如步数或距离。对于聚合读取，聚合 API 会依据只有最终用户才能设定的优先级列表对活动与睡眠数据去重，保留优先级最高的应用的数据；其他数据类型则在所有写入应用之间聚合。<sup>[16](https://developer.android.com/health-and-fitness/health-connect/aggregate-data?authuser=0)</sup>

## 权限与隐私模型

访问权按应用、按数据类型分别授予，读权限与写权限在 Android 清单文件中分别声明，并由用户通过 Health Connect 权限界面确认。用户可随时授予或撤销权限，因此应用每次使用前都必须检查权限。<sup>[8](https://developer.android.com/health-and-fitness/health-connect/get-started?hl=en)</sup><sup> • </sup><sup>[17](https://developer.android.com/health-and-fitness/health-connect/write-data?authuser=00&hl=en)</sup> 另有两项权限与数据类型权限分开声明：后台读取（`READ_HEALTH_DATA_IN_BACKGROUND`）与历史读取（`READ_HEALTH_DATA_HISTORY`）。<sup>[12](https://developer.android.com/health-and-fitness/health-connect/data-types?hl=en)</sup>

默认情况下，应用最多可读取首次授予权限之前 30 天内的数据；在没有历史读取权限的情况下读取更早的记录会返回错误。如果用户删除并重装某个应用，所有权限都会被撤销，30 天窗口从新的授权日期重新起算。<sup>[16](https://developer.android.com/health-and-fitness/health-connect/aggregate-data?authuser=0)</sup> 30 天限制不适用于健康档案：在用户许可下，接入的应用可以访问全部医疗历史数据。<sup>[2](https://support.google.com/android/answer/12201227?hl=en)</sup>

## 在 Android 健康生态中的角色

对于 Google Fit 各套 API 中以移动端为主的使用场景，Health Connect 是官方推荐的迁移目标；Google 将于 2026 年弃用这些 API，并于 2024 年 5 月 1 日起停止新用户注册。在计步方面，在 SDK 扩展版本为 20 或更高的 Android 14（API 级别 34）上，Health Connect 可利用低功耗的 `TYPE_STEP_COUNTER` 传感器在设备端计步，最多每分钟向数据库批量写入一次数据；该功能仅在至少一个应用持有 `READ_STEPS` 权限时才会启用。<sup>[1](https://developer.android.com/health-and-fitness/guides/health-connect/migrate/fit-apis-end-of-service?hl=en)</sup><sup> • </sup><sup>[18](https://developer.android.com/health-and-fitness/health-connect/read-data?authuser=3)</sup> 基于云以及服务器到服务器的集成则被引导至 Google Health API，它以账号为中心而非以设备为中心；Health Connect 本身没有直接的云端 API。<sup>[1](https://developer.android.com/health-and-fitness/guides/health-connect/migrate/fit-apis-end-of-service?hl=en)</sup><sup> • </sup><sup>[7](https://wearlink.io/guides/apple-health-vs-health-connect)</sup>

## 安全研究

在第 35 届 USENIX 安全研讨会（USENIX Security Symposium，2026）上发表的一项研究，由克里特理工大学（Technical University of Crete）的 Konstantinos Spyridakis、Ioannis Arkalakis、Michalis Diamantaris 与 Sotiris Ioannidis，伊利诺伊大学芝加哥分校（University of Illinois Chicago）的 Jason Polakis，以及塞浦路斯理工大学（Cyprus University of Technology）的 Panagiotis Ilia 共同完成，报告了对 Health Connect 的首次实证研究。作者采用动态分析发现，受检应用中 60.9% 未能遵守 Health Connect 的界面数据透明性准则，25.6% 未报告健康档案的收集或共享情况，19.6% 通过网络外泄 Health Connect 数据（包括由其他应用生成的记录），某些情形下还将健康信息与姓名、电子邮箱、广告 ID 和电话号码关联起来。论文还描述了一种可绕过现有访问控制机制的隐蔽通信信道。作者已将研究结果披露给 Android 的 Health Connect 团队，后者予以核实，并报告称已加强审核与政策执行。<sup>[19](https://www.usenix.org/conference/usenixsecurity26/presentation/spyridakis)</sup>

## References

1. [Google Fit Migration FAQ, Android Developers](https://developer.android.com/health-and-fitness/guides/health-connect/migrate/fit-apis-end-of-service?hl=en)
2. [Get started with Health Connect, Android Help](https://support.google.com/android/answer/12201227?hl=en)
3. [Introducing Health Connect, a new API for Android app developers to securely access user health data, Android Developers Blog (May 11, 2022)](https://android-developers.googleblog.com/2022/05/introducing-health-connect.html?debug=true)
4. [Check Health Connect availability, Android Developers](https://developer.android.com/health-and-fitness/health-connect/availability?authuser=111)
5. [Migrate Health Connect from Android 13 (APK) to Android 14 (framework), Android Developers](https://developer.android.com/health-and-fitness/health-connect/migration/android-13-to-14?authuser=485)
6. [Review the platform architecture, Android Developers](https://developer.android.com/health-and-fitness/health-connect/architecture?hl=en)
7. [Apple HealthKit vs Google Health Connect for Developers, Wearlink](https://wearlink.io/guides/apple-health-vs-health-connect)
8. [Get started with Health Connect, Android Developers](https://developer.android.com/health-and-fitness/health-connect/get-started?hl=en)
9. [Google and Samsung team up to make sharing data between health and fitness apps easier, TechCrunch (May 11, 2022)](https://techcrunch.com/2022/05/11/google-and-samsung-team-up-to-make-sharing-data-between-health-and-fitness-apps-easier/)
10. [Accessing Samsung Health Data through Health Connect, Samsung Developer](https://developer.samsung.com/health/blog/en/accessing-samsung-health-data-through-health-connect)
11. [About Health Connect integration to Android 14, Android Help](https://support.google.com/android/answer/14119325?hl=en-en)
12. [Health Connect data types, Android Developers](https://developer.android.com/health-and-fitness/health-connect/data-types?hl=en)
13. [Health Connect, Android Developers](https://developer.android.com/health-and-fitness/health-connect?authuser=8)
14. [Delete data, Android Developers](https://developer.android.com/health-and-fitness/health-connect/delete-data)
15. [Health Connect data type format, Android Developers](https://developer.android.com/health-and-fitness/health-connect/data-format?hl=en)
16. [Read aggregated data, Android Developers](https://developer.android.com/health-and-fitness/health-connect/aggregate-data?authuser=0)
17. [Write data, Android Developers](https://developer.android.com/health-and-fitness/health-connect/write-data?authuser=00&hl=en)
18. [Read raw data, Android Developers](https://developer.android.com/health-and-fitness/health-connect/read-data?authuser=3)
19. [Health Hazard, Handle with Care: Investigating the Privacy Risks of Android's Health Connect, USENIX Security 26](https://www.usenix.org/conference/usenixsecurity26/presentation/spyridakis)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Named software products and platforms › Web browsers, app stores, and mobile app platforms › App stores and mobile platforms

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/health-connect

English original: https://www.edgepedia.org/health-connect
