is Card Emulation supported in Android with NFC?

一曲冷凌霜 提交于 2019-12-24 09:48:55

问题


I need to communicate over NFC (ISO14443) with some card reader.

when i put my nexus S on Reader, logcat shows messages

02-18 13:24:00.691: DEBUG/NfcService(278): SE FIELD ACTIVATED 
02-18 13:24:00.691: DEBUG/NfcService(278): Broadcasting Intent

or theese , when card reader is trying to read

02-18 13:25:00.718: DEBUG/NFC JNI(278): > AID DETECTED
02-18 13:25:00.718: DEBUG/NFC JNI(278): > AID: 0102030405060708090000
02-18 13:25:00.722: DEBUG/NfcService(278): Card Emulation message
02-18 13:25:00.722: DEBUG/NfcService(278): Broadcasting com.android.nfc_extras.action.AID_SELECTED

I,ve tried to handle theese intents with no success;

Is there any way to communicate with reader, without modyfing firmware?

Or may be i can get access to secure element from native code (C) ?

The reader i use supports NFCA, NFCB and RFID technologies.


回答1:


Card emulation (EDIT: via the secure element) is NOT supported in Android. You could try connecting to the reader peer to peer, or (depending on how much control you have over the reader) you may be able to have the reader act as a tag, and send information back and forth to the phone.

The secure element has been made off limits to Android developers. This was partially due to security reasons, and partially because of issues arising from the question of who gets to access the memory on the tag.

BlackBerry does support card emulation though.



来源:https://stackoverflow.com/questions/9340101/is-card-emulation-supported-in-android-with-nfc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!