commit | c650d2beb66896c0cf51f737d7a39476630dd142 | [log] [tgz] |
---|---|---|
author | Andy McFadden <fadden@android.com> | Mon Aug 16 16:14:06 2010 -0700 |
committer | Andy McFadden <fadden@android.com> | Mon Aug 16 16:14:06 2010 -0700 |
tree | 91c4c17b8d9f92c8e14ac9ae70620ecd7d8b99ee | |
parent | 10a548d86ad1ef83fa6fc69c71ea20e06ba45184 [diff] |
Added fsync call to dexopt. If various system-level things go wrong you might end up with a correctly-written .odex header but an incomplete file, which ideally would never happen. This adds an fsync() call before we write the header to make this less likely. Change-Id: Ie5ac67dc7185ca9a4995710688e1219e46477c12