[Partial Screensharing] Handle enterprise policies
Adds a logic that shows/hides work profile or personal profile tabs in partial screen sharing when it is not allowed to capture the screen. Adds a logic that shows screen capture disabled dialog when we can't even start the app picker dialog (when we can't capture the screen completely). Bug: 233348916 Test: manual testing using TestDPC with various device policies (disabled screen capture on work profile, on fully managed device, disallow sharing into managed profile policy), starting screen sharing from work or personal profile host app Test: com.android.systemui.screenrecord.RecordingControllerTest Test: com.android.systemui.mediaprojection.devicepolicy.ScreenCaptureDevicePolicyResolverTest Change-Id: Ib732826a977c560318ff147d630d426c0828b3bd
Loading
Please register or sign in to comment