Skip to content
Snippets Groups Projects
Commit 3ffed212 authored by Hridya Valsaraju's avatar Hridya Valsaraju
Browse files

Remove request for read access to partitions.

It is not needed for flash or erase.

Bug: 113648914
Test: fastboot flashall
Change-Id: I34ba57ac809934556569e3b38ab594969860882a
parent 33dcdb80
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ bool OpenPartition(FastbootDevice* device, const std::string& name, PartitionHan
std::optional<std::string> FindPhysicalPartition(const std::string& name) {
std::string path = "/dev/block/by-name/" + name;
if (access(path.c_str(), R_OK | W_OK) < 0) {
if (access(path.c_str(), W_OK) < 0) {
return {};
}
return path;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment