OSDN Git Service

Tighten restore-at-install behavior
authorChristopher Tate <ctate@google.com>
Fri, 15 Aug 2014 18:12:13 +0000 (11:12 -0700)
committerChristopher Tate <ctate@google.com>
Fri, 15 Aug 2014 18:22:01 +0000 (11:22 -0700)
commita63246d6daa02c6f3e4e78d0072d991387e14c87
tree69ad9f559a279b83aa610701a39d72a911c0e105
parent9fde9a250fffc15c6bcdfc985de12c8646a9813c
Tighten restore-at-install behavior

Harden the guarantee that if we're asked about a possible restore,
we always ALWAYS report back to the package manager.  This involved
closing "should never happen" edge cases around provisioning/auto-restore
setting that nevertheless were happening.

Also, on the auto-restore setting front, make sure to plumb that
system API through appropriately, since going behind its back and
manipulating the secure setting directly would cause things to get
out of step.

Bug 17060654

Change-Id: I52ca9c1ffbfc0bd6b57196157500d0868bfc2989
core/java/android/app/backup/BackupManager.java
services/backup/java/com/android/server/backup/BackupManagerService.java