AndroidIDDeviceIdentifier

The AndroidIDDeviceIdentifier class provides a way to retrieve the Android ID of the device. This ID is unique to each device and is used as a device identifier.

Note: The Android ID is 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. However, there are a few limitations:

  • The value may change if a factory reset is performed

  • For devices with multiple users, each user has their own Android ID

  • For apps installed in an Android work profile, the Android ID value is different from the personal profile

See also

Properties

Link copied to clipboard
open override val id: suspend () -> String

Returns the device's Android ID.