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
5
votes
1 answer

Android responds to PN532 InListPassiveTarget

I have a weird situation where I'm trying to toggle my PN532 between tag emulation and tag reader mode. The reader goes for ~70ms and the tag emulation runs for ~600ms. What I want to happen is that when I put my Android device near the antenna,…
John Kalberer
  • 5,690
  • 1
  • 23
  • 27
5
votes
2 answers

The main difference between RFID and NFC when emulating an NFC tag on ACR122U

I have some problems with the overview of the NFC standards. What i know is that: ISO/IEC 14443 is the standard for proximity cards and use RFID as communication protocol; ISO/IEC 18092 (NFCIP-1) is the NFC standard and is based on ISO/IEC…
S.Pols
  • 3,414
  • 2
  • 21
  • 42
5
votes
3 answers

Application not visible in Tap and Pay

What is the key thing to adjust in NFC HCE application to get it visible under settings NFC Tap and Pay Following code returns true for the app, so it's capable of payment: boolean isDefault = CardEmulation …
Niko
  • 8,093
  • 5
  • 49
  • 85
5
votes
2 answers

Is it possible to with one touch two Android devices exchange data via NFC?

I want to create an application to exchange information between 2 devices via NFC. I know how to make one mobile send information to the other using Android Beam. What I don't know is how two phones could send data to each other with just one…
diego.goncalves
  • 189
  • 3
  • 8
5
votes
4 answers

Making Host Card Emulation work for payment

I've been using StackOverflow for years now, always finding answers to my questions before even asking them, but today I'm stuck. As I happen to have a working POS terminal (the EMV Chip&Pin kind), I wanted to look into host card emulation. The…
Philippe
  • 63
  • 2
  • 5
5
votes
1 answer

Control full APDU with NFC Software Card Emulation on Android

I'm busy with an app to emulate normal APDU communication on a Nexus 7 with CM10.1 to an ACR122U102 reader/writer. I found this blog about software card emulation and wrote an app to make my device (the nexus) appear as a card. Now I'm trying to…
Fons
  • 155
  • 1
  • 9
5
votes
2 answers

How to card emulate with ACR122U-A9

I have a ACR122U-A9, I want to card emulate with it. I ask who has done this point? Can you give me some suggestions? Now I have also other problems, when I put the white smartcard on this NFC reader, LED blinks only once. But when I put the phone…
user1938143
  • 1,022
  • 2
  • 22
  • 46
5
votes
2 answers

Making NFC/Beam more automatic

I am adding NFC/Beam capabilities to my app and I would like it to work as automatically as possible. I would like to get rid of the "Touch To Beam" screen from the sender and the "New tag scanned" screen from the receiver. Basically, I want it to…
user306517
  • 523
  • 8
  • 21
4
votes
1 answer

Payment through HCE

I've been working on the app where I need to implement tap & pay. I am able to connect the HCE service with NFC terminal. Now my question is what are the next steps, for making actual payment with it? I've searched everywhere but I could not find a…
Jay
  • 497
  • 6
  • 17
4
votes
0 answers

How to write NDEF in host card emulation in flutter (for android)

How do I write NDEF messages for host card emulation in flutter? I´m writing a wallet app for passes (for android) and I need it to have NFC functionality (I can't use google smart tap) The problem I´m having is that I tried to write with the…
ungali
  • 51
  • 1
4
votes
1 answer

NFC reader "SELECT (by AID)" APDU is not routed to Android device

I have an ACR122U NFC reader/writer connected to my Windows machine with ACR122 driver installed. I try to use javax.smartcardio API to send an SELECT (by AID) ADPU to my Android device (which should be in HCE mode). This is my code: TerminalFactory…
cliffroot
  • 1,839
  • 17
  • 27
4
votes
2 answers

Is there a way to check if the last message in Host Card Emulation was received by the terminal?

In my Android app I have an implementation of HostApduService. Here is a snippet of it's implementation: public final class MyHostApduService extends HostApduService { private boolean disconnected = false; @Override public byte[]…
Patrick
  • 33,984
  • 10
  • 106
  • 126
4
votes
1 answer

Are NFC tags and NFC cards the same thing?

Are NFC tags and NFC cards the same thing? The Android documentation mentions both. "NFC tags" when reading simple tags, but then says "NFC card" in the HCE documentation. Can I assume these are the same?
Esper
  • 93
  • 1
  • 8
4
votes
1 answer

emulate nfc card with selected UID on android

I want to ask 2question about nfc card emulate : can I emulate nfc card include uid that I select? I read HCE and don't understand what is the diffrent between HCE and Card Emulation with a Secure Element?. what are the disadvantage with the…
4
votes
1 answer

MIFARE Ultralight emulation on Android

I need to create a simple Android application that emulates a Mifare Ultralight card. It should only "sends" data (to be taken from an editable buffer) when is read and write on the same buffer when it receives data. But I don't know how to emuate…
Marco Sanfilippo
  • 293
  • 3
  • 19
1 2
3
20 21