Starting March 27, 2025, we recommend using android-latest-release
instead of aosp-main
to build and contribute to AOSP. For more information, see Changes to AOSP.
NFC Services
Stay organized with collections
Save and categorize content based on your preferences.
The NFC Services module is an optional updatable Mainline module released in
Android 16. This module contains the following components:
- NFC API classes:
framework-nfc.jar
- NFC Java framework handling all the APIs:
NfcNci.apk
- NCI JNI interface:
libnfc_nci_jni.so
- NCI built-in stack interfacing with the NFC HAL:
libnfc_nci.so
Module boundary

Figure 1. NFC Mainline stack architecture.
The NFC Services Mainline APEX com.android.nfcservices
contains the following:
- NFC API surface (Java)
- NFC system APK (Java)
- NFC built-in stack (C++)
The codebase is located at packages/modules/Nfc
.
The main function of this module is included in the APEX package
com.android.nfcservices
.
Dependencies
- HAL implementation dependency on the NFC chip vendor or OEM
- Secure element for all secure service interactions
- Core framework for NFC runtime permission enforcement
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-07-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-03 UTC."],[],[]]