commit | 78cc340c2de873d6995c283b777476f7237d690f | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Thu May 22 10:52:49 2014 -0700 |
committer | Jeff Sharkey <jsharkey@android.com> | Thu May 22 15:54:16 2014 -0700 |
tree | 0caa23deae4f8e720a66430b2523168e8d8a1afe | |
parent | 05ad48206a082057e17723d32493c153faa6881e [diff] |
Offer to stream and fsync() install sessions. Installers are interested in both streaming APK data and establishing a happens-after relationship to support resuming downloads after a process kill or battery pull. This exposes a generic OutputStream for writing, and hooks up flush() to be a blocking call which returns only when all outstanding write() data has been fsync()'ed to disk. Tests to verify behavior. Bug: 14975160 Change-Id: I38289867c80ac659163bb0c2158ef12d99cc570d