I am working on a launcher on android 14 and would like to display the users background in my app.
Lawnchair gets the wallpaper using
WallpaperManager wallpaperManager = WallpaperManager.getInstance(getContext());
Drawable wallpaperDrawable = wallpaperManager.getDrawable();
I tried implementing this in my own method channel but it causes the app to crash due to permissions.
Afaik this needs any of
android.permission.READ_WALLPAPER_INTERNAL", Manifest.permission.MANAGE_EXTERNAL_STORAGE
I tried adding
MANAGE_EXTERNAL_STORAGE
to my manifest file but then got another crash with "E/AndroidRuntime(20993): java.lang.SecurityException: Permission android.permission.READ_EXTERNAL_STORAGE denied for package com.noaisu.classiclauncher"
which i dont even think is needed to access the wallpaper?? This is all confusing and I cant find any clear info about it online.
Also preferably I dont want to use MANAGE_EXTERNAL_STORAGE if possible as google may not let me publish the app