summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Christopher Tate <ctate@google.com> 2017-08-30 00:05:36 +0000
committer android-build-merger <android-build-merger@google.com> 2017-08-30 00:05:36 +0000
commit5296d3cc220d4b66e43abb5c3f81a3f648bb2a3f (patch)
treed573ec0cf8ec7fc9b35a3f6f4e8d51e04ee21776
parent2ccb8c2fc1cae1691740748c0137252d88f5d142 (diff)
parenta050d6302f335103d70a4cc7875601dfc7b4d2cd (diff)
Merge "Note cross-user permission requirement for relevant wallpaper operations" into oc-mr1-dev
am: a050d6302f Change-Id: I6568f85ca95ab4e20f5f5195c7b7eb4982e8ec57
-rw-r--r--core/java/android/app/WallpaperManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/java/android/app/WallpaperManager.java b/core/java/android/app/WallpaperManager.java
index b9e739755921..942cc99585ed 100644
--- a/core/java/android/app/WallpaperManager.java
+++ b/core/java/android/app/WallpaperManager.java
@@ -1603,11 +1603,12 @@ public class WallpaperManager {
/**
* Clear the wallpaper for a specific user. The caller must hold the
* INTERACT_ACROSS_USERS_FULL permission to clear another user's
- * wallpaper.
+ * wallpaper, and must hold the SET_WALLPAPER permission in all
+ * circumstances.
* @hide
*/
@SystemApi
- @RequiresPermission(android.Manifest.permission.SET_WALLPAPER)
+ @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL)
public void clearWallpaper(@SetWallpaperFlags int which, int userId) {
if (sGlobals.mService == null) {
Log.w(TAG, "WallpaperService not running");