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-08-29 UTC.
[null,null,["Last updated 2025-08-29 UTC."],[],[],null,["# NFC Services\n\nThe NFC Services module is an optional updatable Mainline module released in\nAndroid 16. This module contains the following components:\n\n- NFC API classes: `framework-nfc.jar`\n- NFC Java framework handling all the APIs: `NfcNci.apk`\n- NCI JNI interface: `libnfc_nci_jni.so`\n- NCI built-in stack interfacing with the NFC HAL: `libnfc_nci.so`\n\nModule boundary\n---------------\n\n**Figure 1.** NFC Mainline stack architecture.\n\nThe NFC Services Mainline APEX `com.android.nfcservices` contains the following:\n\n- NFC API surface (Java)\n- NFC system APK (Java)\n- NFC built-in stack (C++)\n\nThe codebase is located at [`packages/modules/Nfc`](https://cs.android.com/android/platform/superproject/+/android16-release:packages/modules/Nfc/).\n\nPackage format\n--------------\n\nThe main function of this module is included in the APEX package\n`com.android.nfcservices`.\n\nDependencies\n------------\n\n- HAL implementation dependency on the NFC chip vendor or OEM\n- Secure element for all secure service interactions\n- Core framework for NFC runtime permission enforcement"]]