OSDN Git Service

Journal backup requests so that they won't be lost in a crash
authorChristopher Tate <ctate@google.com>
Fri, 12 Jun 2009 19:55:53 +0000 (12:55 -0700)
committerChristopher Tate <ctate@google.com>
Fri, 12 Jun 2009 20:57:39 +0000 (13:57 -0700)
commitcde87f45e0fa052d070b88ae33fb03c89870536a
tree5f0972e6f965cc06bb3d773038f79096e0715ace
parent0b77453076a22569f24318d194b378b68f11a63e
Journal backup requests so that they won't be lost in a crash

When an application requests a backup via dataChanged(), we now journal that
fact on disk.  The journal persists and is only removed following a successful
backup pass.  When the backup manager is started at boot time, it looks for any
existing journal files and schedules a backup for the apps listed in them, on
the expectation that the device shut down or crashed before a backup could be
performed.
services/java/com/android/server/BackupManagerService.java