当NFC读取器未发送"SELECT AID"消息时,在Android上模拟智能卡. APDU [英] Emulate a smart card on Android when the NFC Reader does not send a "SELECT AID" APDU

查看:412
本文介绍了当NFC读取器未发送"SELECT AID"消息时,在Android上模拟智能卡. APDU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了有关NFC的Android文档,发现它可以模拟NFC标签.但是,这需要您注册要提供的AID.

I have read the Android documentation about NFC and found that it could emulate an NFC tag. However it requires that you register which AID you serve.

如果NFC阅读器未发送"SELECT AID" APDU,是否可以创建一个处理通讯的应用程序?通过创建清单文件中AID为空的应用程序,或创建某种默认应用程序.

Is it possible to create an application that handles communication if the NFC reader does not send a "SELECT AID" APDU? Either by creating an application where the AID in the manifest file is empty, or create some sort of default application.

我不介意应用程序是否必须位于前台,如果有任何帮助的话.

I don't mind if the application has to be in the foreground, if that helps in any way.

谢谢.

推荐答案

否,Android API当前不支持此功能.仅在接收到与注册到系统的AID相匹配的SELECT(按AID/DF名称)命令后,命令才会路由到应用程序.从Android 4.4.4开始,没有机制可以定义全部/默认应用.

No, the Android API currently does not support this. Commands are only routed to applications upon reception of a SELECT (by AID/DF name) command that matches an AID registered to the system. As of Android 4.4.4 there is no mechanism to define a catch-all/default app.

似乎Android设备当前仅使用NFC论坛NCI规范中定义的基于AID的路由机制.但是,NCI规范还定义了基于协议和基于技术的路由.这些路由机制可以指示NFC控制器将所有通信转发给应用处理器/Android系统,而不考虑SELECT(通过AID/DF名称)命令.因此,可能有可能实现经过修改的Andoid系统,该系统允许将所有通信默认路由到应用程序,但是目前尚不清楚Android设备中使用的NFC控制器是否支持基于协议的路由或基于技术的路由机制(对它们的支持似乎是可选的.)

It seems that Android devices currently only use the AID-based routing mechanism defined in the NFC Forum NCI specification. However, the NCI specification also defines protocol-based and technology-based routing. These routing mechanisms could instruct the NFC controller to forward all communication regardless of a SELECT (by AID/DF name) command to the application processor/Android system. Consequently, it might be possible to implement a modified Andoid system that permits default routing of all communication to an app, but it's unclear if the NFC controllers used in Android devices support protocol-based or technology-based routing mechanisms (support for them seems to be optional).

这篇关于当NFC读取器未发送"SELECT AID"消息时,在Android上模拟智能卡. APDU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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