Android Unique ID get

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.