【问题标题】:Device SERIAL NUMBER [duplicate]设备序列号 [重复]
【发布时间】:2011-04-05 10:53:30
【问题描述】:

可能重复:
How to find serial number of Android device?

如何获取设备序列号

【问题讨论】:

标签: android


【解决方案1】:

an excellent post on the Android Developer's Blog discussing this

建议不要使用TelephonyManager.getDeviceId(),因为它不适用于非手机(如平板电脑)的 Android 设备,它需要 READ_PHONE_STATE 权限,并且它不能在所有手机上可靠运行。

您可以使用以下方法之一:

  • Mac 地址
  • 序列号
  • ANDROID_ID

这篇文章讨论了每种方法的优缺点,值得一读,以便您找出最适合您使用的方法。

【讨论】:

    【解决方案2】:

    从 Telephony 读取 Settings.Secure.ANDROID_ID。 "这是设备首次启动时生成并存储的 64 位量"

    【讨论】:

      猜你喜欢
      • 2011-03-28
      • 1970-01-01
      • 2021-06-29
      • 1970-01-01
      • 1970-01-01
      • 2020-07-03
      • 2015-01-18
      • 2016-04-04
      • 1970-01-01
      相关资源
      最近更新 更多