如何检查我的 NFC TAG ID (UID)? [英] How to check my NFC TAG ID (UID)?

查看:50
本文介绍了如何检查我的 NFC TAG ID (UID)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们习惯了 APK &标记每部手机.例如,电话 A 和 B 尝试标记.然后电话 A 可以知道电话 B 的 NFC TAG ID(4 字节 - HEX).但我想知道如何知道我手机上的 NFC TAG ID.没用过其他手机.如果您知道任何其他信息,请给我您的建议.

It is possible to know others NFC TAG ID when we used to the APK & TAG each phones. For example, Phone A and B try to tag. Then Phone A can know Phone B's NFC TAG ID (4 Bytes - HEX). But I wanna know how to know my NFC TAG ID on my phone. Not used other phones. If you know any other information, please give me your advice on that.

推荐答案

手机不一定有固定的防碰撞标识符(NFC Tag ID",你叫它).例如,它可以有一个防冲突标识符,在每次激活时随机分配(例如打开外部 HF 场、打开电话等).它还可以有一个甚至多个不可变的防冲突标识符(例如来自一个或多个安全元素).

A phone does not necessarily have a fixed anti-collision identifier ("NFC Tag ID", as you call it). For instance, it could have an anti-collision identifier, that is randomly allocated on every activation (e.g. external HF field is turned on, phone is turned on, etc.) It could also have one or even multiple immutable anti-collision identifiers (e.g. from one or more secure elements).

这取决于几个因素:

  • 该手机的 NFC 控制器上是否附加了安全元件?
  • NFC 控制器是否配置为向外界公开附加的安全元素?
  • 手机是处于卡模拟模式还是被动点对点模式(或两种模式的组合防冲突阶段)?
  • NFC 控制器是否直接将一个卡模拟实体(例如安全元件或主机控制器)暴露给外部世界,还是使用 NFCEE 路由组合一个或多个模拟实体?
  • Is a secure element attached to the NFC controller in that phone?
  • Is the NFC controller configured to expose an attached secure element to the outside world?
  • Is the phone in card emulation mode or in passive peer-to-peer mode (or in a combined anti-collision phase for both modes)?
  • Does the NFC controller expose exactly one card-emulating entity (e.g. a secure element or the host controller) directly to the outside world or does it combine one or more emulating entities using NFCEE routing?
  • Etc.

当您提到APK"时,我猜您指的是 Android 平台(尽管您拒绝回答我的问题).在较新的 Android 设备(尤其是那些支持基于主机的卡模拟的设备)和根本不使用卡模拟的 Android 设备上,外界可见的防冲突标识符 (UID) 通常不是静态的,并且在每个设备上都会发生变化.激活或每次重新启动设备时(似乎存在一些例外).特别是,对于 NFC 点对点模式,该标准要求使用每会话随机标识符.因此,UID 在那些典型情况下没有多大用处.

As you mention "APK" I'm guessing that you refer to the Android platfrom (though you refused to answer my question on that). On newer Android devices (particularly those that support Host-based Card Emulation) and on Android devices that do not use card emulation at all, the anti-collision identifier (UID) visible to the outside world is typically not static and changes either on every activation or on every reboot of the device (some exceptions seem to exist). Particularly, with NFC peer-to-peer mode, the standard mandates the use of a per-session random identifier. Thus, the UID would not be of much use in those typical cases.

一般来说,Android提供任何 API 来从设备中检索当前使用的防碰撞标识符.通常,随机标识符是在 NFC 控制器中创建的,因此 Android 系统甚至不会知道它.

In general, Android does not provide any API to retrive the currently used anti-collision identifier from within the device. Usually, the random identifier is created within the NFC controller, so the Android system would not even know about it.

关于安全元件芯片的不可变 ID,普通 Android 不包含访问安全元件的公共 API,因此同样适用于此类安全元件的任何识别信息.

With regard to immutable IDs of secure element chips, vanilla Android does not contain public API to access secure elements, so the same applies to any identifing information of such secure elements.

这篇关于如何检查我的 NFC TAG ID (UID)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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