OSDN Git Service

Suppress 'radio' processes to media.metrics
authorRay Essick <essick@google.com>
Mon, 24 Apr 2017 22:52:54 +0000 (15:52 -0700)
committerRay Essick <essick@google.com>
Tue, 25 Apr 2017 05:15:48 +0000 (05:15 +0000)
commit79a89ef4eb06a2d29fc3d083112de398111a9ddb
treece803c8c4c5a4507842bb2627604c47386d18192
parent087f3af6ceee8fe61a27901c7c910218664265c0
Suppress 'radio' processes to media.metrics

We suppress calls from radio processes (including the basic phone
process) to the media.metrics service. This had started happening
for a particular video telephony application that ran within phone
instead of as some separate app with its own user id.

We do this here to speed up when a radio process learns that it
can not log to media.metrics. The existing sepolicy restrictions
remain in place as a fallback. The use case that prompted this
was having issues with the 5-second timeout before we learned that
radio wasn't allowed access to the media.metrics process.

Bug: 37552329
Test: observe 'dumpsys media.metrics' and logcat
Change-Id: I1824aa35860bb91dd796856453c1897ec21b496c
media/libmediametrics/MediaAnalyticsItem.cpp