fdr-persistent:ID幸存下来的工厂重置
我需要一个设备标识符,该设备标识符在应用程序被卸载和重新安装后持续存在。 标识符
我知道UUID类提供了使用方法字符串unique = uuid.randomuuid()的
。但是Android指南尚不清楚其范围和持久性。在下一段中,它说:
可重复性和持久性
可重复性和持久性定义了标识符的寿命,并解释了如何重置。常见的重置触发器包括:应用程序内复位,通过系统设置重置,启动重置以及安装时重置。 Android标识符可以具有不同的寿命,但是使用寿命通常与ID重置的方式有关:
仅会话:每次用户重新启动应用程序时都使用新ID。 安装静音:每次用户卸载并重新安装应用程序时,都会使用一个新ID。 FDR-RESET:每当设备的用户出厂时,都会使用一个新ID。 fdr-persistent:ID幸存下来的工厂重置。 可重置性使用户能够创建与任何现有配置文件信息脱离的新ID。标识符持续的时间更长,更可靠地,例如在工厂重置的持续存在的标识符,用户可能会受到长期跟踪的风险越大。如果标识符是重置APP重新安装的,这将降低持久性并为ID重置提供一种手段,即使没有明确的用户控件可以从应用程序或系统设置中重置它。
请告诉我如何使用fdr-persistent:ID幸存下来的工厂重置。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
字符串unique = uuid.randomuuid()。toString();
每次运行时都会为您提供不同的“数字”。每次都会随机生成。据我所知,如果您想要一个fdr-persistent的数字,则必须是序列号或IMEI(如果设备具有SIM卡插槽)。您也可以使用MAC地址,尽管这是非常公开的。
String uniqueID = UUID.randomUUID().toString();
will give you a different "number" each time you run it. That is random generated every time.As far as I know, if you want a FDR-persistent number it has to be either serial number or IMEI (in case the device has as SIM card slot). You could also use MAC address, though this is pretty public.