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

Commit 3668d6bb authored by Andy Hung's avatar Andy Hung Committed by Android (Google) Code Review
Browse files

Merge "MediaMetrics: Fix crash when logging during SystemServer stop"

parents 2ecc61b1 eff0d082
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -489,11 +489,12 @@ void MediaAnalyticsService::UidInfo::setPkgInfo(
            if (!status.isOk()) {
                ALOGE("%s: getNamesForUids failed: %s",
                        __func__, status.exceptionMessage().c_str());
            }
            } else {
                if (!names[0].empty()) {
                    pkg = names[0].c_str();
                }
            }
        }

        // strip any leading "shared:" strings that came back
        if (pkg.compare(0, 7, "shared:") == 0) {