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

Commit 366542b9 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Add missing permission annotation

Methods that read the wallpaper need READ_EXTERNAL_STORAGE permission.
For some reason we forgot to annotate this method when getFastDrawable()
and getWallpaperFile() were annotated.

Test: make
Fixes: 136457450
Change-Id: I8dec025f35446f4a27b1c43dc249a8078478eeef
parent 7fe5eeef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6731,7 +6731,7 @@ package android.app {
    method public android.content.Intent getCropAndSetWallpaperIntent(android.net.Uri);
    method public int getDesiredMinimumHeight();
    method public int getDesiredMinimumWidth();
    method public android.graphics.drawable.Drawable getDrawable();
    method @RequiresPermission(android.Manifest.permission.READ_EXTERNAL_STORAGE) public android.graphics.drawable.Drawable getDrawable();
    method @RequiresPermission(android.Manifest.permission.READ_EXTERNAL_STORAGE) public android.graphics.drawable.Drawable getFastDrawable();
    method public static android.app.WallpaperManager getInstance(android.content.Context);
    method @Nullable public android.app.WallpaperColors getWallpaperColors(int);
+1 −0
Original line number Diff line number Diff line
@@ -605,6 +605,7 @@ public class WallpaperManager {
     *     or {@code null} if no system wallpaper exists or if the calling application
     *     is not able to access the wallpaper.
     */
    @RequiresPermission(android.Manifest.permission.READ_EXTERNAL_STORAGE)
    public Drawable getDrawable() {
        final ColorManagementProxy cmProxy = getColorManagementProxy();
        Bitmap bm = sGlobals.peekWallpaperBitmap(mContext, true, FLAG_SYSTEM, cmProxy);