From 5006597d68540cc940d2a60c006b683f7fb9206c Mon Sep 17 00:00:00 2001 From: Siarhei Vishniakou Date: Thu, 3 Dec 2020 12:46:41 -1000 Subject: [PATCH] Add change id for FLAG_SLIPPERY We need to figure out whether any apps are using FLAG_SLIPPERY. Ideally, we should lock this down and only allow it for system uses. Add a change id for this logging here. Bug: 157929241 Test: adb shell dumpsys platform_compat Change-Id: I7a12828e768a145054d31fbf07f130a2f06735de --- core/java/android/hardware/input/InputManager.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/java/android/hardware/input/InputManager.java b/core/java/android/hardware/input/InputManager.java index 81ea2f5a17dde..4c6644d14e0e6 100644 --- a/core/java/android/hardware/input/InputManager.java +++ b/core/java/android/hardware/input/InputManager.java @@ -209,6 +209,14 @@ public final class InputManager { @ChangeId public static final long BLOCK_UNTRUSTED_TOUCHES = 158002302L; + /** + * Check whether apps are using FLAG_SLIPPERY for their windows. We expect that this flag is + * only used by the system components. If so, we can lock it down. + * @hide + */ + @ChangeId + public static final long BLOCK_FLAG_SLIPPERY = android.os.IInputConstants.BLOCK_FLAG_SLIPPERY; + /** * Input Event Injection Synchronization Mode: None. * Never blocks. Injection is asynchronous and is assumed always to be successful.