r289
Imitate Android AOSP code on how to sync file write for installBinary method