commit | 96477f7550d755f1fa76c5484aa5e7eee16e5d5d | [log] [tgz] |
---|---|---|
author | Hridya Valsaraju <hridya@google.com> | Wed Apr 03 17:57:00 2019 -0700 |
committer | Hridya Valsaraju <hridya@google.com> | Thu Apr 04 09:48:29 2019 -0700 |
tree | 2634b0b9e150d616d7d2edfbea73571e8acdc75a | |
parent | e93ebdf9feaa52214c06cc032a64df9875d1351f [diff] |
Open image files in binary mode This is required for read() to function correctly in Windows since it behaves differently in text mode and binary mode and may cause unpredictable behavior depending on the contents of the image file. Bug: 129281908 Test: fastboot.exe flashall Change-Id: I64370af44a050bafea60ff1b0b2be18cc531480a Merged-In: I64370af44a050bafea60ff1b0b2be18cc531480a (cherry picked from commit 1a6f6feff425edf6076269c0f971675fa41de56c)