hce

Android ACR122U NFC integration

纵饮孤独 提交于 2019-12-06 06:48:25
问题 See NFC reader "SELECT (by AID)" APDU is not routed to Android device on debugging and eventual results. TL;DR the reader might simply be defunct. I have ACR122U reader connected to my Android device. My final goal is to use another Android device in HCE mode to enable data communication between the devices. Currently I have a problem with integrating with ACR122U reader. I use lib acssmc-1.1.1.jar provider by the vendor. This is the code I currently have (omitting the example code of opening

The PN532 configured as target has been released by its initiator

放肆的年华 提交于 2019-12-06 05:35:25
问题 I'm trying to put my PN532 in card-emulation mode. When i send the TgGetData command the error i get an error back from the reader. 1 . Read register {(byte)0xFF,0x00,0x00,0x00,0x08, (byte)0xD4, 0x06, 0x63, 0x05, 0x63, 0x0D, 0x63, 0x38 } RESPONSE :: D507 07 07 15 9000 2 . Update registers byte xx = (byte) 07; byte yy = (byte) 07; byte zz = (byte) 15; xx = (byte) (xx | 0x004); yy = (byte) (yy & 0x0EF); zz = (byte) (zz & 0x0F7); 3 . Write register {(byte)0xFF,0x00,0x00,0x00,0x11, (byte) 0xD4,

Emulate Mifare card with Android 4.4

試著忘記壹切 提交于 2019-12-06 04:59:14
问题 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 currently, does android enable full card emulation. I have researched this for about 3 days now, and the conclusion is there is no one constant pattern. Some people say it is possible, some say it is not. I looked through android API and the Host-based

Use NFC device as NFC tag

≡放荡痞女 提交于 2019-12-05 20:52:36
I want my android device to act as NFC tag. Is it possible to use NFC device as NFC tag? How can I achieve that? I have done read/write tag, beam data between devices. Michael Roland Depending on your NFC device, this may be possible. However, I do not agree with kamituel that this is being done by multiple applications through Android Beam. Android Beam uses NFC's peer-to-peer mode which (while it may have a similar effect) is not the same as using one device as a reader ( reader/writer mode ) and one device as a tag. Peer-to-peer mode uses a different protocol stack for communication than

Host Card Emulation on Nexus 7 2012

邮差的信 提交于 2019-12-05 19:12:42
I'm trying to test out the new Host Card Emulation features in KitKat, but the only KitKat device with NFC that I have at the moment is a 2012 Nexus 7. It does support card emulation through Google Wallet, and I can send and receive data to the two Master Card AIDs that it uses. However, when I try to implement my own HostApduService to handle communications with my own custom AID, Android doesn't route any APDUs to my service. I then tried to call CardEmulation.isDefaultServiceForAid to see if my service is the one that should handle my custom AIDs. When I include the CardEmulation class in

Accessing card-emulation mode on USB-NFC-Reader

萝らか妹 提交于 2019-12-05 12:53:23
I have an Android tablet with Android 4.2. This tablet does not have NFC hardware. However I have an external USB reader: ACR 1252U , that came with an Android library . I have asked some general questions of my setup here . Now that it gets more specific, I need to ask another one. In this previous question I found out, that I can use the ACS Android library to access the readers card emulation capabilities. My first goal is to make that reader emulate an NFC tag, that contains a URL. Any NFC-capable Android phone should be able to scan this emulated tag and automatically open the browser. I

Android 4.4 hce (host-based card emulation) “processCommandApdu” apdu length

别来无恙 提交于 2019-12-05 04:36:05
问题 I've tested my Android Java application with Nexus 4, Nexus 5 and Samsung Galaxy S4 phones. In the test, the reader sends APDUs changing in length up to 252 bytes. Nexus phones receive APDUs successfully. On the other hand the Galaxy S4 phone can't receive APDUs which contain more than 128 bytes. It receives only the first 128 bytes of the sender's 252 bytes. How can I determine a device's maximum receivable APDU size? 回答1: Currently there is no method to find the maximum receivable APDU

Can't exchange data between Android phone and Arduino with NFC module, using HCE

扶醉桌前 提交于 2019-12-04 20:23:06
Please, I need any help to solve my problem. I can't exchange data normally between Android (4.4.2) phone and Arduino with NFC module, using HCE. I took example from Android samples, and slightly changed to return just IMEI number. public byte[] processCommandApdu(byte[] commandApdu, Bundle extras) { if (Arrays.equals(SELECT_APDU, commandApdu)) { String data = ((TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId(); return ConcatArrays(data.getBytes(), SELECT_OK_SW); } else { return UNKNOWN_CMD_SW; } } On Arduino side, my code is: void loop(){ Serial.println("Waiting for

Android 4.4.2, PN532 NFC reader and NFC Card emulation

左心房为你撑大大i 提交于 2019-12-04 20:16:02
I have developed a system that can read NFC tag using a reader with PN532 chip . It works ok. I can read Mifare Classic and Mifare Ultralight tag. Now I'd like to use a Nexus Tablet with Android 4.4.2 to emulate a tag. I have no experience with android development but I think it is possible. I have set NFC communication in the Nexus Tablet but I think I have to download or write some application to emulate a Tag and an NDEF communication. What is the easiest way? Michael Roland That depends on what Nexus tablet you have: Nexus 7 (first generation/2012 version): This device uses NXP's PN544 NFC

Android Host Card Emulation with Arduino

余生颓废 提交于 2019-12-04 19:13:51
I am trying to build a communication between my Nexus4 HCE and Arduino PN532 Chip. on The Serial Monitor of Arduino,I could see some data transaction happening. But on ANdorid side, I get CET4T: Unsupported Class byte (0x60) CET4T: Unsupported Class byte (0xA0) BrcmNfcNfa﹕ UICC[0x0] is not activated Below is my apduservice.xml <host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android" android:description="@string/servicedesc" android:apduServiceBanner="@drawable/ic_launcher" android:requireDeviceUnlock="false" > <aid-group android:category="other" android:description="