OSDN Git Service

More backup work
authorChristopher Tate <ctate@google.com>
Tue, 2 Jun 2009 23:11:00 +0000 (16:11 -0700)
committerChristopher Tate <ctate@google.com>
Thu, 4 Jun 2009 03:42:15 +0000 (20:42 -0700)
commit043dadc7516d20c3b3ccbcb20c53aaeef076a237
tree4ff8692d43447a1416b3d605e386237c8b97e9d3
parent4ee0a751682e713d3d6ca97fa1271df12d352ee0
More backup work

* Put in some permission enforcement around agent connection notification
  and full-backup scheduling.
* Full backup now applies to any package, not just backup participants who
  have declared their own android:backupAgent
* The process of running the backup operation on the set of apps who have
  been queued for it is now done in a separate thread, with a notification
  mechanism from the main Backup Manager service to pass along new-agent
  binding knowledge.  There's no longer one do-backup message on the primary
  Handler per target application.
* The new backup thread sets up the desired transport now and passes
  along the newly backed-up data to it for each backup target.  Two
  transports have been defined so far, GoogleTransport and AdbTransport;
  both are stubs at present.

Note that at present the backup data output file seems to be properly
created, but after doBackup() is called on the test app's agent it's
still zero size.
core/java/android/backup/BackupManager.java
core/java/android/backup/IBackupManager.aidl
core/java/com/android/internal/backup/AdbTransport.java [new file with mode: 0644]
core/java/com/android/internal/backup/GoogleTransport.java [new file with mode: 0644]
core/java/com/android/internal/backup/IBackupTransport.aidl
services/java/com/android/server/BackupManagerService.java
services/java/com/android/server/am/ActivityManagerService.java