Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a5e0a4f7 authored by Antonio Kantek's avatar Antonio Kantek
Browse files

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
parent 9e478558
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment