replicant-frameworks_native/services/inputflinger
Michael Wright 03a53d1c77 Add new MotionEvent flag for partially obscured windows.
Due to more complex window layouts resulting in lots of overlapping
windows, the policy around FLAG_WINDOW_IS_OBSCURED has changed to
only be set when the point at which the window was touched is
obscured. Unfortunately, this doesn't prevent tapjacking attacks that
overlay the dialog's text, making a potentially dangerous operation
seem innocuous. To avoid this on particularly sensitive dialogs,
introduce a new flag that really does tell you when your window is
being even partially overlapped.

We aren't exposing this as API since we plan on making the original
flag more robust. This is really a workaround for system dialogs
since we generally know their layout and screen position, and that
they're unlikely to be overlapped by other applications.

Bug: 26677796
Change-Id: I9e336afe90f262ba22015876769a9c510048fd47
2016-04-21 19:11:18 -07:00
..
host
tests
Android.mk
EventHub.cpp
EventHub.h
InputApplication.cpp
InputApplication.h
InputDispatcher.cpp Add new MotionEvent flag for partially obscured windows. 2016-04-21 19:11:18 -07:00
InputDispatcher.h Add new MotionEvent flag for partially obscured windows. 2016-04-21 19:11:18 -07:00
InputListener.cpp
InputListener.h
InputManager.cpp
InputManager.h
InputReader.cpp
InputReader.h
InputWindow.cpp Add new MotionEvent flag for partially obscured windows. 2016-04-21 19:11:18 -07:00
InputWindow.h Add new MotionEvent flag for partially obscured windows. 2016-04-21 19:11:18 -07:00
PointerControllerInterface.h