2c1ba9a961d4f96c26df260ee437655ad9e7c03e |
|
17-Feb-2016 |
Jeff Sharkey <jsharkey@android.com> |
Make BackupManager encryption aware. Backup requires both CE and DE storage to be available, so delay spinning up the backup system until the user is unlocked, since that's when CE storage becomes available. Note that devices without FBE immediately transition USER_SYSTEM into the unlocked state, since their CE is always available. Offer to backup and restore files under both CE and DE. Since DE is effectively the same as CE, most logic is simply duplicated for now, but it could be simplified in the future. Since system apps can force their default storage location to DE, we always build explicit CE and DE paths. Add getDataDir() to give clean access to the top-level private data directory, but disclaim that apps shouldn't create files there. Bug: 26279618 Change-Id: Ic34a4b330223725db93b1d0f5c9dffc88002c61f
/frameworks/base/core/tests/coretests/src/android/app/backup/FullBackupTest.java
|
80e8db3d9cbdd6f42ca83b535abd26d761dc26ee |
|
05-Aug-2015 |
Dmitry Polukhin <dpolukhin@chromium.org> |
[Backup] Special handling for sharedpref files in backup config Allow specifying sharedpref without .xml suffix as it is for getSharedPreferences Android API. If .xml extension is missing for sharedpref file name, it is added in include/exclude filters. BUG: 20923818 Change-Id: I8bf3d43654b69d847e57c94f23aa3799e01948e6
/frameworks/base/core/tests/coretests/src/android/app/backup/FullBackupTest.java
|
303650c9cdb7cec88e7ec20747b161d9fff10719 |
|
18-Apr-2015 |
Matthew Williams <mjwilliams@google.com> |
Add full backup criteria to android manifest BUG: 20010079 Api change: ApplicationInfo now has a fullBackupContent int where -1 is (off) 0 is (on) and >0 indicates an xml resource that should be parsed in order for a developer to indicate exactly which files they want to include/exclude from the backup set. dd: https://docs.google.com/document/d/1dnNctwhWOI-_qtZ7I3iNRtrbShmERj2GFTzwV4xXtOk/edit#heading=h.wcfw1q2pbmae Change-Id: I90273dc0aef5e9a3230c6b074a45e8f5409ed5ce
/frameworks/base/core/tests/coretests/src/android/app/backup/FullBackupTest.java
|