为什么皮棉约fullBackupContent警告警告时allowBackup是假的?皮棉、fullBackupContent、allowBackup

2023-09-05 08:36:58 作者:吉祥三宝

对于的应用程序的Andr​​oid版本:allowBackup =假,Android的皮棉报道:

For an app with android:allowBackup="false", Android lint reports:

应该明确设置。'机器人:fullBackupContent,以避免备份的GCM设备特定REGID

Should explicitly set 'android:fullBackupContent' to avoid backing up the GCM device specific regId.

这是刚刚在皮棉规则中的漏洞,还是我真的需要关注的REGID得到备份并恢复到其他设备?

Is this just a bug in the lint rule, or do I really need to be concerned about the regId getting backed up and restored onto another device?

推荐答案

这的确是一个的错误,固定在1.4 。现在,你只能得到这个皮棉警告,当 allowBackup =真正的或属性丢失(默认为true)

This was indeed a bug that was fixed in AS 1.4. Now you only get this lint warning when allowBackup="true" or the attribute is missing (which defaults to true)