1*90c8c64dSAndroid Build Coastguard Worker 2*90c8c64dSAndroid Build Coastguard Workerpage.tags="Automatic Backup" 3*90c8c64dSAndroid Build Coastguard Workersample.group=Content 4*90c8c64dSAndroid Build Coastguard Worker@jd:body 5*90c8c64dSAndroid Build Coastguard Worker 6*90c8c64dSAndroid Build Coastguard Worker<p> 7*90c8c64dSAndroid Build Coastguard Worker 8*90c8c64dSAndroid Build Coastguard WorkerThis sample demonstrates how to selectively disable Automatic Backups in Android M, either by 9*90c8c64dSAndroid Build Coastguard Workeradjusting the location where data files are stored using getNoBackupFilesDir(), or by using a custom 10*90c8c64dSAndroid Build Coastguard WorkerXML configuration file. 11*90c8c64dSAndroid Build Coastguard Worker 12*90c8c64dSAndroid Build Coastguard WorkerThis sample can also be used as a utility to test the behavior of the Automatic Backup feature. 13*90c8c64dSAndroid Build Coastguard WorkerExecuting "adb shell bmgr restore com.example.android.autobackup" from a terminal will cause the 14*90c8c64dSAndroid Build Coastguard Workersample\'s data to be cleared and replaced with a copy from the backup server. 15*90c8c64dSAndroid Build Coastguard Worker 16*90c8c64dSAndroid Build Coastguard Worker </p> 17