From be3eb546632b81983f12630543e315ed2fcfe769 Mon Sep 17 00:00:00 2001 From: Adam Bookatz Date: Fri, 27 May 2022 18:01:02 +0000 Subject: [PATCH] Fix INTERACT_ACROSS_USERS change version Commit I47d6f86fd159aa993971366ee9d7d334644d391e changed how bindServiceAsUser behaves with INTERACT_ACROSS_USERS. This was a change in T, but the documentation accidentally referred to S. So we fix that. Bug: 209989958 Change-Id: Ib8f614bfa4ae1b4333c56dec3e6cae731e4137ee Test: N/A --- core/java/android/content/Context.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java index 836bff598ede7..fce23cf6819a1 100644 --- a/core/java/android/content/Context.java +++ b/core/java/android/content/Context.java @@ -3670,7 +3670,7 @@ public abstract class Context { *
  • caller has {@code android.Manifest.permission.INTERACT_ACROSS_USERS_FULL}
  • *
  • caller has {@code android.Manifest.permission.INTERACT_ACROSS_USERS} and is the same * package as the {@code service} (determined by its component's package) and the Android - * version is at least {@link android.os.Build.VERSION_CODES#S}
  • + * version is at least {@link android.os.Build.VERSION_CODES#TIRAMISU} *
  • caller has {@code android.Manifest.permission.INTERACT_ACROSS_USERS} and is in same * profile group as the given {@code user}
  • *
  • caller has {@code android.Manifest.permission.INTERACT_ACROSS_PROFILES} and is in same