Modify the default dynamic wallpaper for android4.0 porting

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.