3

In accordance with the documentation

Data backup is not guaranteed to be available on all Android-powered devices.

How could I check in my code if it is supported or no? I've tried to check what happens on my own device, but calling dataChanged says nothing except log message Backup pass but e=true p=false (explanation of the message is here). The same happens with adb shell bmgr backup my.package.name. I would like to inform my application user if it is not supported.

Community
  • 1
  • 1
LA_
  • 19,823
  • 58
  • 172
  • 308
  • Samsung Note 2 is not backing up files (FileBackupHelper). Sharedpreference is being backed up tho. I would like to know whether I made a mistake in my code or it is physically impossible to back up files in Galaxy Note 2 device – coolcool1994 Dec 14 '14 at 14:31
  • @coolcool1994, please star the issue I've raised about it - https://code.google.com/p/android/issues/detail?id=81612 – LA_ Dec 14 '14 at 14:40

1 Answers1

0

The backup APIs are available on any device starting with Froyo, but unfortunately some products historically have accidentally broken various aspects of the system's behavior. This should be much better as of Android M; there is considerably more focus on ensuring that backup/restore across the entire device population works well.

ctate
  • 1,379
  • 10
  • 11