commit | 57cda4b305a24193907ebf3b5b2932f3eb337dc0 | [log] [tgz] |
---|---|---|
author | Vadim Caen <caen@google.com> | Thu Sep 19 16:25:07 2024 +0200 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Oct 08 00:08:28 2024 +0000 |
tree | fb364b103baa5a985424f9540232a37ddd11df1d | |
parent | 9d141947ad563367779edb13dd5a9747f7686db1 [diff] |
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 (cherry picked from commit 48d0c57f674d3cf7b0d0f3302ced5ddc9c953241) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5e4fdb100b7e31b473d254eac1a06d2417543c0d) Merged-In: I908ea1eabbb4e477f3849a6d05f498bfa7bd2099 Change-Id: I908ea1eabbb4e477f3849a6d05f498bfa7bd2099