본문 바로가기
프런트엔드/Mobile

Getting Unique Device ID of an Android Smartphone

by david100gom 2015. 6. 22.
728x90

참고 URL : http://technet.weblineindia.com/mobile/getting-unique-device-id-of-an-android-smartphone/

http://stunstun.tistory.com/184

1) The IMEI: (International Mobile Equipment Identity)

Advantages of using IMEI as Device ID:

  • The IMEI is unique for each and every device.
  • It remains unique for the device even if the application is re-installed or if the device is rooted or factory reset.

Disadvantages of using IMEI as Device ID:

  • IMEI is dependent on the Simcard slot of the device, so it is not possible to get the IMEI for the devices that do not use Simcard.
  • In Dual sim devices, we get 2 different IMEIs for the same device as it has 2 slots for simcard.


2) The Android ID

Advantages of using Android_ID as Device ID:

  • It is unique identifier for all type of devices (smart phones and tablets).
  • No need of any permission.
  • It will remain unique in all the devices and it works on phones without Simcard slot.

Disadvantages of using Android_ID as Device ID:

  • If Android OS version is upgraded by the user then this may get changed.
  • The ID gets changed if device is rooted or factory reset is done on the device.
  • Also there is a known problem with a Chinese manufacturer of android device that some devices have same Android_ID.

3) The WLAN MAC Address string

Advantages of using WLAN MAC address as Device ID:

  • It is unique identifier for all type of devices (smart phones and tablets).
  • It remains unique if the application is reinstalled

Disadvantages of using WLAN MAC address as Device ID:

  • If device doesn’t have wifi hardware then you get null MAC address, but generally it is seen that most of the Android devices have wifi hardware and there are hardly few devices in the market with no wifi hardware.
4) The Bluetooth Address string

Advantages of using Bluetooth device address as Device ID:
It is unique identifier for all type of devices (smart phones and tablets).
There is generally a single Bluetooth hardware in all devices and it doesn’t gets changed.

Disadvantages of using Bluetooth device address as Device ID:
If device hasn’t bluetooth hardware then you get null.



728x90

'프런트엔드 > Mobile' 카테고리의 다른 글

안드로이드 - Web Interface 연동  (0) 2013.06.27
ImageView src 와 background 차이  (1) 2013.06.19

댓글