diff options
| author | 2021-12-23 12:41:25 -0800 | |
|---|---|---|
| committer | 2022-02-01 23:23:51 +0000 | |
| commit | ea47acbc4cd80a1c440d9e721add52ec23c7bb5b (patch) | |
| tree | a7d9c4cb102a03fa51ddb0fc91ffb390fc37fe91 /libs/gui/BufferQueueThreadState.cpp | |
| parent | 8d5a43763e4ce489466600678b74ee2ba324a833 (diff) | |
(TouchMode Permission 2.1/n) Add permission check when switching touch mode
This CL adds the following permission checks when switching touch mode state:
1. Allow touch mode switch if caller is granted with MODIFY_TOUCH_MODE_STATE;
2. If caller is not granted with MODIFY_TOUCH_MODE_STATE, touch mode
state change will be allowed if the caller's uid matches the focused
window owner's uid.
Touch mode switch will be denied if none of the conditions above match.
Bug: 198487159
Test: atest inputflinger_tests
Test: atest libinput_tests
Change-Id: Ic704682ac41fe470207d9be132b4c0f1a8019f39
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions