Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a050d630 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Note cross-user permission requirement for relevant wallpaper operations" into oc-mr1-dev

parents 3390511e 11620edf
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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");