Always split touches
In this CL, we are force all windows to use FLAG_SPLIT_TOUCH. This is
needed to avoid complex interactions between this flag and the spy
windows functionality. The old behaviour is likely mostly a historical
artifact, and was not originally intended. With the features like
freeform windows, split screen, and spy windows now possible, we should
always split touch to also avoid potential security issues about
receiving touches outside of your window.
If the functionality of rejecting partial gestures is indeed necessary,
then it will be introduced via a new flag that's only usable by
privileged windows.
Bug: 239934827
Test: atest inputflinger_tests
Flag: com.android.input.flags.split_all_touches
Change-Id: I579651e1309012a6db96730548c12f032c43d88a
diff --git a/libs/input/input_flags.aconfig b/libs/input/input_flags.aconfig
index 3830751..500f7b4 100644
--- a/libs/input/input_flags.aconfig
+++ b/libs/input/input_flags.aconfig
@@ -37,6 +37,13 @@
}
flag {
+ name: "split_all_touches"
+ namespace: "input"
+ description: "Set FLAG_SPLIT_TOUCHES to true for all windows, regardless of what they specify. This is essentially deprecating this flag by forcefully enabling the split functionality"
+ bug: "239934827"
+}
+
+flag {
name: "a11y_crash_on_inconsistent_event_stream"
namespace: "accessibility"
description: "Brings back fatal logging for inconsistent event streams originating from accessibility."