summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Antonio Kantek <kanant@google.com> 2022-03-09 19:00:00 -0800
committer Antonio Kantek <kanant@google.com> 2022-03-21 22:12:46 +0000
commita5e0a4f770ca1ca0163be4b367e2ae1747ba1758 (patch)
treed50d27837b78edb803e80379d8d13e977ae23765 /libs/androidfw/StringPool.cpp
parent9e478558190b4527773c431086a04417abd16cf6 (diff)
Check instrumentation source UID in setInstrumenting
In order to allow switching touch mode, WindowManagerService checks if caller has MODIFY_TOUCH_MODE_STATE permission OR if the process is instrumeting. Just checking if process is instrumenting may not be enough since apps can self instrument themselves. To avoid that, we're now also checking if the instrumentation source is shell (which has the permission pointed out above granted) or root. Bug: 222652344 Test: atest ActivityTaskManagerServiceTests Change-Id: I55078d5c223d4f936d58199d3d013e07a6747a1e
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions