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

Commit e2286423 authored by Hridya Valsaraju's avatar Hridya Valsaraju Committed by android-build-merger
Browse files

Merge "Remove request for read access to partitions." am: 61b6c5cd

am: a612e303

Change-Id: I21e63564eba60f443a95f0c34a53ffaebdf686ca
parents c0c07fac a612e303
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;