6

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

Should explicitly set 'android:fullBackupContent' to avoid backing up the GCM device specific 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?

Edward Brey
  • 40,302
  • 20
  • 199
  • 253

1 Answers1

0

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)

Nagesh Susarla
  • 1,660
  • 10
  • 10
  • Still broken for me in AS 1.5. More frustratingly, it is broken from the command line gradle lint task. – Jeff Jan 21 '16 at 19:02
  • Can you please tell me the version of the gradle plugin you're using? I cant' repro this with 'com.android.tools.build:gradle:2.0.0-alpha5' – Nagesh Susarla Jan 22 '16 at 18:32
  • I was using version 1.3.1 of the gradle plugin. With that version I couldn't even suppress the error. Updating to 1.5.0 fixed it, although it did introduce a couple of other problems unrelated to this question. – Jeff Jan 23 '16 at 21:56
  • @jeff good to know that it's resolved. Are the other problems issues that you see in lint rules? – Nagesh Susarla Jan 23 '16 at 22:04
  • One of the other problems is a lint rule: https://code.google.com/p/android/issues/detail?id=194705 In my case, it's a service description that's triggering the lint warning. The other problem is with JaCoCo: https://code.google.com/p/android/issues/detail?id=192875 With the latter problem, if I don't apply the workaround to the top-level build.gradle file, I cannot execute any gradle tasks. I was previously trying to avoid updating to 1.5.0 due to this. Hard to believe the plugin was released with this kind of regression. – Jeff Jan 25 '16 at 17:22
  • Are you getting the lint issue with a resource or a description? (description was fixed in 1.5.1 – Nagesh Susarla Jan 26 '16 at 00:23
  • It's for a service that has a translated description. e.g., `` – Jeff Jan 29 '16 at 16:47