Is GetDeviceId really Uniq?

vb1992

Well-Known Member
Licensed User
Longtime User
If you were to make a voting system, and wanted to only have one vote per day per device, would this be the most unique identifier to use? And can the person change this somehow (rooted..etc)? In case he wanted to spoof it and vote a second, third...etc

GetDeviceId As String

Returns a unique device Id. Returns an empty string if the device Id is not available (usually on wifi only devices).
 

pluton

Active Member
Licensed User
Longtime User
GetDeviceId is their IMEI number.

As you know IMEI number is unique in each device
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
If you were to make a voting system, and wanted to only have one vote per day per device, would this be the most unique identifier to use? And can the person change this somehow (rooted..etc)? In case he wanted to spoof it and vote a second, third...etc

GetDeviceId is their IMEI number.

As you know IMEI number is unique in each device

Yes, GetUniqueID SHOULD return an UNIQUE identification number, but not all devices/Makers implement this...
This is true for non-gsm (phone) devices. Those with GSM capability, usually return the IMEI, that is "hardcoded" to the device, and should therefore be unique and un-mutable...NOT TRUE...
Those of us that also leark at XDA-Developers have for sure heard of Some ROM Flashing that changed the devices IMEI...
Still, it is not in the reach of the "normal" user to change the IMEI at will...So it is Still your best bet.
 
Upvote 0

Oswald

Member
Licensed User
Longtime User
a unique number needed...

what is unique for each device for a voting system.
GetDeviceId is a good idea but if it is not exist for some of the wifi only devices, what can use instead on it?
any idea?

bravox
 
Upvote 0

DouglasNYoung

Active Member
Licensed User
Longtime User
Every device should have an 'AndroidID' which should be unique(ish).
I had assumed that this would be hard coded to each device, and use it for user validation. But after a factory reset on my HTC One it has now changed. I have concluded that this ID is probably soft generated at factory reset based on time.
No matter how its generated it must offer the best option, as its available on all devices and the chances of stumbling across duplicate IDs is negligible!

Douglas
 
Upvote 0
Top