Setting Live Wallpaper as Default Out-of-box in AOSP Build

762 views
Skip to first unread message

Christopher Price

unread,
Feb 12, 2016, 8:55:24 PM2/12/16
to Android Building
Here's one tough nut we haven't been able to crack internally...

How do you set a Live Wallpaper as the default on an Android build, so that it is enabled as the default wallpaper out of the box?

(But no answer).

And Google mentions in the Android One build guide not to do make live wallpaper the default, at least on low-RAM Android One devices - which indicates there is a way to do it that is AOSP-sanctioned.

So... does anyone know how to actually pull it off? Thanks!

Christopher Price

Ed Savage-Jones

unread,
Feb 16, 2016, 10:14:25 AM2/16/16
to Android Building
Hi Christopher,

I tried to post this earlier from my mail client, but things went wrong, but it did give me a chance to give you a tested example relevant to M. :-)

Please have a look at the framework/base/core/res/res/values/config.xml item ‘default_wallpaper_component’ which has the following format:
<string name="default_wallpaper_component" translatable="false">package name/service name</string>

For example to enable the Galaxy4 live wallpaper in your build, your device overlay config.xml would contain something like this:
<string name="default_wallpaper_component" translatable="false">com.android.galaxy4/com.android.galaxy4.Galaxy4Wallpaper</string>

(this assumes you have the packages/wallpapers/Galaxy4 git in your manifest)

Cheers,

Ed

Amit Pundir

unread,
Feb 16, 2016, 10:14:26 AM2/16/16
to android-...@googlegroups.com
On 11 February 2016 at 14:59, Christopher Price
<ch...@christopherprice.net> wrote:
> Here's one tough nut we haven't been able to crack internally...
>
> How do you set a Live Wallpaper as the default on an Android build, so that
> it is enabled as the default wallpaper out of the box?

Try something like this
https://android-git.linaro.org/gitweb/device/linaro/common.git/commit/c4ab6841171696fa0f17d826d37944f520bd1a35.
It's been a while since we last used it but it might be of some help.

Regards,
Amit Pundir

>
> I've seen others ask this question:
> http://stackoverflow.com/questions/30470567/how-can-i-bundle-some-wallpapers-as-part-of-my-custom-aosp-rom
> (But no answer).
>
> And Google mentions in the Android One build guide not to do make live
> wallpaper the default, at least on low-RAM Android One devices - which
> indicates there is a way to do it that is AOSP-sanctioned.
>
> So... does anyone know how to actually pull it off? Thanks!
>
> Christopher Price
> Console.com.co
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-buildi...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages