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

Skip to content
Commit aa561d16 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

InputDispatcher: Inject to default display if display unspecified

Injecting a MotionEvent requires the target display to be known, because
the display projection must be applied to the event. If the displayId
for an injected MotionEvent is not specified, then inject to the default
display.

This is safe to do from a security standpoint because the permisson
check for input injection is based on the target of the input event, and
it happens later on in the dispatch cycle.

Bug: 179274888
Test: atest VerifyInputEventTest
Change-Id: I95970a46646fccfbfbc0f47b31d5c9df02254795
parent b5cb9572
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment