summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Vladimir Komsiyski <vladokom@google.com> 2023-10-19 08:30:00 +0200
committer Vladimir Komsiyski <vladokom@google.com> 2023-10-20 15:01:57 +0200
commit22d88574ed534f1c15a5638ab9a26e6ffe2745ba (patch)
tree212fffbe0d286f38a1d5bf1f9a39e7986c982e33 /libs/input/PointerController.cpp
parent15c2cf072488db6eff4997558e9780a6a5aa4f38 (diff)
Allow clipboard on virtual devices when the default device is locked.
Clipboard access is currently blocked on virtual devices if the default device is locked, even if the virtual device is "always unlocked". Virtual devices are considered insecure by default and there's already an attempt to return false from isDeviceLocked/isDeviceSecure based on whether the display belongs to a virtual device. However, when the KeyguardManager is created from the system context, its displayId association is always the default display, so this is broken. Adding new overloads in KeyguardManager that explicitly take the deviceId fixes the problem with the clipboard. Also changing the existing displayId argument to deviceId to avoid an unnecessary call into VDM to determine the device. When this was added, deviceId wasn't available from Context. Fix: 306620764 Bug: 300402201 Test: see CTS in topic Change-Id: I7aedd47c13d3acd8d2954f99fa5ea671a1b888e7
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions