We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6233b23 + ecd9b0d commit 29e7b2aCopy full SHA for 29e7b2a
fs_mgr/liblp/partition_opener.cpp
@@ -38,6 +38,9 @@ using android::base::unique_fd;
38
namespace {
39
40
std::string GetPartitionAbsolutePath(const std::string& path) {
41
+#if !defined(__ANDROID__)
42
+ return path;
43
+#else
44
if (android::base::StartsWith(path, "/")) {
45
return path;
46
}
@@ -56,6 +59,7 @@ std::string GetPartitionAbsolutePath(const std::string& path) {
56
59
57
60
58
61
return by_name;
62
+#endif
63
64
65
bool GetBlockDeviceInfo(const std::string& block_device, BlockDeviceInfo* device_info) {
0 commit comments