Nexus 7 2012上的主机卡仿真 [英] Host Card Emulation on Nexus 7 2012

查看:101
本文介绍了Nexus 7 2012上的主机卡仿真的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试测试KitKat中的新主机卡仿真功能,但目前我唯一具有NFC功能的KitKat设备是2012 Nexus7.它确实支持通过Google电子钱包进行卡仿真,并且我可以发送和接收数据到它使用的两个主卡AID.

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.

但是,当我尝试实现自己的HostApduService以使用自己的自定义AID处理通信时,Android不会将任何APDU路由到我的服务.然后,我尝试调用CardEmulation.isDefaultServiceForAid来查看我的服务是否应该处理我的自定义AID.当我在代码中包含CardEmulation类时,应用程序崩溃.

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 my code, the application crashes.

logcat处,有一个条目显示此设备不支持卡仿真". 2012 Nexus 7不支持此功能吗?它具有所有必需的硬件,并且在使用Google电子钱包时可以模拟卡.

Looking at logcat, there's an entry that says "this device does not support card emulation." Is there a reason why the 2012 Nexus 7 does not support this? It has all the necessary hardware and does emulate cards when using Google Wallet.

推荐答案

Nexus 7(2012)上用于Google电子钱包的卡仿真是使用嵌入式安全元素"(本质上是智能卡芯片)完成的.但是,不幸的是,该Nexus 7上的NFC控制器在Android 4.4 Kitkat下不支持HCE.

Card emulation for Google Wallet on the Nexus 7 (2012) is done using an embedded "Secure Element" (essentially a smart card chip). However, the NFC controller on that Nexus 7, unfortunately, does not support HCE under Android 4.4 Kitkat.

这篇关于Nexus 7 2012上的主机卡仿真的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆