【发布时间】:2014-12-17 19:20:19
【问题描述】:
我正在尝试使用 ACR122 NFC 阅读器来选择模拟的应用程序 一台使用 Android Host Card Emulation 的 Nexus 5。然而,小型艾滋病不是 认可。
我的目标是使用三字节长的 AID,就像我在 DESfire 卡中所做的那样。我的第一个目标 只是能够执行 SELECT 命令。
我的测试应用对 AID 使用以下配置:
<host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/service_descr"
android:requireDeviceUnlock="false" >
<aid-group
android:category="other"
android:description="@string/aid_descr" >
<aid-filter android:name="A0A1A2" />
<aid-filter android:name="B0B1B2B3" />
<aid-filter android:name="C0C1C2C3C4" />
<aid-filter android:name="D0D1D2D3D4D5" />
<aid-filter android:name="E0E1E2E3E4E5E6" />
</aid-group>
</host-apdu-service>
如果我运行以下 APDU:
00 a4 04 00 03 a0 a1 a2 00
00 a4 04 00 04 b0 b1 b2 b3 00
00 a4 04 00 05 c0 c1 c2 c3 c4 00
00 a4 04 00 06 d0 d1 d2 d3 d4 d5 00
00 a4 04 00 07 e0 e1 e2 e3 e4 e5 e6 00
我总是收到以下回复:
=> 00 a4 04 00 03 a0 a1 a2 00
<= 6f 00
=> 00 a4 04 00 04 b0 b1 b2 b3 00
<= 6a 82
=> 00 a4 04 00 05 c0 c1 c2 c3 c4 00
<= 90 00
=> 00 a4 04 00 06 d0 d1 d2 d3 d4 d5 00
<= 90 00
=> 00 a4 04 00 07 e0 e1 e2 e3 e4 e5 e6 00
<= 90 00
那么,只有长度大于 5 字节的 AID 才能在 Android 上运行?或者我是 做错了什么?
【问题讨论】:
标签: android nfc mifare apdu hce