summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Naomi Musgrave <nmusgrave@google.com> 2022-05-17 11:02:13 +0100
committer Naomi Musgrave <nmusgrave@google.com> 2022-05-17 22:11:33 +0100
commite3f6b7e16af017c98b4f90540ee6671d1ce48550 (patch)
treee6d8571c05559deddb4dac1206c7b6d3012cb85f /libs/androidfw/StringPool.cpp
parent8ade0d824cf5ffd57ad89e5b6b3f40381e700149 (diff)
[Media Projection] Require valid token to set session
When MediaProjection sets the session details in MediaProjectiondManagerService, clear and re-set the calling identity (since we have entered the system server across the aidl boundary). Additionaly, verify that the call originated from a valid MediaProjection session. In the current model for MediaProjection, signature-level permission MANAGE_MEDIA_PROJECTION is held by the component that shows the acceptance dialog to the user. The user allowing some app to capture with MediaProjection is represented by the IMediaProjection token (see MediaProjectionManagerService# isValidMediaProjection). Bug: 230748205 Test: Manual Change-Id: Iace8eb7eea6c7a99fba7ea726481461a11bd1c90
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions