Questions tagged [hce]

Host Card Emulation is software emulation of an NFC smart card's responses, usually by (but not limited to) a mobile device.

Host Card Emulation (also known as soft-SE or software card emulation) is the emulation of a virtual smart card (that is not backed by an actual smart card chip) using only software. This allows information transfer to happen between a terminal configured to exchange radio information with an NFC card (e.g. contactless smartcard, NFC tag) and an application configured to act or pretend to emulate the functional responses of an NFC card. HCE requires that the NFC protocol be routed to the main operating system on a (mobile) device's application processor instead of routing to a local hardware-based Secure Element (SE) chip configured to respond only as a card, with no other functionality.

The first known system to support HCE was OS 7. Since then, KitKat added platform support.

312 questions
124
votes
14 answers

Can an Android NFC phone act as an NFC tag?

From what I have understood so far, an NFC phone will act as an NFC reader which will read data from an NFC tag. Now my question is, can we switch this around? Can we make an Android NFC phone behave as the tag which an NFC reader will get data…
Joshua Partogi
  • 16,167
  • 14
  • 53
  • 75
42
votes
4 answers

Emulate Mifare card with Android 4.4

I have researched Mifare and other card emulation I have very good knowledge in programming (not Android, but C/C++). I have proxmark and I have made multiple emulation codes for proxmark, so I know how the cards communicate. I don't understand…
user2570174
  • 601
  • 1
  • 6
  • 9
18
votes
2 answers

What's the difference between enableReaderMode and enableForegroundDispatch?

I found two approaches to let an Android app detect and process NFC tags: NfcAdapter.enableReaderMode(activity, callback, flags, extras) and then receive the tag info in the callback. NfcAdapter.enableForegroundDispatch(activity, intent, filters,…
Héctor
  • 24,444
  • 35
  • 132
  • 243
17
votes
3 answers

Can we emulate NFC cards in iOS 13?

Apple just announced new NFC Core API to public. Here is what they said. Core NFC With Core NFC framework, your apps can now support tag writing, including writing to NDEF formatted tags. The framework also provides supports for reading and writing…
Pemassi
  • 612
  • 1
  • 7
  • 20
17
votes
2 answers

Editing Functionality of Host Card Emulation in Android

I'm currently in the process of developing a project for my University course wherein I will be hopefully editing the functionality of the HCE Feature of Android to allow me to set my own UID when emulating a card. Now, i've downloaded the AOSP…
Jay Allen
  • 331
  • 1
  • 2
  • 7
16
votes
1 answer

How to get AID for reader Host based card emulation

I'm trying to do Host card emulation on an Android device using this example using ACR1281U NFC tag reader. This is the kind of application I want to make. As per the Android documentation and the example, it is required to register an AID in the…
Rachita Nanda
  • 4,509
  • 9
  • 42
  • 66
16
votes
5 answers

List of devices support HCE?

As more and more devices have KitKat, I'm trying to compile a list of devices support HCE. Does anyone have the list? Feel free to add comments to contribute to this list. Below is what I have so far: Notes: Not all KitKat devices support HCE. To…
Trung
  • 1,655
  • 2
  • 18
  • 26
12
votes
4 answers

Host-based Card Emulation with Fixed Card ID

Android 4.4 introduced Host-based Card Emulation (HCE). As you know, all NFC cards come with a fixed card ID (NfcAdapter.EXTRA_ID). My office door access usually detects the NFC card ID for the authorization. After flashing my phone to KitKat, I…
Jason
  • 878
  • 2
  • 9
  • 21
11
votes
4 answers

ACR122 - Card Emulation

How can I get the NFC contactless reader ACR122U to behave as a tag (card emulation mode)? The prospectus claims that the device can do card emulation, but the SDK does not seem to provide an example or documentation for this feature. Does anybody…
chalad
  • 141
  • 1
  • 1
  • 7
11
votes
1 answer

Android: card emulation - read ndef message with PN532 nfc module

I have an LG D320n Android phone, elechouse's PN532 nfc module and Stollmann's NFCPlayer with which I can read NFC tags properly. I tested a sample from here: https://github.com/grundid/host-card-emulation-sample It works fine, when I read one…
Uroš Podkrižnik
  • 8,607
  • 5
  • 21
  • 31
9
votes
1 answer

Why Google Pay stops working when my app is installed?

I developed an app which has been widely used together with Google Pay application since two years ago and there was no problem with its HCE NFC feature until the release of Android 9. However, I have received a lot of complaints from Android 9…
vojta
  • 5,591
  • 2
  • 24
  • 64
9
votes
1 answer

How can my app find out which NFC mode is enabled?

I've found that Android devices support three NFC modes: reader/writer, P2P, and card emulation. Is it possible for my app to check which mode is currently enabled?
hoonj
  • 273
  • 3
  • 9
9
votes
2 answers

Android HCE: are there rules for AID?

I'm trying to use an ACR122 NFC reader to select an application emulated in one Nexus 5 using Android Host Card Emulation. However, small AIDs are not recognized. My goal is to use a three byte long AID, as I do in a DESfire card. My first goal is…
Marcos Ramos
  • 135
  • 1
  • 2
  • 4
9
votes
1 answer

Host card emulation on Android (4.4 / KitKat and above) with Nexus 5

I'm trying to emulate an NFC tag with my Nexus 5 according to this document, but my service is never invoke. Should I turn off Android beam? I'd like to emulate a simple tag containing a url. The reader is a Nexus 7 (2012) and I've figured out the…
8
votes
2 answers

NFC Offhost routing to the UICC on the Nexus 5X and the Nexus 6P

I am trying to configure the NFC chipset on the Nexus 5X (bullhead) or Nexus 6P (angler) to use the UICC as NFC offhost route for AIDs I declare in my OffHostApduService. Edit Jan 17, 2016: I've updated this question and also included the Nexus 6P…
Johannes Zweng
  • 133
  • 1
  • 9
1
2 3
20 21