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

Commit 11620edf authored by Christopher Tate's avatar Christopher Tate
Browse files

Note cross-user permission requirement for relevant wallpaper operations

Documentary change only.

Bug: 62343054
Test: N/A
Change-Id: Ibf6617b2c25306852478089b60a019479f8d2bcd
parent 15695589
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -1603,11 +1603,12 @@ public class WallpaperManager {
    /**
    /**
     * Clear the wallpaper for a specific user.  The caller must hold the
     * Clear the wallpaper for a specific user.  The caller must hold the
     * INTERACT_ACROSS_USERS_FULL permission to clear another user's
     * INTERACT_ACROSS_USERS_FULL permission to clear another user's
     * wallpaper.
     * wallpaper, and must hold the SET_WALLPAPER permission in all
     * circumstances.
     * @hide
     * @hide
     */
     */
    @SystemApi
    @SystemApi
    @RequiresPermission(android.Manifest.permission.SET_WALLPAPER)
    @RequiresPermission(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL)
    public void clearWallpaper(@SetWallpaperFlags int which, int userId) {
    public void clearWallpaper(@SetWallpaperFlags int which, int userId) {
        if (sGlobals.mService == null) {
        if (sGlobals.mService == null) {
            Log.w(TAG, "WallpaperService not running");
            Log.w(TAG, "WallpaperService not running");