Check AppOp using noteOp instead os isOpActive
isOpActive is only true if startOp was called, which is not the case for mediaprojection session. Bug: 367301791 Test: com.android.server.media.projection.MediaProjectionManagerServiceTest#testCreateProjection_keyguardLocked_AppOpMediaProjection Flag: android.companion.virtualdevice.flags.media_projection_keyguard_restrictions Change-Id: I908ea1eabbb4e477f3849a6d05f498bfa7bd2099
Loading
Please register or sign in to comment