summaryrefslogtreecommitdiff
path: root/libs/input/PointerControllerContext.cpp
diff options
context:
space:
mode:
author yutingfang <yutingfang@google.com> 2025-02-14 11:19:59 -0800
committer yutingfang <yutingfang@google.com> 2025-02-26 16:31:56 -0800
commite16039df9a26ac27240b42f621286860f0d52e10 (patch)
treea634f1b42c6871190aef86104f13a74fcf608633 /libs/input/PointerControllerContext.cpp
parentaa6b9b6941696c91626b2d54a9435a43d4123a37 (diff)
Always check device policy for device aware permission check
and AppOp mode checking Before, when the deviceId in the Context is explicitly set, we don't account for virtual device's camera/audio policy when doing permission check. So if the virtual device doesn't have custom policy, the permission check will not fall back to the default device. With this fix, we always fall back to the default device if virtual device uses the default policy, no matter if the device Id is explicitly set in the Context or not. Bug: 396422648 Test: atest android.permission.cts.DevicePermissionsTest Flag: EXEMPT bug fix Change-Id: I5bc731c275429bd6ed8d7117d2226bd41f4b7c34
Diffstat (limited to 'libs/input/PointerControllerContext.cpp')
0 files changed, 0 insertions, 0 deletions