liyujie
2025-08-28 d9927380ed7c8366f762049be9f3fee225860833
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
page.tags="Automatic Backup"
sample.group=Content
@jd:body
 
<p>
            
This sample demonstrates how to selectively disable Automatic Backups in Android M, either by
adjusting the location where data files are stored using getNoBackupFilesDir(), or by using a custom
XML configuration file.
 
This sample can also be used as a utility to test the behavior of the Automatic Backup feature.
Executing "adb shell bmgr restore com.example.android.autobackup" from a terminal will cause the
sample\'s data to be cleared and replaced with a copy from the backup server.
            
        </p>