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

Commit 362fab94 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Don't use LOG() in code that runs post-fork." into sc-dev am: 40214cbd

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

Change-Id: Iefef4b9f3d12df375f9004824e2f4d00f8576394
parents deac8313 40214cbd
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1371,10 +1371,12 @@ static SecondaryDexAccess check_secondary_dex_access(const std::string& dex_path
        return kSecondaryDexAccessReadOk;
    } else {
        if (errno == ENOENT) {
            LOG(INFO) << "Secondary dex does not exist: " <<  dex_path;
            async_safe_format_log(ANDROID_LOG_INFO, LOG_TAG,
                    "Secondary dex does not exist: %s", dex_path.c_str());
            return kSecondaryDexAccessDoesNotExist;
        } else {
            PLOG(ERROR) << "Could not access secondary dex " << dex_path;
            async_safe_format_log(ANDROID_LOG_ERROR, LOG_TAG,
                    "Could not access secondary dex: %s (%d)", dex_path.c_str(), errno);
            return errno == EACCES
                ? kSecondaryDexAccessPermissionError
                : kSecondaryDexAccessIOError;