History log of /frameworks/base/core/java/android/app/backup/BlobBackupHelper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e491d142b2489bef96c8dce65c04a7a9c445f6e1 04-Nov-2015 Christopher Tate <ctate@google.com> Fix BlobBackupHelper state tracking

The disk-friendly use of BufferedInputStream in state parsing was
actually breaking the state management system when multiple helpers
are involved in backup. The BufferedInputStream would blithely
pre-fetch 8K from the state file -- but that would consume some
state data that the dispatcher and subsequent helpers needed to see
in order to properly evaluate prior state themselves. The contract
here is that when using the helper mechanism, state-data consumption
must *only* consume as much data as the helper originally stored
into the file.

Switching to a direct-read stream instead fixes the problem by
avoiding read overrun. The rest of the changes are expanded
debugging output that made diagnosis possible.

Bug 25473872

Change-Id: I91de38dfec96f589700479f41ac26f144ba4463c
/frameworks/base/core/java/android/app/backup/BlobBackupHelper.java
f7cb8a0b50968f51994279b0ae3fede0a586ba45 21-Apr-2015 Christopher Tate <ctate@google.com> Compress the preferred-app backup payloads

They can be Very Very Large, so take advantage of the new BlobBackupHelper
infrastructure to keep them tiny!

Also fix an issue in which the restore path wasn't properly passing
notification payloads along for processing, and an issue in which the
blob helper wasn't handling empty states properly.

Change-Id: I11a7ca3cd2e26f634a8971e874ac97385b0b500c
/frameworks/base/core/java/android/app/backup/BlobBackupHelper.java
f9767d680d63ac1771a17ccc5775cd337ff967b8 08-Apr-2015 Christopher Tate <ctate@google.com> Infrastructure for notification backup/restore

Introduce a fairly general "store byte[] blobs as backup keys" helper, and
use that to integrate with the Notification Manager. The helper provides all
the machinery of managing prior state, compressing the blob on the wire, etc.

Bug 19848954
Bug 20105530
Bug 17755700

Change-Id: I4aa808172244af6db0ab2f4440cc266a797655d7
/frameworks/base/core/java/android/app/backup/BlobBackupHelper.java