Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e389f28 authored by David Anderson's avatar David Anderson Committed by android-build-merger
Browse files

Merge "fastboot: Check if super_empty.img exists before reading it." am: dbbbb17c

am: d8e8f71a

Change-Id: Ieb6ccd9f45ed8ac69063eea0f622b3e4dc04a9dd
parents 4f87fa35 d8e8f71a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1541,7 +1541,7 @@ static bool should_flash_in_userspace(const std::string& partition_name) {
        return false;
    }
    auto path = find_item_given_name("super_empty.img");
    if (path.empty()) {
    if (path.empty() || access(path.c_str(), R_OK)) {
        return false;
    }
    auto metadata = android::fs_mgr::ReadFromImageFile(path);