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 技術將內容翻譯成你偏好的語言,但可能會出錯。
NFC 服務
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
NFC 服務模組是 Android 16 發布的可更新 Mainline 模組,這個模組包含下列元件:
- NFC API 類別:
framework-nfc.jar
- NFC Java 架構會處理所有 API:
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 和/或其關係企業的商標或註冊商標。
上次更新時間: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"]],["上次更新時間:2026-10-11 (世界標準時間)。"],[],[]]