android - 当 allowBackup 为 false 时,为什么会出现关于 fullBackupContent 警告的 lint 警告?

标签 android google-cloud-messaging android-backup-service android-lint

对于带有 android:allowBackup="false" 的应用,Android lint 报告:

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

这只是 lint 规则中的错误,还是我真的需要担心 regId 被备份并恢复到另一台设备上?

最佳答案

这确实是一个 bug已在 AS 1.4 中修复。现在,您只会在 allowBackup="true" 或缺少属性(默认为 true)

时收到此 lint 警告

关于android - 当 allowBackup 为 false 时,为什么会出现关于 fullBackupContent 警告的 lint 警告?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31767619/

相关文章:

android - 如果我在我的应用程序中添加 ACTION-VIEW,最终结果是什么?

android - GCM 未通过广播接收器传送

ios - 将 GCM sdk 包含到 cocoapod 项目中

android - geocoder getaddress from name 在 Samsung Galaxy Tab 2 中不起作用?

android - 燃料得到错误的 body react

android - windowBackground 未在设备上显示图像

android - 如何以编程方式在 android 上打开和显示 jp2 文件?

android - 不能使用 GCMRegistrar?

Android BackupAgentHelper 实现不工作

android - 如何删除自动备份数据