hce

Is HCE bi-directional communication possible?

笑着哭i 提交于 2021-02-10 15:12:11
问题 According to this solution, by using the sample app for card emulation and card reader: we can setup a HCE card (card emulation) in "Device A", and send the data to a reader (card reader) in "Device B". What if I want to continue this process by sending a "amount" from "Device B" back to "Device A"? Is this achievable? Note: Both devices are 4.4+. 回答1: HCE use ISO-7816-4 standard so you communicate with APDU APDU process is: Reader send command (with optional data) to card. Card respond (with

Host-based Card Emulation - Trigger a reader app when HCE is read on reader device

北城以北 提交于 2021-02-05 11:21:25
问题 NFC tags can trigger an NFC reader app available on the phone, but HCE does not trigger any reader app. However, if I first open the reader app, then it works normally and, hence, can read the HCE emulated tag. I need a solution where HCE can open or prompt to choose the reader app. Is this possible with HCE? Why does Android not prompt to open an NFC reader app when detecting a HCE device? 回答1: No, a HCE app on one Android device cannot be used to trigger (launch) a reader app on another

Host-based Card Emulation - Trigger a reader app when HCE is read on reader device

不羁的心 提交于 2021-02-05 11:21:10
问题 NFC tags can trigger an NFC reader app available on the phone, but HCE does not trigger any reader app. However, if I first open the reader app, then it works normally and, hence, can read the HCE emulated tag. I need a solution where HCE can open or prompt to choose the reader app. Is this possible with HCE? Why does Android not prompt to open an NFC reader app when detecting a HCE device? 回答1: No, a HCE app on one Android device cannot be used to trigger (launch) a reader app on another

emulate nfc card with selected UID on android

℡╲_俬逩灬. 提交于 2021-01-27 12:11:21
问题 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 Secure Element ? i can't control on the card data/uid and on HCE I can? 回答1: This subject may be a bit old but I was asking myself the same question. Apparently the UID of the card emulated by your phone is random, but if you want to emulate the UID too

Can we emulate NFC cards in iOS 13?

泪湿孤枕 提交于 2020-06-08 03:39:17
问题 Apple just announced new NFC Core API to public. Here is what they said. Core NFC With Core NFC framework, your apps can now support tag writing, including writing to NDEF formatted tags. The framework also provides supports for reading and writing tags using native protocols such as ISO 7816, MIFARE, ISO 15693, and FeliCa. For more information, see the Core NFC framework documentation. https://developer.apple.com/ios/whats-new/ So, now we have write and read API, and I read all documentation

Can Android Pay be disabled in-app?

浪子不回头ぞ 提交于 2020-05-27 07:01:46
问题 I am looking for a way to suppress Android Pay app for one activity. iOS has requestAutomaticPassPresentationSuppressionWithResponseHandler method, which allows exactly this - suppressing Apple Pay while the app is in the foreground - I am trying to achieve this on Android. I have implemented foreground dispatch. This works fine for most NFC tags - tag gets detected in the activity and then is ignored. However, when contactless payment machine is detected, Android Pay app gets triggered

Host Card Emulation on Nexus 7 2012

一曲冷凌霜 提交于 2020-02-02 08:36:26
问题 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

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

你离开我真会死。 提交于 2020-01-23 03:27: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); }

Host Card Emulation Android 4.4

拈花ヽ惹草 提交于 2020-01-14 03:39:10
问题 Now that Android supports Card Emulation on the Nexus 5 with Android 4.4, is it likely that some apps may become available that allow me to effectively duplicate a smartcard (e.g. Smart Card that opens doors in my office) and use my phone in their place? Would be pretty handy. Cheers! 回答1: No, this is not likely. Typically, copying/cloning arbitary cards using Android HCE is not possible. Many access control systems use the card ID (UID) to identify the card (or even to make an access control

To get Application ID for NFC based Identification System

↘锁芯ラ 提交于 2020-01-05 04:00:22
问题 I am working on nfc based Identification System. I am storing data on android device and at the time of Identification The nfc reader reads the data from android device for this thing the android device should run in HOST based card emulation based on ISO/IEC 14443-3 and for the deployment the nfc reader send the Application ID to identify service as per Google Developer NFC documentation so how i get the application id for custom application 回答1: According to the documentation: "Specifically