diff options
| -rw-r--r-- | cmds/installd/utils.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds/installd/utils.cpp b/cmds/installd/utils.cpp index c47df52984..c4ecd070c1 100644 --- a/cmds/installd/utils.cpp +++ b/cmds/installd/utils.cpp @@ -1062,6 +1062,8 @@ int prepare_app_cache_dir(const std::string& parent, const char* name, mode_t ta static const char* kProcFilesystems = "/proc/filesystems"; bool supports_sdcardfs() { + if (!property_get_bool("external_storage.sdcardfs.enabled", true)) + return false; std::string supported; if (!android::base::ReadFileToString(kProcFilesystems, &supported)) { PLOG(ERROR) << "Failed to read supported filesystems"; |