Getting all system wallpapers

Is there a way to programmatically get all the wallpapers for the Android system?

I know how to get the current one through WallpaperManager and then save it to disk. But I want to know if there is a way to access all the images that act as system wallpapers included in the OS

+8
java android system wallpaper
source share
2 answers

All wallpapers are located in the launcher app. Since the name of the launcher and its resources may vary on different devices, there is no way to create a reliable way to do this.

In stock Android wallpapers are located at Launcher2.apk: res / drawable-somedpi. On my devices, they were in the drawable-hdpi folder, but this may be different on others.

First get the launch resources (com.android.Launcher2.apk) as described in this answer.

You can then list the resources using a method similar to the this method.

I have not tried all this myself, so it may not work as expected.

+4
source share

Just find out where they are stored and access them that way.

-2
source share

All Articles