diff --git a/src/detection/disk/disk_linux.c b/src/detection/disk/disk_linux.c index d9420d236..a3c7ca52a 100644 --- a/src/detection/disk/disk_linux.c +++ b/src/detection/disk/disk_linux.c @@ -17,6 +17,8 @@ static bool isPhysicalDevice(FFstrbuf* device) { + #ifndef __ANDROID__ //On Android, `/dev` is not accessable, so that the following checks always fail + //DrvFs is a filesystem plugin to WSL that was designed to support interop between WSL and the Windows filesystem. if(ffStrbufEqualS(device, "drvfs")) return true; @@ -37,6 +39,8 @@ static bool isPhysicalDevice(FFstrbuf* device) if(!ffStrbufStartsWithS(device, "/dev/")) return false; + #endif // __ANDROID__ + if( ffStrbufStartsWithS(device, "/dev/loop") || //Ignore loop devices ffStrbufStartsWithS(device, "/dev/ram") || //Ignore ram devices