summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2009-06-29 14:56:28 -0700
committerChristopher Tate <ctate@google.com>2009-06-29 15:33:27 -0700
commit6ef58a1509b9d3348a33ca5686917796c2759aa5 (patch)
tree0cdfef7bf8e2085dc2888c4222aba7481683ee2f /core
parent3a608f829b54a7653c9cc2b3bdbda0641cca37bb (diff)
downloadframeworks_base-6ef58a1509b9d3348a33ca5686917796c2759aa5.zip
frameworks_base-6ef58a1509b9d3348a33ca5686917796c2759aa5.tar.gz
frameworks_base-6ef58a1509b9d3348a33ca5686917796c2759aa5.tar.bz2
Implement persistent enable/disable of the backup manager
Backup & restore is still enabled by default, but with the expectation that it will be enabled during the course of the Setup Wizard or some other privileged entity that has notified the user about the ramifications. While disabled, data-changed notices will still be collected, but no backup pass will be scheduled. When the backup manager is later enabled, any pending data-changed notices will then be processed and the apps invoked for backup.
Diffstat (limited to 'core')
-rw-r--r--core/java/android/backup/IBackupManager.aidl18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/java/android/backup/IBackupManager.aidl b/core/java/android/backup/IBackupManager.aidl
index 39e160b..1f11762 100644
--- a/core/java/android/backup/IBackupManager.aidl
+++ b/core/java/android/backup/IBackupManager.aidl
@@ -48,6 +48,24 @@ interface IBackupManager {
void agentDisconnected(String packageName);
/**
+ * Enable/disable the backup service entirely. When disabled, no backup
+ * or restore operations will take place. Data-changed notifications will
+ * still be observed and collected, however, so that changes made while the
+ * mechanism was disabled will still be backed up properly if it is enabled
+ * at some point in the future.
+ *
+ * <p>Callers must hold the android.permission.BACKUP permission to use this method.
+ */
+ void setBackupEnabled(boolean isEnabled);
+
+ /**
+ * Report whether the backup mechanism is currently enabled.
+ *
+ * <p>Callers must hold the android.permission.BACKUP permission to use this method.
+ */
+ boolean isBackupEnabled();
+
+ /**
* Schedule an immediate backup attempt for all pending updates. This is
* primarily intended for transports to use when they detect a suitable
* opportunity for doing a backup pass. If there are no pending updates to