Android 4.4系统的HCE(基于主机卡仿真)QUOT; processCommandApdu" APDU长度 [英] Android 4.4 hce (host-based card emulation) "processCommandApdu" apdu length

查看:872
本文介绍了Android 4.4系统的HCE(基于主机卡仿真)QUOT; processCommandApdu" APDU长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我与的Nexus 4,Nexus的5和三星Galaxy S4手机测试了我的Andr​​oid的Java应用程序。在测试中,读写器发送的APDU变化的最大长度为252字节。 Nexus的手机收到APDU的成功。在另一方面银河S4手机不能接收的APDU包含超过128个字节。它仅接收前128个字节的发送者的252个字节。

I've tested my Android Java application with Nexus 4, Nexus 5 and Samsung Galaxy S4 phones. In the test, the reader sends APDUs changing in length up to 252 bytes. Nexus phones receive APDUs successfully. On the other hand the Galaxy S4 phone can't receive APDUs which contain more than 128 bytes. It receives only the first 128 bytes of the sender's 252 bytes.

我如何确定设备的最大可接收APDU大小?

How can I determine a device's maximum receivable APDU size?

推荐答案

我发现,星系S4实际收到252个字节。但在连续的2块。进入processCommandApdu功能两次APDU的超过128个字节长。

i found out that galaxy s4 actually receives 252 bytes. but in 2 consecutive chunks. it enters processCommandApdu function twice for apdus longer than 128 bytes.

这篇关于Android 4.4系统的HCE(基于主机卡仿真)QUOT; processCommandApdu" APDU长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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