gpt4 book ai didi

android - Settings.Secure.ANDROID_ID 在每台设备上始终相同

转载 作者:行者123 更新时间:2023-11-29 16:11:04 27 4
gpt4 key购买 nike

我在使用来自中国的低成本平板电脑时遇到了一个大问题。序列号相同,来自电话的设备 ID 相同,现在我发现每台设备上的 Settings.Secure.ANDROID_ID 也相同。

Settings.Secure.ANDROID_ID是如何生成的?

最佳答案

您可以在这里阅读 http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID

Android ID: A 64-bit number (as a hex string) that is randomly generated on the device's first boot and should remain constant for the lifetime of the device. (The value may change if a factory reset is performed on the device.)

但是在 Androids 开发者博客上,他们会写下您的问题并向您展示解决方案。 http://android-developers.blogspot.in/2011/03/identifying-app-installations.html

ANDROID_ID seems a good choice for a unique device identifier. There are downsides: First, it is not 100% reliable on releases of Android prior to 2.2 (“Froyo”). Also, there has been at least one widely-observed bug in a popular handset from a major manufacturer, where every instance has the same ANDROID_ID.

关于android - Settings.Secure.ANDROID_ID 在每台设备上始终相同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13248481/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com