如何在不读取 android 上的 nfc 的情况下获取 phone 的唯一 nfc id?

How to get the unique nfc id of a phone, without reading nfc on android?

我知道如何获取 Nfc 唯一 ID,当 NFC Reader,

private Tag tag;

//Read success.
protected void onNewIntent(Intent intent) {
   super.onNewIntent(intent);

   tag = intent.getParcelableExtra(NfcAdapter.EXTRA_TAG);

   byte[] id = tag.getId();

}

但我想要即使我不读取NFC卡。

如何在不读取 android 上的 nfc 的情况下获取 NFC id?

谢谢。

移动设备 phone 作为标签(卡模拟)确实有一个随机的 UID(4 字节)。不支持调整特定的 UID。

因此,每次关闭外部场并再次打开时,移动设备 phone 都会作为不同的 UID。

此致,