androidandroid-identifiersdeviceid

Are Android Device ID's case sensitive?


I have get my device IDs from the system all in lower case letters. Some Device ID app in PLayStore return the device IDs in upper case only. I've heard that these kind of IDs for iOS are case sensitive.

Are Android device IDs case sensitive?

I appreciate link with documentation as well.

EDIT: To be more precise, as you can see here, the device ID was read

f07a13984eed116a

is that the same device as

F07A13984EED116A ? Or is the last one another device?


Solution

  • According to the source code on line 598, the ANDROID_ID is a hexadecimal string. Thus, the case does not matter and it is case insensitive.

    The documentation also states that it is a hex string.

    [UPDATE]

    There is another function: getDeviceId in TelephonyManager. It reads the IMEI, MEID or ESN, depending on what your phone's hardware delivers to you. The IMEI is decimal, MEID is hexadecimal, the ESN is either decimal or hexadecimal. However, only the value behind is important to distinguish devices, so it is case insensitive.