我有一个设计个性化标签的应用程序,当它被安卓手机检测到时,会启动另一个包含一些内容的应用程序.一切正常,我知道如何制作只读 nfc 标签.问题是,我想让 NFC 标签只能由其他应用程序的用户读取.但我也希望,如有必要,修改这些标签以便重写.但我想阻止用户自己做.这就是为什么 ndef.makeReadOnly() 不适合我..
I have an app that design personalized tags that, when it is detected by an android phone, launches another app with some content. It all works fine and I know how to make a read only nfc Tag. The problem is, I would like to make a NFC Tag only readable by users of the other app. But I also want , if necessary, modify these tags in order to be rewritten. But I want to prevent from users to do themselves. that's why a ndef.makeReadOnly() is not appropriate for me..
有人可以帮我吗???
这在一定程度上取决于您将使用的确切标签.Android 支持的用于存储 NDEF 消息的标准 NFC 论坛标签类型没有为此定义特定功能.所以 Android API 也不提供它.只有makeReadOnly()
,这在大多数情况下使标签不可逆地只读.
It depends somewhat on the exact tags you will be using. The standard NFC Forum tag types for storing NDEF messages that Android supports have no specific functionality defined for this. So the Android API does not provide it either. There is only makeReadOnly()
, which in most cases makes the tag irreversibly read-only.
但是,当您查看标签内实际实现所需 NFC 功能的芯片时,它们通常会提供更多功能.这些额外的功能可能包括写入的访问控制,允许您随意配置芯片.
However, when you look at the chips inside the tags that actually implement the required NFC functionality, they often provide more functions. These extra functions may include access control for writing, allowing the chip to be configured like you want.
一些示例(全部由 NXP 制造,因为我最熟悉这些示例):
Some examples (all manufactured by NXP, as I am most familiar with those):
这些标签中的大部分通常都可以在线销售.不过,您将不得不在 Internet 上搜索一下以收集有关如何进行配置的所有信息.大多数情况下都有可用的 PC 软件.
Most of these tags are generally available for sale on-line. You will have to hunt a bit on the internet to gather all the information on how the configuration has to be done, though. There is PC software available in most cases.
这篇关于Android:如何使 NFC 标签只为用户准备好并且对我可写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!