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

Commit a199662c authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Displays mediadrm and Widevine metrics in dumpsys"

parents 8a93a1f6 8d188356
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -436,6 +436,10 @@ bool MediaMetricsService::isContentValid(const mediametrics::Item *item, bool is
    // untrusted uids can only send us a limited set of keys
    // untrusted uids can only send us a limited set of keys
    const std::string &key = item->getKey();
    const std::string &key = item->getKey();
    if (startsWith(key, "audio.")) return true;
    if (startsWith(key, "audio.")) return true;
    if (startsWith(key, "drm.vendor.")) 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
    for (const char *allowedKey : {
    for (const char *allowedKey : {
                                     // legacy audio
                                     // legacy audio
                                     "audiopolicy",
                                     "audiopolicy",
@@ -445,6 +449,7 @@ bool MediaMetricsService::isContentValid(const mediametrics::Item *item, bool is
                                     // other media
                                     // other media
                                     "codec",
                                     "codec",
                                     "extractor",
                                     "extractor",
                                     "mediadrm",
                                     "nuplayer",
                                     "nuplayer",
                                 }) {
                                 }) {
        if (key == allowedKey) {
        if (key == allowedKey) {