FORUMS

[REF] Changing default wallpaper in ICS firmwares [FOR ROM DEVELOPERS]

2,286 posts
Thanks Meter: 2,663
 
By lippol94, Retired Recognized Developer on 22nd January 2012, 03:18 PM
Post Reply Email Thread
I decided to write this little guide after a question I got via PM

It seems a pretty "big" problem as Google changed a few parameters in its framework-res.apk file.

So here I am

I hope this will help you someway. If you like this press my Thanks button

____________________

1) Load framework file in apktool

Code:
apktool if framework-res.apk
2) Decompile it

Code:
apktool d framework-res.apk
3) Navigate to /res/drawable-hdpi/ and delete default_wallpaper.jpg file

4) Copy the jpg file you want to be default wallpaper in /res/drawable-hdpi/ and rename it in default_wallpaper.jpg

5) Navigate to /res/values/ and open strings.xml

6) Change this line

Code:
<string name="default_wallpaper_component">com.android.wallpaper/.nexus.NexusWallpaper</string>
with this:

Code:
<string name="default_wallpaper_component">@null</string>
7) Compile framework-res.apk

Code:
apktool b framework-res framework-res-modded.apk
8) Sign it (e.g. ApkManager)

9) Rename it in framework-res.apk and push it to ROM flashable zip
____________________


That's it

If you have any problems compiling back framework-res.apk look here

Have a nice day!
The Following 27 Users Say Thank You to lippol94 For This Useful Post: [ View ] Gift lippol94 Ad-Free
24th January 2013, 03:04 PM |#2  
viijay4b7's Avatar
Senior Member
Flag Chennai
Thanks Meter: 363
 
More
Thumbs up
Quote:
Originally Posted by lippol94

I decided to write this little guide after a question I got via PM

It seems a pretty "big" problem as Google changed a few parameters in its framework-res.apk file.

So here I am

I hope this will help you someway. If you like this press my Thanks button

____________________

1) Load framework file in apktool

Code:
apktool if framework-res.apk
2) Decompile it

Code:
apktool d framework-res.apk
3) Navigate to /res/drawable-hdpi/ and delete default_wallpaper.jpg file

4) Copy the jpg file you want to be default wallpaper in /res/drawable-hdpi/ and rename it in default_wallpaper.jpg

5) Navigate to /res/values/ and open strings.xml

6) Change this line

Code:
<string name="default_wallpaper_component">com.android.wallpaper/.nexus.NexusWallpaper</string>
with this:

Code:
<string name="default_wallpaper_component">@null</string>
7) Compile framework-res.apk

Code:
apktool b framework-res framework-res-modded.apk
8) Sign it (e.g. ApkManager)

9) Rename it in framework-res.apk and push it to ROM flashable zip
____________________


That's it

If you have any problems compiling back framework-res.apk look here

Have a nice day!


Code:
<string name="default_wallpaper_component">@null</string>
Thanks for the guide.
will null specify, it accepts all wallpapers.!!!
The Following User Says Thank You to viijay4b7 For This Useful Post: [ View ] Gift viijay4b7 Ad-Free
9th March 2013, 06:47 AM |#3  
Senior Member
Thanks Meter: 226
 
More
Quote:
Originally Posted by viijay4b7

Code:
<string name="default_wallpaper_component">@null</string>
Thanks for the guide.
will null specify, it accepts all wallpapers.!!!

I need some help.. I did this and I had no problem but others are reporting they cannot flash my rom with this change in effect. Going back to stock
framework-res they have no problem.. SOOO any Ideas??? They flash it and than their phone locks up and they do a battery pull and upon reset it will not start
at all..
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes