vladimir13
Lurker
Hi,
I need a device identifier that persists after the app is uninstalled and reinstalled. I know that UUID class provides an identifier with the method
String uniqueID = UUID.randomUUID().toString();
but Android guideline is unclear about its scope and persistence. In next paragraph it says:
Resettability and persistence
Resettability and persistence define the lifespan of the identifier and explain how it can be reset. Common reset triggers include: in-app resets, resets via System Settings, resets on launch, and resets on installation. Android identifiers can have varying lifespans, but the lifespan is usually related to how the ID is reset:
Please tell me how can I use FDR-persistent: The ID survives factory reset.
I need a device identifier that persists after the app is uninstalled and reinstalled. I know that UUID class provides an identifier with the method
String uniqueID = UUID.randomUUID().toString();
but Android guideline is unclear about its scope and persistence. In next paragraph it says:
Resettability and persistence
Resettability and persistence define the lifespan of the identifier and explain how it can be reset. Common reset triggers include: in-app resets, resets via System Settings, resets on launch, and resets on installation. Android identifiers can have varying lifespans, but the lifespan is usually related to how the ID is reset:
- Session-only: A new ID is used every time the user restarts the app.
- Install-reset: A new ID is used every time user uninstalls and reinstalls the app.
- FDR-reset: A new ID is used every time the user factory-resets the device.
- FDR-persistent: The ID survives factory reset.
Please tell me how can I use FDR-persistent: The ID survives factory reset.