Merge "fastboot: Check if super_empty.img exists before reading it."
This commit is contained in:
commit
dbbbb17c1d
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue