I am trying to build a RFID tag emulator on android using Flutter framework. The RFID reader that I am working with uses the UID for identification. It then sends this UID back to a server and authenticates whether it is a valid RFID or not. I know that Android devices cannot generate a fixed UID from NFC controller.
What I want to achieve is when the RFID reader reads the UID, I want to get the same UID from the android code and send this to my backend from the Client side. In this flow, the UID sent by RFID reader and the Client will be cross checked and this would complete the auth.
Is there any way through which I can get the same UID that the RFID reader read from my phone?
Note: I am trying to get the UID of my own device and not some other Tag or Card when the RFID reader triggers the NFC controller.
I looked into the following repos and articles but couldn't find anything: https://github.com/underwindfall/NFCAndroid https://github.com/ryanhz/nfc_emulator https://www.zeromolecule.com/blog/host-card-emulation-hce-with-android-and-flutter/ https://developer.android.com/guide/topics/connectivity/nfc/hce