Merge change 6317 into donut

* changes:
  Make enable/provisioning of the backup service a two-step process
This commit is contained in:
Android (Google) Code Review
2009-07-06 18:24:26 -07:00
3 changed files with 58 additions and 7 deletions

View File

@@ -72,6 +72,13 @@ interface IBackupManager {
*/
void setBackupEnabled(boolean isEnabled);
/**
* Indicate that any necessary one-time provisioning has occurred.
*
* <p>Callers must hold the android.permission.BACKUP permission to use this method.
*/
void setBackupProvisioned(boolean isProvisioned);
/**
* Report whether the backup mechanism is currently enabled.
*

View File

@@ -2269,12 +2269,19 @@ public final class Settings {
public static final String USE_LOCATION_FOR_SERVICES = "use_location";
/**
* Controls whether data backup is enabled.
* Controls whether settings backup is enabled.
* Type: int ( 0 = disabled, 1 = enabled )
* @hide
*/
public static final String BACKUP_ENABLED = "backup_enabled";
/**
* Indicates whether settings backup has been fully provisioned.
* Type: int ( 0 = unprovisioned, 1 = fully provisioned )
* @hide
*/
public static final String BACKUP_PROVISIONED = "backup_provisioned";
/**
* Component of the transport to use for backup/restore.
* @hide