When the file is located in the downloads subdirectory, the getPath() method returns the wrong path Expected: /storage/emulated/0/Download/subdirectory/xxx Actual: /storage/emulated/0/Download/xxx