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

Commit 29e7b2af authored by David Anderson's avatar David Anderson Committed by Gerrit Code Review
Browse files

Merge "liblp: fix host lpdump cannot work issue"

parents 6233b239 ecd9b0d8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -38,6 +38,9 @@ using android::base::unique_fd;
namespace {

std::string GetPartitionAbsolutePath(const std::string& path) {
#if !defined(__ANDROID__)
    return path;
#else
    if (android::base::StartsWith(path, "/")) {
        return path;
    }
@@ -56,6 +59,7 @@ std::string GetPartitionAbsolutePath(const std::string& path) {
        }
    }
    return by_name;
#endif
}

bool GetBlockDeviceInfo(const std::string& block_device, BlockDeviceInfo* device_info) {