OSDN Git Service

Note cross-user permission requirement for relevant wallpaper operations
authorChristopher Tate <ctate@google.com>
Mon, 28 Aug 2017 21:16:22 +0000 (14:16 -0700)
committerChristopher Tate <ctate@google.com>
Mon, 28 Aug 2017 21:19:32 +0000 (14:19 -0700)
Documentary change only.

Bug: 62343054
Test: N/A
Change-Id: Ibf6617b2c25306852478089b60a019479f8d2bcd

core/java/android/app/WallpaperManager.java

index b9e7397..942cc99 100644 (file)
@@ -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");