Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlatformDeviceId.getDeviceId changes with the app release #39

Open
ilmanowar opened this issue Jun 29, 2023 · 1 comment
Open

PlatformDeviceId.getDeviceId changes with the app release #39

ilmanowar opened this issue Jun 29, 2023 · 1 comment

Comments

@ilmanowar
Copy link

Hello,
I supposed that PlatformDeviceId is a static ID connected to the device only. But strangely, I saw it changing after I installed an upgraded version of my apk app.
I was looking for an ID that depends on the hardware only, not randomly created. So far, I did try several device id libraries, and all give a pseudo-random ID which changes with a new application.
Therefore, I would ask, is this working as intended?
Thanks.

@memoriasIT
Copy link

Please note that on Android 8 and above, the Android ID is not unique per device, but also per signing key the app was built with:

On Android 8.0 (API level 26) and higher versions of the platform, a 64-bit number (expressed as a hexadecimal string), unique to each combination of app-signing key, user, and device.
The value may change if a factory reset is performed on the device or if an APK signing key changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants