diff options
author | Christopher Tate <ctate@google.com> | 2016-01-22 15:05:32 -0800 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2016-01-26 10:58:37 -0800 |
commit | 339b53a8e678f18da906906f5f32ed57772102bb (patch) | |
tree | 4bd98f17e9af36769c4847b6850dae3767cecb96 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | bae1c3482cdcd487dec7d1a754cf79d5c18a624b (diff) |
Prevent (and repair) poisoned full-data backup queue
An app that transitioned from full-data to key/value backup regimes
was being left in the full-data backup queue until next reboot. In
edge cases this would result in the app being inappropriately shut
down for backup; furthermore, it would potentially cause there to
exist a full-data payload for the app that was considered "newest"
and therefore be the one delivered at restore time on a new device
or app (re)installation.
Defense in depth: full-backup candidates are just-in-time reevaluated
for validity when they come up again in the queue; app update
notifications cause a reevaluation and removal from the queue if
full-data is no longer the right modality; and the common engine for
all cloud-facing full-data backups does an additional last-ditch
validation that each stated target is actually supposed to get
full-data backups rather than key/value, to backstop the checks on
queue-presence validity.
Bug 26744511
Change-Id: I55bea3e19a2cab0150dbe5a08dd9fc550f0068c4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions