让 Nexus S Android NFC 进入卡模拟模式
有谁能够让 Nexus 进入卡模拟模式吗?
最新的android版本似乎还不支持这个。
Has anyone been able to get the nexus s into card emulation mode?
The latest android release does not seem to support this yet.
This article says it's possible http://www.nearfieldcommunicationsworld.com/2011/02/13/35913/uncovered-the-hidden-nfc-potential-of-the-google-nexus-s-and-the-nokia-c7/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
长话短说:
是的,这是可能的,但前提是你破解了。您发布的文章显示了它是如何完成的。
这样的黑客攻击仅适用于 Nexus-S,并且仅适用于带有 android 2.3.3 的修改手机。一切都依赖于可能随时更改的未记录的框架类。
使用官方的 android SDK 是不可能的。
Long story short:
Yes, it's possible, but only if you hack. The article you've posted shows how it's done.
Such a hack will only work with the Nexus-S, and only on modified phones with android 2.3.3 Everything relies on undocumented framework classes that may change anytime.
With the official android SDK it is not possible.
您可以在这里下载启用卡模拟的 Gingerbread 补丁:
http://groups.google.com/group/android-developers/browse_thread/thread/d5fc35a9f16aa467/dec4843abd73d9e9%3Flnk%3Dgst%26q%3Dsecure%2Belement%2Bdiff%2527s%23dec4843abd73d9e9
模拟卡将为 Mifare经典4K。
Here you can download a patch for Gingerbread who enable card emulation :
http://groups.google.com/group/android-developers/browse_thread/thread/d5fc35a9f16aa467/dec4843abd73d9e9%3Flnk%3Dgst%26q%3Dsecure%2Belement%2Bdiff%2527s%23dec4843abd73d9e9
The emulated card will be Mifare Classic 4K.
关于 Android 上的 NFC 卡模拟存在很多问题。 这篇文章解决了一些疑问。到目前为止,我的所有发现都总结为 另一篇文章。
There are many questions around NFC card emulation on Android. Some doubts were solved in this post. So far all my findinds are summarized in this other post.
我认为卡模拟你指的是P2P模式。 Android 2.3.3+ 对此的支持有限,您可以推送 NDEF 消息并使 phoen 显示为被动 nfc 标签。顺便说一句,您可以从 2.3.3 开始写入和读取。不再有黑客行为。
I think with card emulation you mean the P2P mode. Android 2.3.3+ has limited support for that, you can push NDEF messages and make the phoen appear as it was a passive nfc tag. You can write and read from 2.3.3 on by the way. No more hacking.
我能够在 Nexus S 上启用卡模拟模式。我将在 xda-developers 上发布有关该过程的更多信息。
然而,经过大量的黑客攻击后,我只能在 SE(安全元素)上强制使用一些固定数据。我还强制 SE 有一个固定的 ID。在未受黑客攻击的 Nexus S 上,ID 一直在变化。
当我尝试使用 Arduino 上的 NFC Shield 读取模拟卡的 Nexus S 时,我获得了卡的 ID 和 SE 上的强制数据。然而,当我尝试使用另一台 Nexus S 读取手机时,甚至没有检测到该手机。
在我的尝试中,SE 上的“强制固定数据”只能在 Android 源代码中设置。我还没有找到使用 Android 应用程序将数据写入 SE 的方法。
I was able to enable card-emulation mode on the Nexus S. I will post more information about the process on xda-developers.
However, after a lot of hacking, I was only able to force some fixed data on the SE (Secure Element). I also force the SE to have a fixed ID. On an unhacked Nexus S, the ID changes all the time.
When I tried to read the Card-emulated Nexus S, using an NFC Shield on Arduino, I got the ID of the card and the forced data on the SE. However, when I tried to read my phone using another Nexus S, the phone was not even detected.
The "forced fixed data" on the SE can only be set within the source code of Android, in my attempt. I have not yet found a way to write data to the SE using an android application.