summaryrefslogtreecommitdiffstats
path: root/bootloader_message
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2016-07-06 20:47:23 +0200
committerYabin Cui <yabinc@google.com>2016-07-06 20:47:23 +0200
commit9da04d595fe01e4c0ac1baf39186ac090bf234b3 (patch)
tree042f64a4858e816856f123a1bb7c30ff5a608d74 /bootloader_message
parentupdater: Fix the broken ReadFileFn. (diff)
downloadandroid_bootable_recovery-9da04d595fe01e4c0ac1baf39186ac090bf234b3.tar
android_bootable_recovery-9da04d595fe01e4c0ac1baf39186ac090bf234b3.tar.gz
android_bootable_recovery-9da04d595fe01e4c0ac1baf39186ac090bf234b3.tar.bz2
android_bootable_recovery-9da04d595fe01e4c0ac1baf39186ac090bf234b3.tar.lz
android_bootable_recovery-9da04d595fe01e4c0ac1baf39186ac090bf234b3.tar.xz
android_bootable_recovery-9da04d595fe01e4c0ac1baf39186ac090bf234b3.tar.zst
android_bootable_recovery-9da04d595fe01e4c0ac1baf39186ac090bf234b3.zip
Diffstat (limited to '')
-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 e7195ae9d..9de7dff40 100644
--- a/bootloader_message/bootloader_message.cpp
+++ b/bootloader_message/bootloader_message.cpp
@@ -89,7 +89,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));