Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,560 Members 52,531 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE][HOW-TO] Use custom image as Android system background[TW+AOSP]

Tip us?
 
mannyvinny
Old
#1  
mannyvinny's Avatar
Recognized Contributor - OP
Thanks Meter 4,241
Posts: 2,704
Join Date: Oct 2012
Location: Varanasi

 
DONATE TO ME
Default [GUIDE][HOW-TO] Use custom image as Android system background[TW+AOSP]


With the new KitKat update, Android uses black color as System background. In JellyBean,it used to be a png image which resides in framework/drawable folder. But in KitKat, that png has been removed and now it uses solid black color. So here's a method to use custom image as your system background instead of black color.


1.Decompile framework-res.apk
2.Open drawable folder and find this xml file-

Quote:
tw_background_holo_dark.xml
Replace this line-
with this-
3.Now navigate to res\drawable-sw360dp-xhdpi (it may be xxhdpi for high-res devices)
4.Paste your png file here and rename it to tw_background_holo_dark.png
5.Now recompile framework-res.apk

6.Finally push META-INF and Android Manifest.xml in your compiled apk and then zip align it.
Here's a screenshot from my 4.4.2 TW KitKat ROM-



The Following User Says Thank You to mannyvinny For This Useful Post: [ Click to Expand ]
 
lucaoldb
Old
#2  
Senior Member
Thanks Meter 122
Posts: 377
Join Date: Apr 2012
Location: MILAN
Default Missing line?

Sorry, I just can read

Replace this line-
with this-

Can you share the code, please?

Tried 3 or 4 times by myself, but something went wrong (though I had been able to recompile the apk).

Thanks.
 
lucaoldb
Old
#3  
Senior Member
Thanks Meter 122
Posts: 377
Join Date: Apr 2012
Location: MILAN
Never mind, I did it by myself, though I faced some errors in recompiling.

Anyway, I just had to decompile the framework, remove tw_backgroubd_holo.xml, add the corresponding png file into the drawable folder and recompile and it worked.
 
Krejouche
Old
#4  
Junior Member
Thanks Meter 0
Posts: 12
Join Date: Dec 2010
Hi! I can't read the lines either...
Would anyone be kind enough to fill in the OP's blanks? Would be very helpful, thanks.
 
immyrock
Old
#5  
Junior Member
Thanks Meter 0
Posts: 15
Join Date: Jun 2012
Location: Gujrat
nice one bro
 
babycastle
Old
#6  
Junior Member
Thanks Meter 0
Posts: 12
Join Date: Sep 2014
Kudos
I'll try it later.
 
Strawberry_dev
Old
#7  
Strawberry_dev's Avatar
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Sep 2014
Very useful guide! thx

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


And the Winners in the XDA Pebble Development Challenge Are…

Almost two months ago, we set out with Pebble to findthree amazing … more

MediaTek Releases Full Kernel Source for First Android One Devices

Those who might have thought that MediaTek wouldnever release working … more

Submitting a Patch to Gerrit – Featuring XplodWild – XDA Developer TV

Not every developer specializes in every area of … more

Learn How to Make a Live Wallpaper all by Yourself

Stillimages can bebeautiful, but some of you prefer to see animations on your screens. … more