Android ID is the common name for the value an app reads from Settings.Secure.ANDROID_ID, also called the SSAID. The Android reference documents it as a 64-bit number expressed as a hexadecimal string that, on Android 8.0 and later, is unique to each combination of app-signing key, user and device. Older descriptions of it as a permanent serial number for the phone are out of date. Since the 8.0 change, two apps signed with different keys on the same phone see different values, the same app sees a different value for each user profile on the device, and the value can change after a factory reset or if the app's signing key changes. Understanding the identifier means understanding those scopes, because they are what the platform uses to limit how far any one app can follow a device.
How Android Scopes Its Identifiers
Android's guidance on unique identifiers describes every identifier along several axes. Scope says which apps can read the same value: a single app, a group of related apps, or every app on the device. Resettability and persistence say what event produces a new value: an app restart, a reinstall, a factory reset, or nothing at all. Uniqueness describes the chance that two devices share a value. The guidance pairs these properties with a privacy principle: the wider the scope and the longer the persistence, the greater the risk that the identifier enables tracking, so apps should choose the most restrictive identifier that satisfies their need.
Against that framework the scoped device identifier that ANDROID_ID has become is a middle case. It is shared among apps signed with the same key, which can let related apps recognise the same device-and-user scope. The signing key, rather than a developer's name or account, determines this boundary. It persists across reinstalls of an app signed with the same key, unlike a Firebase installation ID that resets on reinstall. Factory reset and signing-key changes are documented reset conditions, with additional rules for older installations and instant apps.
App, User and Device Boundaries
The three boundaries determine what an app actually observes.
| Boundary | Effect on ANDROID_ID since Android 8.0 |
|---|---|
| App-signing key | Apps signed with different keys receive different values on the same device and user; apps from one developer sharing a key receive the same value |
| User profile | Each user on a multi-user device appears as a separate device, so the same app sees a different value per user, including work profiles |
| Device | A factory reset generates new values; the reference also notes the value may change if an APK signing key changes |
| Instant apps | An instant app receives a value scoped to itself, generated on first install and reset when the user clears the instant app |
One transitional rule still surprises developers: for apps installed before a device was upgraded to Android 8.0, the value changes if the app is uninstalled and reinstalled after the upgrade, because the platform migrates from the old device-wide value to the new scoped one at that point. Google suggests key-value backup for developers who need continuity across that event. On versions before 8.0 the identifier was generated once at device setup and remained constant for the user's lifetime on the device, so descriptions of older versions should not be applied to modern scoped values.
ANDROID_ID Compared With Advertising and Hardware IDs
Android exposes several identifiers, and the official guidance ties each to a purpose.
- Advertising ID. A user-resettable identifier available to all apps through Google Play services and intended only for advertising and ads-related measurement. Users can reset it or opt out of personalisation, after which apps receive a string of zeros. Google Play policy forbids connecting it to persistent device identifiers such as the SSAID, and forbids linking a new value to an old one after a reset without consent.
- Hardware identifiers. IMEI, device serial number and similar values are non-resettable and device-scoped. Since Android 10 they are available only to device or profile owner apps, apps with carrier privileges, or apps holding a privileged permission. MAC addresses have been restricted since Android 6 and are randomised per network on newer versions.
- Firebase installation ID and app-generated GUIDs. Scoped to an app instance; reinstall or data clearing can produce a new value, while backup and restoration policy must also be considered. The guidance recommends these for almost every non-advertising need, including analytics, crash reporting and cross-device installation.
- App set ID. Shared across apps from one developer for analytics, provided the data is not used for advertising.
Android ID vs advertising ID is the comparison that matters most in practice. The advertising ID is broader in scope but under user control; ANDROID_ID is narrower in scope but not resettable by the user short of a factory reset. The platform's rules pull in the same direction for both: use the advertising ID for ads and nothing else, and prefer app-scoped identifiers over SSAID wherever possible.
Where the Identifier Is Used
Within its scope the value can serve as a relatively stable reference for a developer's own apps: recognising a device-and-user scope across apps sharing a signing key or de-duplicating telemetry. It is an identifier, not a secret; it should not be used as the sole material for an encryption key or as proof of authentication. Fraud and abuse teams sometimes combine it with other signals to detect repeated account creation from one device, though the guidance points them to the Play Integrity API for that purpose because it provides integrity verdicts about the app and device environment. Those verdicts still require interpretation and do not identify a person. In virtualised or cloud-hosted Android environments, provisioning, saved state and system implementation matter. Cloning persistent state can carry identifiers with it; creating two instances from the same clean base image does not by itself mean they share an ANDROID_ID.
Limits and Misconceptions
The identifier does not identify a person, and it does not identify a device globally. Treating it as an unrestricted cross-app tracking key ignores its signing-key scope, and as a permanent serial, which factory resets and signing-key changes contradict. Applications should not treat any reported value as an infallible global identity or assume modified environments obey stock Android behaviour. Root access or modified system images can present arbitrary values, so the identifier proves nothing about device integrity. Apps should treat it as one scoped, moderately persistent signal, and should expect it to change on exactly the events the reference lists.