diff options
author | Yabin Cui <yabinc@google.com> | 2016-07-06 23:28:52 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-07-06 23:28:52 +0200 |
commit | ec9fdfee2fbded53f7245bcb174a0c8dc059e61d (patch) | |
tree | 8002e34fd6fb415673a1ee131d7a5b78d862af78 | |
parent | Import translations. DO NOT MERGE am: 34e2854786 -s ours am: 93d2e08ef2 -s ours (diff) | |
parent | Fix bootloader_message. (diff) | |
download | android_bootable_recovery-ec9fdfee2fbded53f7245bcb174a0c8dc059e61d.tar android_bootable_recovery-ec9fdfee2fbded53f7245bcb174a0c8dc059e61d.tar.gz android_bootable_recovery-ec9fdfee2fbded53f7245bcb174a0c8dc059e61d.tar.bz2 android_bootable_recovery-ec9fdfee2fbded53f7245bcb174a0c8dc059e61d.tar.lz android_bootable_recovery-ec9fdfee2fbded53f7245bcb174a0c8dc059e61d.tar.xz android_bootable_recovery-ec9fdfee2fbded53f7245bcb174a0c8dc059e61d.tar.zst android_bootable_recovery-ec9fdfee2fbded53f7245bcb174a0c8dc059e61d.zip |
-rw-r--r-- | bootloader_message/bootloader_message.cpp | 2 |
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)); |