commit | dba5a70977da0a28cec2bfc8261d52a177738477 | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Wed Mar 09 11:14:50 2016 -0800 |
committer | Mathieu Chartier <mathieuc@google.com> | Wed Mar 09 15:57:24 2016 -0800 |
tree | ec9472c7c4c1942d6307bffeb2c70c83e896ddbf | |
parent | 05752398db7f25d7892b62cb39615eee468f1db8 [diff] |
Use PwriteFully and write image header last Prevent corrupted images if dex2oat gets killed or if the image writer is interrupted during writing. Bug: 22858531 Bug: 27561308 Change-Id: Ia882d23d672f93c90733fc59a1f6508b0985a011