Effective in 2026, to align with our trunk stable development model and ensure platform stability for the ecosystem, we will publish source code to AOSP in Q2 and Q4. For building and contributing to AOSP, use android-latest-release. The android-latest-release manifest branch will always reference the most recent release pushed to AOSP. For more information, see Changes to AOSP.
Google 会使用 AI 技术将内容翻译成您偏好的语言。AI 翻译可能包含错误。
NFC 服务
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
NFC 服务模块是 Android 16 中发布的一个可选且可更新的 Mainline 模块。此模块包含以下组件:
- NFC API 类:
framework-nfc.jar
- 处理所有 API 的 NFC Java 框架:
NfcNci.apk
- NCI JNI 接口:
libnfc_nci_jni.so
- NCI 内置堆栈与 NFC HAL 进行通信的接口:
libnfc_nci.so
模块边界

图 1. NFC Mainline 堆栈架构。
NFC 服务 Mainline APEX com.android.nfcservices 包含以下内容:
- NFC API 接口 (Java)
- NFC 系统 APK (Java)
- NFC 内置堆栈 (C++)
代码库位于 packages/modules/Nfc。
此模块的主要函数包含在 APEX 软件包 com.android.nfcservices 中。
依赖项
- HAL 实现依赖于 NFC 芯片供应商或 OEM
- 适用于所有安全服务交互的安全元件
- 强制执行 NFC 运行时权限的核心框架
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-10-11。
[[["易于理解","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):2026-10-11。"],[],[]]