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

Commit 646a50f9 authored by Hung-ying Tyan's avatar Hung-ying Tyan Committed by Automerger Merge Worker
Browse files

Merge "Check property for sdcardfs usage" am: 1a1b8952 am: 6e298f72 am:...

Merge "Check property for sdcardfs usage" am: 1a1b8952 am: 6e298f72 am: 64c10a18 am: 86117209

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1371505

Change-Id: I574ef72b827fdb284c94119b15e7965ffa7599ab
parents b319c248 86117209
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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";