nfc

Checksum Error while provisioning Android Lollipop

痴心易碎 提交于 2019-12-17 15:37:40
问题 I get the message Couldn't use the admin app due to a checksum error. Contact your IT department when using the code below. Basically you have two Android Lollipop devices. One device is unprovisioned (Factory reset) and the other has this programming app on it. The programming app sends an NFC command to the unprovisioned device to tell it to start provisioning using the data you pass to it. There are three fields required (APK Location, APK file checksum, and package name) as per

How to find out whether an NFC tag is still in range of an Android now?

☆樱花仙子☆ 提交于 2019-12-17 10:55:28
问题 As I know when an Android phone gets an NFC tag touched, it will send an event (NDEF_DISCOVERED intent), but Android doesn't seem to care whether this tag is staying in place. My solution is to lock the screen and then unlock it. If the tag is still there, I can read it again. This is obviously a silly way. Is there any smarter way to do it? 回答1: As part of the NFC intent received by your activity, you will also receive a tag-handle ( Tag object) in an intent extra: Tag tag = intent

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

NFC card emulation Android

匆匆过客 提交于 2019-12-17 10:34:35
问题 the Nexus S device NXP PN544 NFC controller supports not only SWP for UICC based SE, but also the S2C (aka NFC-WI) for the external, e.g. micro SD card SE. Does anybody know how this can be enabled and what it means for the SD card? That is not relevant for the Google Nexus S (there is not SD card slot), but the NFC version of the Samsung Galaxy S II comes already with the SD card slot and here this will be a question. I have tried to search for that and even the S2C standard seems to be

Secure element Access Control on ICS 4.0.4

南楼画角 提交于 2019-12-17 10:33:07
问题 I updated my Android phone to 4.0.4 and i noticed that a new file nfcee access.xml appeared in the system folder. The idea of the file as far as i understood is the keep a list of signatures, and allow access to the SE and related intends only to the packages that are signed with one of this signatures. So far in this list is of course the signature of the Google Wallet. Does anybody know how would be the process in future to enter this list? Do you need to ask for permission directly Google?

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

Locking mechanism of Mifare Classic 1K

天涯浪子 提交于 2019-12-17 09:55:29
问题 The procedure of Mifare Classic 1K is Polling for tags Authenticate those tags If authentication succeded then read/write. I already completed those procedures and also read and write data from specific sectors. Command for Polling for tags is new byte[] { (byte) 0xFF, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x04, (byte) 0xD4, (byte) 0x4A, (byte) 0x01, (byte) 0x00 } Authentication command is new byte[] { (byte) 0xFF, (byte) 0x86, (byte) 0x00, (byte) 0x00, (byte) 0x05, (byte) 0x01,(byte)

Bluetooth pairing without user confirmation

谁都会走 提交于 2019-12-17 05:40:25
问题 Can I pair two devices over Bluetooth without a need to confirm this in user interface, accept to pair this devices. Can I exchange some extra data over, for example NFC, and then safely pair those two devices over Bluetooth without any extra user action? 回答1: This need is exactly why createInsecureRfcommSocketToServiceRecord() was added to BluetoothDevice starting in Android 2.3.3 (API Level 10) (SDK Docs)...before that there was no SDK support for this. It was designed to allow Android to

How to use ISO7816 select command with DESfire Ev1 card?

烈酒焚心 提交于 2019-12-14 03:52:50
问题 I have a DESfire Ev1 version 1.3 card and I'm trying to select a file using ISO7816 apdu style. I have one file, with aid A0 A1 A2 and I can select it using both native or wrapped mode: Native: -> 5A A0 A1 A2 <- 00 Wrapped: -> 90 5A 00 00 03 A0 A1 A2 00 <- 91 00 However, if I try to select it using ISO7816 style, I always get a file not found error: ISO7816: -> 00 A4 04 00 03 A0 A1 A2 00 -> 6A 82 When using ISO apdu, is the AID in a different format? How can I select this AID using it? 回答1:

Android NFC Writing doesn't work with 2 activities but works with 1

两盒软妹~` 提交于 2019-12-14 03:27:49
问题 I found a tutorial on how to read and write a NDEF NFC tag via a Toggle Button. I wanted 2 separate buttons and after several days and some help (I am a newbie on Android), I have now managed to do that. I have 2 buttons, related to 2 activities. Clicking on read button will open the read activity and read my tag. Clicking on the write button will open the write activity, pop up the keyboard. I type the text I want to write but when I touch the tag, it sends me back to my main activity where