hce

Android HCE: are there rules for AID?

人走茶凉 提交于 2019-12-18 02:57:54
问题 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 only to be able to do a SELECT command. My test app uses the following configuration for AIDs: <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" android:description="@string/service_descr" android:requireDeviceUnlock=

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

那年仲夏 提交于 2019-12-18 01:19:56
问题 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 process like a simple scan of a NFC tag using Android beam on Nexus 7. In addition I'm a bit confused about aid-filter name. Is there a list of them? I'm sure that I don't understand something. Thanks 回答1: First of all (though this does not directly

Can an Android NFC phone act as an NFC tag?

有些话、适合烂在心里 提交于 2019-12-17 21:27:31
问题 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 from? Thanks for your assistance. 回答1: At this time, I would answer "no" or "with difficulty", but that could change over time as the android NFC API evolves. There are three modes of NFC interaction: Reader-Writer: The phone reads tags and writes to

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

你说的曾经没有我的故事 提交于 2019-12-17 20:37:44
问题 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 touch. Is this possible? If yes, how? 回答1: That depends on what you are trying to achieve and what Android version(s) you are using: Both devices with Android < 4.0 Both devices can send one NDEF message each with no user interaction required. The

List of devices support HCE?

ⅰ亾dé卋堺 提交于 2019-12-17 10:34:36
问题 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 detect HCE support, use this code snippet: boolean isHceSupported = getPackageManager().hasSystemFeature("android.hardware.nfc.hce"); Some people reported that KitKat HCE phones has "Tap & Pay" in NFC Setting. I don't know if using "Tap & Pay" as HCE

Get Static NFC Tag Id with HCE mode

亡梦爱人 提交于 2019-12-17 09:57:46
问题 I'm new in NFC thing, so I tested several phones with calling getTagId() method in HCE mode, and this is the result: device | UID LG G2 | random LG G3 | static S4 | random HTC One Mini | static Xiaomi mi3 | static My questions: Why do some phones have static UID and some do not? Is this chipset related? Is it possible to get a fixed UID? I need it to authenticate the device. On other side, I'm using Kitkat CyanogenMod 11 on Xperia M, but I did not manage to use it for HCE, why? Any documents

Get fixed ID of NFC chip in Android

眉间皱痕 提交于 2019-12-13 10:57:46
问题 As my title, I have a SS Note. When it communicate with a NFC Reader, it generate a fixed ID How can I get it in Android? 回答1: Short answer: You can't. Android does not provide an API to retrieve the anti-collision identifier. However, it really depends on what component generates the fixed ID: NFC controller (unlikely if the ID is fixed): In that case, it's likely that there is no option to retrieve the ID from software. Android NFC stack on the application processor (though a very unlikely

NFC Reader : ACR122U-A9 not holding tags

纵饮孤独 提交于 2019-12-13 06:23:32
问题 The SDK provided along with NFC reader does not work and we are not able to write data / tag using the Tools available with SDK. The main issue is that the data written using another tool does not remain in the device for permanently. When tag is scanned using Android device, reader gets clear and we have to to write data again. I have checked and tried instructions from https://github.com/fkooman/nfcip-java/blob/master/nfcip-java/doc/ACR122_PN53x.txt but it does not work. So, we need help to

Arduino: uint8_t array to string

折月煮酒 提交于 2019-12-13 04:48:39
问题 I have an NFC application built on android that sends a hash as an apdu answer. This is the code I use in my Android app to send the hash: @Override public byte[] processCommandApdu(byte[] arg0, Bundle arg1) { String hash = "e68d3f574009cbbe011150263634c5c0"; return hash.getBytes(Charset.forName("UTF-8")); } Now when I receive it on the Arduino side of things I get this RAW data: 10154561005110253555248485799989810148494949534850255255255255255255255255255 How do I get the hash back from that

NFC host card Emulation(HCE)

半世苍凉 提交于 2019-12-13 04:22:56
问题 I'm actually trying to emulate a NFC card with my android smartphone(on 4.4) and send this information to my NFC reader witch is connected to my Java Application. The goal is to catch an unique ID but my NFC reader do not support peer-to-peer. So the example on https://developer.android.com/guide/topics/connectivity/nfc/hce.html do not work. Thanks for your assistance 回答1: Peer-to-peer mode and Android HCE are two different things. In order to access devices with Android HCE, your reader only