OSDN Git Service

Support single-package backup rejection by the transport
authorChristopher Tate <ctate@google.com>
Tue, 6 Jan 2015 23:48:33 +0000 (15:48 -0800)
committerChristopher Tate <ctate@google.com>
Tue, 6 Jan 2015 23:48:33 +0000 (15:48 -0800)
commitb89e1405cf9f1da533dc0843390a1b6783abb0f4
treec3c9a188e6f2627c4bb04330b9fd31f7a64f3497
parent1c6014e77dfad1a7af229d642df7b7300beee721
Support single-package backup rejection by the transport

We now cleanly handle the case of the transport blacklisting specific
packages from key/value backup.  Previously we would halt the entire
backup pass and reschedule if the transport returned any error from
performBackup(pkg).  Now, we recognize the TRANSPORT_PACKAGE_REJECTED
result from that invocation, and properly drop that package's work
but proceed with running the rest of the backup queue as expected.

Bug 18694053

Change-Id: Id0dd6d59492bdea9f970540d776f37db0cc5d99c
core/java/android/app/backup/BackupTransport.java
services/backup/java/com/android/server/backup/BackupManagerService.java