emulate nfc card with selected UID on android
Asked Answered
O

1

6

I want to ask 2question about nfc card emulate :

  1. can I emulate nfc card include uid that I select?

  2. I read HCE and don't understand what is the diffrent between HCE and Card Emulation with a Secure Element?.

what are the disadvantage with the Secure Element ? i can't control on the card data/uid and on HCE I can?

Obliteration answered 29/9, 2017 at 7:55 Comment(6)
what do you mean by "uid" ? AID (application Identifier) or UID of emulated tag ?Auriferous
@Auriferous UID I mean the uid of the emulate tag ...Obliteration
Possible duplicate of Get Static NFC Tag Id with HCE modeAuriferous
That not dup. Lock on my 2 questions pleaseObliteration
And not dup on #19764976Obliteration
I am also getting a random card ID, NfcEmulator.startNfcEmulator(cardAid, cardUid,[aesKey]) using Flutter. All I am looking for is to identify this device/user that has tapped. On the other side, I have a PN532 using the Adafruit library. Any ideas?Coumarone
A
2

This subject may be a bit old but I was asking myself the same question. Apparently the UID of the card emulated by your phone is random, but if you want to emulate the UID too you need to overwrite /etc/libnfc-nxp.conf, but it requires root privileges. At least it works (or worked) for MIFARE Classic UID.

You can see more information on this link, slides 37 and + https://smartlockpicking.com/slides/Confidence_A_2018_Practical_Guide_To_Hacking_RFID_NFC.pdf

Album answered 29/5, 2020 at 7:4 Comment(1)
libnfc-nxp.conf does not seem to exist anymore but there is a file called libnfc-nci.conf. It probably doesn't have the option to change the UID anymoreSwound

© 2022 - 2024 — McMap. All rights reserved.