3

I need to know how to get the phone UID when read by an NFC reader. The reader has to uniquely identify my phone so that it can be used to open a door.

Do you know if this is possible? I've been looking and have not found how.

In the event that it isn't possible, what do you recommend?

3
  • Have you seen this using NfcAdapter.EXTRA_ID? stackoverflow.com/questions/9797030/… Commented Aug 13, 2013 at 20:57
  • Are you looking for Android ID of the device or the ID of the NFC adapter? Commented Aug 14, 2013 at 5:15
  • I'm looking for the Android ID of the device Commented Aug 15, 2013 at 10:16

2 Answers 2

1
+50

The current Android does not support tag emulation, so I must assume you will be using some kind of P2P protocol when talking to your door. If the phone sees the door as a passive unit, thats the same.

A key insight in your plan is that you should encrypt the communication to your door, and that the encryption key is really what matters. Any unique id you come up with can be faked, no matter where it comes from.

I'd put the encryption key somewhere online in a properly stored file. So then you are also covered once you loose your phone or it just breaks.

My approach would be to make a Google App Engine app which lets you sign in using your Android (email) account; i.e. an app which signs the user in using the built-in Android accounts. Put the encryption key there, possibly behind yet another password.

Sign up to request clarification or add additional context in comments.

1 Comment

I will give you the bounty as it addresses my understanding of the question. It's a shame one has to use an app to do this!
-1

There are different device specific numbers which you may use.

IMEI = International Mobile Equipment Identifyer, a number phones have specific for their hardware

Mobile phone number, this is depending on your mobile subsciption

There is also the ANDROID_ID, which is a unique number for a Android device. However there appears to be a glitch in V2.2

See also these articles:

How to find serial number of Android device?

Android Tablet Serial Number (not IMEI/DEVICE_ID/SERIAL)

Device SERIAL NUMBER

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.