自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
Android 运行状况
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Android Health 模块用于管理和访问 Android 中的健康数据,可帮助开发者专注于为用户提供价值。
设计初衷
- 用户希望在一个地方查看自己的所有健康信息。
- 但是开发者发现,由于生态系统碎片化现象严重,所以与 Android 平台上的健康平台集成是一件很难的事情。
模块边界
此模块可在 Android 14 及更高版本中使用。packages/modules/HealthFitness
下的所有文件和目录都处于 Android Health 模块的作用域内。
Android Health 模块 (packages.modules.HealthFitness
) 是一个 APEX 格式的 APK,适用于 Android 14 及更高版本。
依赖项
如果您自定义 Android Health,则必须确保您的实现满足与自定义关联的依赖项要求。
如果您要自行开发健康数据管理设置界面,则需要针对每个 Android 平台主要版本更新和修改这些要求。
自定义
您可以使用资源叠加层来替换主题和资源。
您可以使用 Android Health 模块公开的 API 提供自己的数据管理界面。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-26。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-26。"],[],[],null,["# Android Health\n\nThe Android Health module manages and accesses health\ndata in Android, so developers can focus on providing value to users.\n\nMotivation\n----------\n\n- Users want to see all of their health and wellness information in one place.\n- Developers find it difficult to integrate with health platforms on Android due to significant ecosystem fragmentation.\n\nModule boundary\n---------------\n\nThis module is available in Android 14 and higher. All\nthe files and directories under `packages/modules/HealthFitness` are in the\nAndroid Health module scope.\n\nPackage format\n--------------\n\nThe Android Health module (`packages.modules.HealthFitness`) is an APK\nin [APEX](/docs/core/ota/apex) format\nand available for Android 14 and higher.\n\nDependencies\n------------\n\nIf you customize Android Health, you must ensure your implementation\nmeets the dependency associated with your customization.\n\nIf you develop your own health data management settings screens, expect these\nrequirements to be updated and amended for each major Android platform release.\n\nCustomize\n---------\n\nYou can override themes and resources using resource overlays.\n\nYou can provide your own data management UI using the APIs exposed by the\nAndroid Health module."]]