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

missing com.android.nfc.cardemulation.HostEmulationManager in android.jar

I want to debug my HostCardEmulation App in eclipse. To see which select AID command is send from the reader, I want to step into Android source code: but I can't find com.android.nfc.cardemulation.HostEmulationManager.java (class) in android.jar.
ThomasK
  • 11
  • 4
0
votes
1 answer

No supported card terminal found ARC1281U nfc card reader

I'm trying to do Host card based emulation,HCE using this example for ACR 1281U Nfc card reader. The tutorial Suggest to use nfctools to read logs when connected to the reader b using the command java -cp "C:\DATA\setups\ACR1281U-C1 SDK…
Rachita Nanda
  • 4,509
  • 9
  • 42
  • 66
0
votes
0 answers

NFC HCE on Google Nexus 7 (2012) not working with ACR122 reader

I write and app for connecting with android system by NFC, tested on Google Nexus 4 and 5, and all works fine but with Google Nexus 7 (2012) not work. Can you help me. Code from application on Java: if (cardTerminal.isCardPresent()) { …
0
votes
1 answer

When NFC is set to HCE, the Android repeatedly shows logs about polling and AID registration

I use HCE mode as this link shows, but this seems to generate problems on my device. When I run the app in my phone, Android repeatedly prints the following messages to the debug log. Is this normal? D/NfcService(2868): NFC-C ON E/BrcmNfcJni(2868):…
xzmxzl
  • 1
  • 1
0
votes
1 answer

Android NFC/HCE service returns 0x6F00 (No precise diagnosis) when selecting AID

I have created a HCE service with an AID of F0123412349999. According to the Android HCE documentation, I need to send a SELECT APDU so the HCE service will know which service to redirect the following messages to. here is the APDU I am sending to…
evilfish
  • 661
  • 8
  • 30
0
votes
1 answer

NFC Beam from phone to desktop

I need to send .doc file from my Nexus 5 phone to a Windows 8 desktop (with an ACR122U-A9 NFC reader connected to it). Similar projects I have found use LLCP/SNEP protocol (such as Android Beam that can be found in this link:…
sulyakas
  • 35
  • 4
0
votes
1 answer

Encrypted logical channel in Host Card Emulation

HCE implementations only support a single logical channel and it is by default not encrypted. Does anyone know, is it possible to establish a encrypted logical channel in HCE or any other way to make host card emulation more secure. Thanks
0
votes
1 answer

How to check my NFC TAG ID (UID)?

It is possible to know others NFC TAG ID when we used to the APK & TAG each phones. For example, Phone A and B try to tag. Then Phone A can know Phone B's NFC TAG ID (4 Bytes - HEX). But I wanna know how to know my NFC TAG ID on my phone. Not used…
user3497103
  • 87
  • 1
  • 3
  • 7
0
votes
1 answer

Apdu error while send TgInitAsTarget command to the PN532 (ACR122u)

I'm trying to send the TgInitAsTarget command to the PN532 in card-emulation mode. When i try to send this: FF000000 27 D48C 05 0400 123456 20 000000000000000000000000000000000000 00000000000000000000 00 00 I get an apdu error: Exception in thread…
S.Pols
  • 3,414
  • 2
  • 21
  • 42
0
votes
1 answer

ACR122u card-emulation mode send PN532 commands

I just read this answer about how to put my ACR122U in card-emulation mode. I do understand the purpose but how do you need to send the commands to the ACR122u. As far as I know FF000000 means: FF [Class] 00 [INS] 00 [P1] 00 [P2] I just can't…
S.Pols
  • 3,414
  • 2
  • 21
  • 42
0
votes
1 answer

PKCS file system in Android

I would like to create an android application. In this application I would like to create a PKCS file system (like in Java Card applet) (not involving secure element) and perform cryptographic operations through APDU commands. Is it possible? Any…
0
votes
2 answers

HCE support for NXP PN544 Controller

I have been trying to implement HCE on NXP PN544 but i am not able to succeed in achieving it. While my R&D i didn't find any documentation which clearly states that whether this chip support HCE or not? Can any one help me if NXP PN544 Controller…
Ashish
  • 79
  • 1
  • 10
0
votes
1 answer

HCE: Why can I get fail return code in Sony Xperia ZL?

I have a problem with HCE. I downloaded a sample code from https://github.com/grundid/host-card-emulation-sample. I build it and put it in google Nexus 5. I send the APDU to select AID and it returns successful return code. But I can't get…
0
votes
1 answer

Raspberry NXP EXPLORE-NFC cannot detect Android Phone

I have installed a NXP NFC-ExploreNFC in Raspberry, when I run the sample card_polling program, it can detect my JIS X 6319-4 compatible card, however, it cannot detect my Samsung Note II (NFC is enabled). Is there any extra setup required in…
0
votes
1 answer

HCE Service is not running

I installed aide from playstore and copied the code from google to test the HostApduService. My app is shown under Tapp and Pay but if I send a CAPDU with my identive cloud 4700f reader my phone LG G2 (android 4.4.2) is not responding anything. My…