How do I check for Android Backup Service support?

According to the documentation

Data backup is not guaranteed on all Android devices of the device.

How can I test my code if it is supported or not? I tried to check what is happening on my own device, but the call dataChanged

says nothing other than a log message Backup pass but e=true p=false

(explanation of the message here ). The same thing happens with adb shell bmgr backup my.package.name

. I would like to inform my application user if it is not supported.

+3


source to share


1 answer


Backup APIs are available on any device since Froyo, but unfortunately some products have historically accidentally broken various aspects of system behavior. It should be much better than Android M; there is much more emphasis on ensuring that backup / restore across the entire device population is performing well.



0


source







All Articles