Skip to content
Commit c5c96700 authored by Naomi Musgrave's avatar Naomi Musgrave
Browse files

Only allow mirroring on a VirtualDisplay with a mirroring flag or

MediaProjection instance.

ContentRecordingSession is set on VirtualDisplayConfig via a hidden
API; it is not enough to check it's presence before setting up
mirroring in WindowManagerService (by passing through the
ContentRecordingSession). We also check that the VirtualDisplay
is associated with either a MediaProjection, or has the appropriate
flag set.

Bug: 273540791
Test: atest FrameworksServicesTests:DisplayManagerServiceTest
Change-Id: I113f49265af2faea7fdac08afb55fc077feac5cc
parent 96490c82
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment