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

Commit 27914969 authored by Robert Shih's avatar Robert Shih
Browse files

MediaMetricsService: accept mediadrm.* records

Bug: 260066511
Change-Id: Ib569834d8e355e0cd7163d0a0508cd5e65af4cc7
Test: adb shell dumpsys media.metrics | grep mediadrm
parent 8fc16d0e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -511,6 +511,8 @@ bool MediaMetricsService::isContentValid(const mediametrics::Item *item, bool is
    const std::string &key = item->getKey();
    if (startsWith(key, "audio.")) return true;
    if (startsWith(key, "drm.vendor.")) return true;
    if (startsWith(key, "mediadrm.")) return true;

    // the list of allowedKey uses statsd_handlers
    // in iface_statsd.cpp as reference
    // drmmanager is from a trusted uid, therefore not needed here