Merge "Displays mediadrm and Widevine metrics in dumpsys"

gugelfrei
TreeHugger Robot 4 years ago committed by Android (Google) Code Review
commit a199662c6a

@ -436,6 +436,10 @@ bool MediaMetricsService::isContentValid(const mediametrics::Item *item, bool is
// untrusted uids can only send us a limited set of keys
const std::string &key = item->getKey();
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 : {
// legacy audio
"audiopolicy",
@ -445,6 +449,7 @@ bool MediaMetricsService::isContentValid(const mediametrics::Item *item, bool is
// other media
"codec",
"extractor",
"mediadrm",
"nuplayer",
}) {
if (key == allowedKey) {

Loading…
Cancel
Save