Host card emulation (HCE)
Lets an app act as a contactless card or key that other readers tap.
In one line
Can act as a contactless card or key when you pick it as default
Lets an app act as a contactless card or key that other readers tap.
A phone that emulates a card can hold payment, transit or access credentials without the OS wallet. Opening it to apps changes who controls tap to pay.
What it can and can't do
What the user does: You choose the app in Settings under Tap and pay, then tap a reader
It can
- Answer readers with a stored card, ticket or key
- Hold payment, transit or access credentials without the system wallet
- Run on Android with no Google approval
It cannot
- Become the default payment app without you choosing it
- Work on iPhone without Apple's entitlement
- Replace Apple Pay as the default on iPhone outside the EU
How it differs between platforms: Android lets any app do this since 2013; iPhone began in the EU and reached some other countries from iOS 18.1.
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Supported | Behind a flag |
| First version | Android 4.4 (API 19) | iOS 17.4 |
| Permission or entitlement | BIND_NFC_SERVICE, NFC (normal) | com.apple.developer.nfc.hce; com.apple.developer.nfc.hce.iso18092.nfcf.systemcode |
| Protection level | normal | entitlement |
| How access is granted | install | entitlement |
| What the user sees | User picks default payment app in Settings > Tap & pay | Apple Pay stays default outside the EU; EU users can choose |
| How long it lasts | Until changed | Entitlement scope per app |
| How to take it back | Settings > Connected devices > NFC > Contactless payments | Remove app; Settings > Wallet |
| Store policy | Play: payments apps follow Payments policy | Entitlement limited to developers in the EEA, with a licensing agreement |
| API | HostApduService, CardEmulation, aid-group in apduservice.xml | CardSession (CoreNFC), NFCPresentmentIntentAssertion |
| Notes | Android 10 can set the default in Settings; offhost secure element supported. | EEA only at first; iOS 18.1 adds the NFC and SE platform outside the EU for some countries; scope for 2026 should be re-checked. |
Data you get
What comes back: APDU exchange
Shape: event
How often: per tap
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
APDU | binary | bytes | 255 data bytes (short APDU) | raw |
Technical limits
- iOS needs an Apple entitlement, commercial agreement and fees
- Android requires the user to pick the default payment app for payments AIDs
The story
What it is
Lets an app act as a contactless card or key that readers can tap.
For you
You hold your phone to a reader and the door opens or the bus lets you on. The app does this without the Wallet app opening. You can set which app answers in Settings.
For makers
A company can build a custom tap card for a loyalty scheme, transit or access control and skip the system wallet. It runs in software on Android with no approval. On iPhone it is limited to approved regions and developers.
Where you see it
| Type | Example | Apps |
|---|---|---|
| travel | A city bus app holds a ticket you can tap at the gate. | None named |
| enterprise | An office badge app opens doors when you tap your phone. | None named |
| payments | A bank app sends a one time code to the shop's reader. | None named |
| automotive | A car sharing app taps the car to unlock. | None named |
| education | A student card app opens the library gate. | None named |
| shopping | A loyalty app earns points with a tap at the till. | None named |
| security | A hotel app holds a room key that expires after your stay. | None named |
Risks
- Relay attacks
- Cloned credentials
- Default app confusion
Android and iPhone in short
- Android: Android 10 lets you pick the default tap app in Settings, and it can use the phone's secure chip.
- iPhone: iPhone first opened this in the EEA. iOS 18.1 added the NFC and secure element platform outside the EU for some countries. Scope for 2026 should be re-checked.
What the platform says
- Google: Host card emulation. Let your app act as a contactless card, such as a payment or transit card, without special hardware.
Good uses and abuse
Legitimate uses
- Bank wallets
- Transit passes
- Car keys
Known abuse
- Relay attacks
- Credential cloning
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 4 of 5 | How revealing the data is |
| Utility | 4 of 5 | How useful it is to honest apps |
| Friction | 3 of 5 | How much the user has to do |
| Fingerprint bits | 1 | Rough identifying entropy, when known |
History
- 2013-10, Android 4.4 (API 19): HCE introduced
- 2024-03, iPhone iOS 17.4: HCE based contactless payments opened to apps in the EEA
- 2024-10, iPhone iOS 18.1: NFC and Secure Element platform for in app contactless in several countries
Related capabilities
Related
- Secure Element and NFC platform access. Can use the phone's secure chip only with special approval
- Default contactless payment app. Can answer when you tap to pay, after you pick it as the default wallet
- Wallet payment sheet (Apple Pay, Google Pay). Can charge you through Apple Pay or Google Pay without seeing your card number
Same idea on the web
- Web NFC. Can scan NFC tags and save to them when your phone touches one
Sources
How well checked: Based on official documentation.