summaryrefslogtreecommitdiffstats
path: root/bootloader_message/bootloader_message.cpp
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-07-06 20:47:23 +0200
committerTao Bao <tbao@google.com>2016-10-19 00:10:59 +0200
commit0d5b85944c3838171197ba8f7fed34b3ec63db35 (patch)
tree285f413f554253c8ee2b4fec8fc711bcebcce060 /bootloader_message/bootloader_message.cpp
parentMerge "Create bootloader_message static library." (diff)
downloadandroid_bootable_recovery-0d5b85944c3838171197ba8f7fed34b3ec63db35.tar
android_bootable_recovery-0d5b85944c3838171197ba8f7fed34b3ec63db35.tar.gz
android_bootable_recovery-0d5b85944c3838171197ba8f7fed34b3ec63db35.tar.bz2
android_bootable_recovery-0d5b85944c3838171197ba8f7fed34b3ec63db35.tar.lz
android_bootable_recovery-0d5b85944c3838171197ba8f7fed34b3ec63db35.tar.xz
android_bootable_recovery-0d5b85944c3838171197ba8f7fed34b3ec63db35.tar.zst
android_bootable_recovery-0d5b85944c3838171197ba8f7fed34b3ec63db35.zip
Diffstat (limited to 'bootloader_message/bootloader_message.cpp')
-rw-r--r--bootloader_message/bootloader_message.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootloader_message/bootloader_message.cpp b/bootloader_message/bootloader_message.cpp
index 62d8c6785..59c2b2e01 100644
--- a/bootloader_message/bootloader_message.cpp
+++ b/bootloader_message/bootloader_message.cpp
@@ -88,7 +88,7 @@ static bool read_misc_partition(void* p, size_t size, size_t offset, std::string
if (!wait_for_device(misc_blk_device, err)) {
return false;
}
- android::base::unique_fd fd(open(misc_blk_device.c_str(), O_WRONLY | O_SYNC));
+ android::base::unique_fd fd(open(misc_blk_device.c_str(), O_RDONLY));
if (fd.get() == -1) {
*err = android::base::StringPrintf("failed to open %s: %s", misc_blk_device.c_str(),
strerror(errno));