• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

FDR-persistent: The ID survives factory reset.

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:

  • 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.
Resettability gives users the ability to create a new ID that is disassociated from any existing profile information. The longer, and more reliably, an identifier persists, such as one that persists across factory resets, the greater the risk that the user may be subjected to long-term tracking. If the identifier is reset upon app reinstall, this reduces the persistence and provides a means for the ID to be reset, even if there is no explicit user control to reset it from within the app or System Settings.

Please tell me how can I use FDR-persistent: The ID survives factory reset.
 
Back
Top Bottom