1 What is Android's only indication?
device_id, MAC address, Serial number, android_id, CPU serial numbers, physical MAC addresses
2 What are the advantages and disadvantages, and how to obtain
device_id
Advantages: True device identification, according to different mobile device return Imei,meid or ESN code.
Disadvantage: There is no such identifier on the non-handheld device; On a few devices, the implementation is vulnerable and will return junk data
Mac Address
Pros: Return to wifi_mac_address or bluetooth_mac_address
Disadvantage: If WiFi or Bluetooth is off, you may not be able to return mac_address
Serial number
Advantage: Non-handheld devices also have this logo
Cons: Available on version 2.3
android_id
Benefits: 64bit data generated and stored at first start of the device
Disadvantage: Multiple devices may have the same android_id if the number changes after the device is wipe
CPU Serial Number
Advantages:
Disadvantage: Some systems can not get the CPU serial number, the result is "0000000000000000"
Storage location:/proc/cpuinfo
Command view: adb shell Cat/proc/cpuinfo
Physical MAC Address
Advantages:
Disadvantages:
Storage location: File path/sys/class/net/wlan0/address
Command view: adb shell cat/sys/class/net/wlan0/address
Android Unique ID get