自 2025 年 3 月 27 日起,我們建議您使用 android-latest-release
而非 aosp-main
建構及貢獻 AOSP。詳情請參閱「Android 開放原始碼計畫變更」。
FeliCa 的主機卡模擬
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Felicity Card (FeliCa) 是一種 RFID 智慧卡系統,也是日本、香港和亞太地區 (APAC) 其他市場的 NFC 標準。這項技術在該地區的採用率持續上升,並廣泛應用於大眾運輸、零售和會員方案服務。在該地區的 Android 裝置中新增 FeliCa 支援功能,可提升裝置的實用性。
實作
HCE FeliCa 需要支援 NFC-F (JIS 6319-4) 標準的 NFC 硬體。
FeliCa 的主機卡片模擬 (HCE) 實質上是 Android 上現有 HCE 實作的平行實作項目;它會在適當情況下為 FeliCa 建立新類別,並盡可能與現有 HCE 實作項目合併。
Android 開放原始碼計畫 (AOSP) 包含下列 Android 元件:
- 架構類別
- 公開 HostNfcFService (便利服務類別)
- @hide NfcFServiceInfo
- 對核心 NFC 架構進行修改
如同大多數 Android 平台功能,製造商會編寫驅動程式,讓硬體與 API 搭配運作。
驗證
請使用 Android 相容性測試套件,確保這項功能正常運作。CTS 驗證器 (NfcTestActivity) 會針對回報 android.hardware.nfc.hcef
功能常數的裝置測試此實作項目。
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間: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"]],["上次更新時間:2025-03-26 (世界標準時間)。"],[],[],null,["# Host card emulation of FeliCa\n\nFelicity Card (FeliCa), an RFID smart card system, is the NFC standard in\nJapan, Hong Kong, and other markets in the Asia-Pacific (APAC) region. It has\nbeen expanding in adoption in that region and is well used among transit,\nretail, and loyalty services. Adding support for FeliCa in Android devices\ndestined for that region improves their usefulness.\n\nImplementation\n--------------\n\nHCE FeliCa requires NFC hardware that supports the NFC-F (JIS 6319-4) standard.\n\nHost Card Emulation (HCE) of FeliCa is essentially a parallel implementation to\nthe existing HCE implementation on Android; it creates new classes for FeliCa\nwhere it makes sense and merges with the existing HCE implementation where\npossible.\n\nThe following Android components are included in the Android Open Source Project\n(AOSP):\n\n- Framework classes\n - Public HostNfcFService (convenience service class)\n - @hide NfcFServiceInfo\n- Modifications to core NFC framework\n\nAs with most Android platform features, manufacturers write the drivers to\nmake the hardware work with the API.\n\nValidation\n----------\n\nUse the [Android Compatibility\nTest Suite](/docs/compatibility/cts) to ensure this feature works as intended. CTS Verifier\n(NfcTestActivity) tests this implementation for devices reporting the\n`android.hardware.nfc.hcef` feature constant."]]