OSDN Git Service

Move towards a formal public API for backup and restore
authorChristopher Tate <ctate@google.com>
Tue, 26 Jan 2010 03:37:47 +0000 (19:37 -0800)
committerChristopher Tate <ctate@google.com>
Tue, 26 Jan 2010 03:41:23 +0000 (19:41 -0800)
commit80202c8cb8c8e4ab507079e79b864c61a8eeeee9
tree517c775feb878d11f2e10eec0074907cea724574
parentda77d0a6e7fe70b7da229077039bcca1f232bd89
Move towards a formal public API for backup and restore

This commit makes a few changes towards establishing a formal application
interface for interacting with the backup/restore mechanism:

1. Introduce public wrapper classes around the various binder interfaces; 3rd
party code will never see the binders directly.

2. Progress update callbacks during a restore sequence now occur on the main
thread, not in a binder thread [and not with system-process permissions!].

3. Rename the BackupManagerService's inner "RestoreSession" class to avoid
ambiguity with the new public "RestoreSession" class.
core/java/android/backup/BackupManager.java
core/java/android/backup/RestoreObserver.java [new file with mode: 0644]
core/java/android/backup/RestoreSession.java [new file with mode: 0644]
services/java/com/android/server/BackupManagerService.java