Emulate a smart card on Android when the NFC Reader does not send a “SELECT AID” APDU

前端 未结 1 1678
花落未央
花落未央 2021-01-20 02:11

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.

Is it possibl

1条回答
  •  醉话见心
    2021-01-20 03:05

    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.

    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).

    0 讨论(0)
提交回复
热议问题