I have found a lot on the Internet to illustrate this:
Modify the default live Wallpaper by using the following information in frameworks/base/CORE/RES/values/config. xml:
<! -- Component name of the default wallpaper. This will be imagewallpaper if not specified --> <string name = "default_wallpaper_component" translatable = "false"> @ null </string>
The default setting is none. Generally, this setting is not necessarily the case because some manufacturers place this configuration file elsewhere. For example, my default setting is: device/Samsung/smdkv210/overlay/frameworks/base/CORE/RES/values/config. in the XML file, the default settings are as follows:
<String name = "default_wallpaper_component"> com. Android. wallpaper/. Nexus. nexuswallpaper </string>
This is the default live wallpaper.
Next I will explain how to change this dynamic wallpaper. In fact, I don't know how to change it.
Com. Android. wallpaper/. Nexus. nexuswallpaper. So I read it.
Frameworks/base/services/Java/COM/Android/Server/wallpapermanagerservice. Java
There is such a sentence:
Private Static journaledfile makejournaledfile () {final string base = "/data/system/wallpaper_info.xml"; return New journaledfile (new file (base), new file (base + ". TMP "));}
That is to say, the configuration information of the system wallpaper is stored in
/Data/system/wallpaper_info.xml
In this file, When you modify the system's dynamic wallpaper, the file will also be changed, so I changed the dynamic wallpaper to a fallen leaf
The content of wallpaper_info.xml is as follows:
<? XML version = '1. 0' encoding = 'utf-8' standalone = 'Yes'?> <WP width = "960" Height = "800" name = "" Component = "com. Android. wallpaper/. Fall. fallwallpaper"/>
Get the following:
Com. Android. wallpaper/. Fall. fallwallpaper
Change config. XML to the following:
<String name = "default_wallpaper_component"> com. Android. wallpaper/. Fall. fallwallpaper </string>
Then, after compiling this part and re-installing the system, the default dynamic wallpaper is changed to the one you set.