Android 5.0.0 release 4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEUEABECAAYFAlRhiuMACgkQ6K0/gZqxDnj5lACghMzSfFjaZzigvyuCUmXHrj6o
AnQAl0DU1qd+m1ZxEb8/BAdc9moSE3s=
=XzG+
-----END PGP SIGNATURE-----
Use more aggressive sync writing to applypatch.

We have seen cases where the boot partition is patched, but upon
recovery the partition appears to be corrupted.  Open up all
patched files/partitions with O_SYNC, and do not ignore the
errors from fsync/close operations.

Bug: 18170529
Change-Id: I392ad0a321d937c4ad02eaeea9170be384a4744b
1 file changed