android 设备 UUID 在什么情况下会发生变化?

Under what conditions does android device UUID change?

我想知道设备 UUID 在什么情况下发生变化?我听说它会在恢复出厂设置和 android 升级时发生变化,但我没有找到任何证据或记录来源。

谢谢,

阅读此处 Documentation

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

关于 Android 更新时的 UUID 行为网上没有太多文档,但您可以查看 This answer

  • In some rare circumstances, this ID may change. In particular, if the device is factory reset a new device ID
    • may be generated. In addition, if a user upgrades their phone from certain buggy implementations of Android 2.2
    • to a newer, non-buggy version of Android, the device ID may change. Or, if a user uninstalls your app on
    • a device that has neither a proper Android ID nor a Device ID, this ID may change on reinstallation.