summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorAntonio Kantek <kanant@google.com>2022-03-21 11:56:18 -0700
committerAntonio Kantek <kanant@google.com>2022-03-23 21:34:28 -0700
commitafb41741b908d6e4160fba3275da18eeb031f017 (patch)
tree01149bd9923d2f46fa55caff28a16ea088e635ad /core/java/android
parente7bf883fa4abbd92a2f106f56fd6c6841d2cc288 (diff)
Update setInTouchMode javadoc
Update the javadoc for Instrumentation#setInTouchMode indicating that starting from Android Tiramisu, this method will only take effect if the instrumentation was sourced from SHELL or ROOT owned processes. Test: m Fixes: 222652344 Change-Id: I8af79acb11f17233f395412670c9f171aec80c59
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/Instrumentation.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/app/Instrumentation.java b/core/java/android/app/Instrumentation.java
index ac979c495cf3..3cc2b56cd846 100644
--- a/core/java/android/app/Instrumentation.java
+++ b/core/java/android/app/Instrumentation.java
@@ -381,6 +381,10 @@ public class Instrumentation {
* Force the global system in or out of touch mode. This can be used if your
* instrumentation relies on the UI being in one more or the other when it starts.
*
+ * <p><b>Note:</b> Starting from Android {@link Build.VERSION_CODES#TIRAMISU}, this method
+ * will only take effect if the instrumentation was sourced from a process with
+ * {@code MODIFY_TOUCH_MODE_STATE} internal permission granted (shell already have it).
+ *
* @param inTouch Set to true to be in touch mode, false to be in focus mode.
*/
public void setInTouchMode(boolean inTouch) {