diff options
| author | Dianne Hackborn <hackbod@google.com> | 2009-07-01 19:55:20 -0700 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2009-07-01 20:12:36 -0700 |
| commit | cf098294da7a820d5c30d8ed2006ed5446ee1da9 (patch) | |
| tree | d53913b8c355c15da25d2ab8708eeee94e6cf7ab /core/java | |
| parent | 2bbb80e183c6492689f8b10b2d0f5dfe9872a6ac (diff) | |
| download | frameworks_base-cf098294da7a820d5c30d8ed2006ed5446ee1da9.zip frameworks_base-cf098294da7a820d5c30d8ed2006ed5446ee1da9.tar.gz frameworks_base-cf098294da7a820d5c30d8ed2006ed5446ee1da9.tar.bz2 | |
Move backup state to settings, change permission checks to use symbol.
This changes the backup service to use the settings provider instead
of system properties, correspondingly making it off by default and
allowing specific devices to define the transport. Also tweaks
the permission checks to use the permission symbol instead of raw
strings.
This requires some corresponding changes in the vendor projects.
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/provider/Settings.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 2cca837..424f740 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -2226,6 +2226,19 @@ public final class Settings { public static final String USE_LOCATION_FOR_SERVICES = "use_location"; /** + * Controls whether data backup is enabled. + * Type: int ( 0 = disabled, 1 = enabled ) + * @hide + */ + public static final String BACKUP_ENABLED = "backup_enabled"; + + /** + * Component of the transport to use for backup/restore. + * @hide + */ + public static final String BACKUP_TRANSPORT = "backup_transport"; + + /** * Helper method for determining if a location provider is enabled. * @param cr the content resolver to use * @param provider the location provider to query |
