Add logging for FLAG_SLIPPERY usage
We are interested to learn about the usage of FLAG_SLIPPERY. Do any apps
use it? Or is it only used by system components?
If apps aren't using it, let's lock it down.
Bug: 157929241
Test: adb shell dumpsys platform_compat
Change-Id: I73130ebe86ea66906cd8f281785dc6aced1ce03f
diff --git a/libs/input/android/os/IInputConstants.aidl b/libs/input/android/os/IInputConstants.aidl
index 82c220f..6316b59 100644
--- a/libs/input/android/os/IInputConstants.aidl
+++ b/libs/input/android/os/IInputConstants.aidl
@@ -21,4 +21,11 @@
interface IInputConstants
{
const int DEFAULT_DISPATCHING_TIMEOUT_MILLIS = 5000; // 5 seconds
+
+ // Compatibility changes.
+ /**
+ * TODO(b/157929241): remove this before closing the bug. This is needed temporarily
+ * to identify apps that are using this flag.
+ */
+ const long BLOCK_FLAG_SLIPPERY = 157929241;
}