commit | cf3bafbfe6646b8842244dd259f021b411994f5c | [log] [tgz] |
---|---|---|
author | Brian Lindahl <blindahl@google.com> | Thu Jan 27 14:21:38 2022 +0100 |
committer | Brian Lindahl <blindahl@google.com> | Thu Feb 10 09:14:24 2022 +0100 |
tree | 44789ed789660afc0e1616e7129c6b3363992264 | |
parent | 0fe05c417b4437e09aceb75fa7c647d61b1a0d74 [diff] [blame] |
Allow MediaCodecs to be created on behalf of other client processes. Requires the MEDIA_RESOURCE_PID_OVERRIDE permission. Bug: 217746837 Test: atest MediaCodecResourceTest Change-Id: Ib6214e42b74666e2959724bb5501ae71205cf11b
diff --git a/media/libmediaplayerservice/tests/DrmSessionManager_test.cpp b/media/libmediaplayerservice/tests/DrmSessionManager_test.cpp index c81a659..2beb47f 100644 --- a/media/libmediaplayerservice/tests/DrmSessionManager_test.cpp +++ b/media/libmediaplayerservice/tests/DrmSessionManager_test.cpp
@@ -61,7 +61,11 @@ return true; } - virtual bool isValidPid(int /* pid */) { + virtual bool isPidTrusted(int /* pid */) { + return true; + } + + virtual bool isPidUidTrusted(int /* pid */, int /* uid */) { return true; }