[HOW TO] Set a statusbar backround image for JB SystemUI.apk - Samsung Galaxy Nexus

Hello Everyone,
as the Title says. We like to mod the statusbar of our Gnex with an backround image.
I tried and searched long to find out how to and finally I found this:
http://forum.xda-developers.com/showthread.php?t=1814441
and I can say this works, but you have to follow some steps of mine, so this really really works.
At first I will give credits to powerpoint45, he is the man, who has done all this getting to work. Please hit his thanks-button!!!!
Ok, now we start:
1. Step is, to download the files of powerpoint45 thread
2. Step is to follow his guide, but this is new: use the framework-res of your rom you like to use
So first install the framework-res.apk of your ROM and then install the SystemUI.apk of your ROM
When the SystemUI is successfully decompiled, there you can see a folder "SystemUI"
Go into this folder and then go into the res folder and then into the "drawable-xhdpi" folder
Here you will find a file called "status_bar_bg_tile", this file you can change out with a png you want, but the file must have the SAME name. The size of the png should be 720x30 (CREDITS HERE TO BANKS)
When you replaced this file with the one of your choice , you have to go to the folder /res/values
Here you pick out the drawable.xml
Open with notepad++
edit line 5 into this: @drawable/status_bar_bg_tile
Save the file
Now, make the way Powerpoint45 recompiles, but before you have to copy the META_INF and manifest.xml from the ORIGINAL SystemUI.apk into the decompiled SystemUI folder.
It is possible that you will not see an builded apk like the terminal says, so try this command:
java -jar apktool.jar b SystemUI
After that, there should be a new folder called "dist", here you will find the new SystemUI.apk
Install the new SystemUI the way you like. I use push via adb - then fix permissions (IMPORTANT)
Last Thanks to Powerpoint45 and Banks
I hope this helps you to customize your Gnex a little more!!!
If I missed something, correct me! This is my first little how to! AND SORRY FOR MY BAD ENGLISH!

Pete2506 said:
Hello,
I used the search function, but did not find an answer for my question. I want to theme my statusbar. And want to change the image of the backround image. But in jellybean the png has another name than in earlier android versions.
So I want to know what is the name of the backround image and what is the correct size for the png I want to use.
I hope themers can help.
Click to expand...
Click to collapse
Image is called status_bar_bg_tile.png Found in SystemUI.apk res/drawable-xhdpi
Change it to w/e
Go into SystemUI.apk res/values/drawables.xml
Open it.
Change the line out that calls out the statusbar color with this
<drawable name="status_bar_background">@drawable/status_bar_bg_tile</drawable>
Save, Recompile,Flash, Profit, lol
Edit: I always made them 720x30 for the size

BaNkS said:
Image is called status_bar_bg_tile.png Found in SystemUI.apk res/drawable-xhdpi
Change it to w/e
Go into SystemUI.apk res/values/drawables.xml
Open it.
Change the line out that calls out the statusbar color with this
<drawable name="status_bar_background">@drawable/status_bar_bg_tile</drawable>
Save, Recompile,Flash, Profit, lol
Edit: I always made them 720x30 for the size
Click to expand...
Click to collapse
Is it possible to resize the image I want, rename the file and make a zipthemer file?
Sent from my HTC Renovatio VXR

Pete2506 said:
Is it possible to resize the image I want, rename the file and make a zipthemer file?
Sent from my HTC Renovatio VXR
Click to expand...
Click to collapse
Yeah, you should be alright to resize the image. I don't think you can just make a zipthemer mod since the stock SystemUI calls out an image HEX color instead of an actual image. You would still have to decompile your SystemUI and make that XML edit. After you made that edit, you can rename the statusbar png to w/e you want and make the necessary changes to the XML to call out that image.
Example: <drawable name="status_bar_background">@drawable/whatever your image name is.png</drawable>

drawable.xml is not available in the rom I use. I found an status_bar_bg.xml, but I am not able to open it with notepad++. Decompiling only show *.smali so no xml files

I managed to change the image that I want but still black is shown in statusbar, so wich xml file to edit so that the image is shown?
I attached the sysui.apk The rom I use is jbsourcery2.1
Maybe someone could help better.
Watch out the status_bar_bg_tile.png it is now an image with size 720x30

You should be able to just put an image in the xhdpi folder called status_bar_background.png. I don't recall needing to change any XML to add an image
Sent from my SPH-L710 using xda premium

nbeebe24 said:
You should be able to just put an image in the xhdpi folder called status_bar_background.png. I don't recall needing to change any XML to add an image
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
I have done it, you can see it in the attached file, the image does not change. Status bar is still black
AHHH..., you mean such adding this file
Sent from my GNex Renovatio VXR

I decompiled your SystemUI apk and see what you did wrong. You need to have an image name status_bar_background.png as I said before. Not the tile one. Try this and see if it works http://www.mediafire.com/?cka1374omcxny1h

Send me your framework-res.apk I'll take a crack at it

- delete -

-DELETE

Could you show us where we can get the title bar image you used.

looky

powerpoint45 said:
Could you show us where we can get the title bar image you used.
Click to expand...
Click to collapse
Here you go!!!
ALL CREDITS FOR THE ORIGINAL PNG TO SCAR FROM MY OLD DESIRE ROM

Does so much people only like the black boring Statusbar?
Doing this, makes it even possible to set a complete transparent Statusbar.
Hm..., somebody interested in Silver Stausbar Icons? Like this:

Pete2506 said:
Does so much people only like the black boring Statusbar?
Doing this, makes it even possible to set a complete transparent Statusbar.
Hm..., somebody interested in Silver Stausbar Icons? Like this:
Click to expand...
Click to collapse
That looks awesome
Sent from my Galaxy Nexus using xda app-developers app

Thanks for the tutorial. Works like a charm. Question though, has anybody else tried to make a transparent status bar? Mine always reverts back to black and I was just wondering if anyone else had the same problem.
Sent from my Galaxy Nexus using xda app-developers app

Dawei87 said:
Thanks for the tutorial. Works like a charm. Question though, has anybody else tried to make a transparent status bar? Mine always reverts back to black and I was just wondering if anyone else had the same problem.
Sent from my Galaxy Nexus using xda app-developers app
Click to expand...
Click to collapse
Are you using a tablet because I don't think u can make it transparent in tablet mode.
Sent from my Amazon Kindle Fire using xda app-developers app

powerpoint45 said:
Are you using a tablet because I don't think u can make it transparent in tablet mode.
Sent from my Amazon Kindle Fire using xda app-developers app
Click to expand...
Click to collapse
Right now I'm not using tablet mode or anything. I am using a galaxy nexus and when I make it transparent it will look as intended, but then when I open an app or menu and return to the home screen it stays black and the transparency isn't there anymore. Tried using custom images and also just tweaking the colors in the files but both have the same results. I'm stumped at this point.
Sent from my Galaxy Nexus using xda app-developers app

Related

White clock and date

Does anyone know how to change the clock color to white I have no clue where its stored
Sent from my T-Mobile G2 using XDA App
Guessing you installed the leaked CM rom? If so, yes, the default is white. Go into SETTING>CYANOGEN MOD SETTINGS>USER INTERFACE>STATUS BAR and go through the options to enable/disable, as well as change colors. Should appear right as you change them.
No I themed it myself I was just wondering if someone knew how the change that
Sent from my T-Mobile G2 using XDA App
It involves modifying a file called classes.dex within a .jar but the instructions don't match up for this device. The file isn't structured the same so changing the font color for the status bar is going to be tricky until someone figures it out...
download and extract the attached zip
put services.jar in the framework folder
put status_bar.xml in the layout folder in framework-res.apk
im assuming you know the rest lol if not pm me
I tried pushing the framework-res.apk and that was a derka derka moment. Completely borked my device. I know no other way.
So I've been trying to create a flashable .zip or metamorph for this modification but am obviously not smart enough.
Is it possible for this to be done by someone else? Or has it already been done and we're not using the search tool well enough?
Ok I deodexed my own rom and got the white clock thanks
Sent from my T-Mobile G2 using XDA App

[Q] adding battery % mod to existing theme

I've been reading the theme guides and, time permitting, would like to start playing around. I've been comparing files from the stock theme template to crakes battery percent mod found here: http://forum.xda-developers.com/showthread.php?t=793805&highlight=battery+mod and have been trying to figure out how to use it in another theme. Is it as simple as adding the extra stat_sys_battery_#.png's or does something else have to be done to the framework-res.apk to get the phone to point to the added pngs? I hope thats understandable, thanks in advance for your help all!
amosher13 said:
I've been reading the theme guides and, time permitting, would like to start playing around. I've been comparing files from the stock theme template to crakes battery percent mod found here: http://forum.xda-developers.com/showthread.php?t=793805&highlight=battery+mod and have been trying to figure out how to use it in another theme. Is it as simple as adding the extra stat_sys_battery_#.png's or does something else have to be done to the framework-res.apk to get the phone to point to the added pngs? I hope thats understandable, thanks in advance for your help all!
Click to expand...
Click to collapse
If your theme has 1% intervals already its just a matter of swapping the png files. If the theme don't your gonna have to devompile the apk and edit 3 xml files then recompile
Sent from my SPH-D700 using XDA App
okay, ya thats what i was wondering. any help on the xml files to edit and how? i've got apk manager and have it decompiled, i dont see anything that jumps out.
EDIT: okay i've got in the drawable folder stat_sys_battery, stat_sys_battery_charge, stat_sys_battery_charge_err_vinsq, stat_sys_battery_charge_vinsq, stat_sys_battery_vinsq. my guess is its 3 of those, i guess i can just compare the stock theme with the stock battery mod to see what to do.
amosher13 said:
okay, ya thats what i was wondering. any help on the xml files to edit and how? i've got apk manager and have it decompiled, i dont see anything that jumps out.
EDIT: okay i've got in the drawable folder stat_sys_battery, stat_sys_battery_charge, stat_sys_battery_charge_err_vinsq, stat_sys_battery_charge_vinsq, stat_sys_battery_vinsq. my guess is its 3 of those, i guess i can just compare the stock theme with the stock battery mod to see what to do.
Click to expand...
Click to collapse
You can do that but do you know how to add a line to an xml file
Sent from my SPH-D700 using XDA App
mysteryemotionz said:
You can do that but do you know how to add a line to an xml file
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
in general, yes, but i may not know how for these purposes. what might i be missing?
There's an even easier way.
start adb
and type adb pull /system/framework/framework-res.apk framework-res.apk
(grab frameworkTW-res.apk*i think* if you want it for touchwiz instead)
Next
go here UOT Kitchen
select flashable .zip
go through the stuff
upload the framework-res.apk you just pulled.
wait a bit download package and move to sd card then browse and install it and reboot.
TADA!
art3mis-nyc said:
There's an even easier way.
start adb
and type adb pull /system/framework/framework-res.apk framework-res.apk
(grab frameworkTW-res.apk*i think* if you want it for touchwiz instead)
Next
go here UOT Kitchen
select flashable .zip
go through the stuff
upload the framework-res.apk you just pulled.
wait a bit download package and move to sd card then browse and install it and reboot.
TADA!
Click to expand...
Click to collapse
very interesting, i'll certainly check that out. though i am interested also in learning how to do it myself, but that looks pretty cool!
art3mis-nyc said:
There's an even easier way.
start adb
and type adb pull /system/framework/framework-res.apk framework-res.apk
(grab frameworkTW-res.apk*i think* if you want it for touchwiz instead)
Next
go here UOT Kitchen
select flashable .zip
go through the stuff
upload the framework-res.apk you just pulled.
wait a bit download package and move to sd card then browse and install it and reboot.
TADA!
Click to expand...
Click to collapse
Thee problem with this is if there's any edited .9 pngs in the theme the out come is ****
Sent from my SPH-D700 using XDA App
mysteryemotionz said:
Thee problem with this is if there's any edited .9 pngs in the theme the out come is ****
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
so how about this: i pull the xmls from crakes framework-res.apk (do i need anything from twframework-res.apk?), recompile into the framework-res.apk from the theme i'm hacking, then dump the pngs into drawable-hdpi from the % mod i want to include and just make sure theres an image for each line in the xmls. sound good?
amosher13 said:
so how about this: i pull the xmls from crakes framework-res.apk (do i need anything from twframework-res.apk?), recompile into the framework-res.apk from the theme i'm hacking, then dump the pngs into drawable-hdpi from the % mod i want to include and just make sure theres an image for each line in the xmls. sound good?
Click to expand...
Click to collapse
Sounds great but just remember if your theme has any edited .9.pngs you will get errors with the framework.
What there are you trying to edit?
Sent from my SPH-D700 using XDA App
mysteryemotionz said:
Sounds great but just remember if your theme has any edited .9.pngs you will get errors with the framework.
What there are you trying to edit?
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
basically i want to work in a battery % mod into the theme from AOSP Magic (partially just to see if i can do it ). when you say "has any edited .9.pngs" do you mean if i edit any? or if the theme contains any that are already edited.
amosher13 said:
basically i want to work in a battery % mod into the theme from AOSP Magic (partially just to see if i can do it ). when you say "has any edited .9.pngs" do you mean if i edit any? or if the theme contains any that are already edited.
Click to expand...
Click to collapse
If the theme has any edited already out if you edited any
Sent from my SPH-D700 using XDA App
mysteryemotionz said:
If the theme has any edited already out if you edited any
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
ya i'm a little confused at that point on how i'd handle that. anywhere i can read up on that?
so basically if the theme i want to mod has .9.pngs that were edited from stock, when i decompile and recompile with the new xmls its going to break something? if so, what would i do? use the battery % mod theme and dump the drawable-hdpi folder into the apk after?
amosher13 said:
ya i'm a little confused at that point on how i'd handle that. anywhere i can read up on that?
so basically if the theme i want to mod has .9.pngs that were edited from stock, when i decompile and recompile with the new xmls its going to break something? if so, what would i do? use the battery % mod theme and dump the drawable-hdpi folder into the apk after?
Click to expand...
Click to collapse
What I do is modify the xml files ona stock framework. Make all the changes I need then recompile. Once compiled its a matter of dragging and dropping the pngs
Sent from my SPH-D700 using XDA App
mysteryemotionz said:
What I do is modify the xml files ona stock framework. Make all the changes I need then recompile. Once compiled its a matter of dragging and dropping the pngs
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
gotcha, perfect thanks!

Cm9 default theme

how do i change default cm9 theme!?
Hi.I will try to help you.So:
Here is link for themes compatible with CM9/AOKP: http://forum.xda-developers.com/showthread.php?t=1643406
Here is LCD Density modder: https://play.google.com/store/apps/...re=search_result#?t=W251bGwsMSwxLDEsImNvbS5ia XJkYXBpLmFuZHJvaWQuZHBpIl0
And here is a tutorial for "how to install a theme on cm9" : http://forum.xda-developers.com/archive/index.php/t-1668910.html
Hope i helped.Have a good night and sorry for my English.
Thanks but you miss understood i mean like when you flash the rom it applies the system theme i want to change it too another theme
+1
please
Romiui said:
+1
please
Click to expand...
Click to collapse
Install the CM9 theme you want and apply it in Settings>Themes..
varun26296 said:
Install the CM9 theme you want and apply it in Settings>Themes..
Click to expand...
Click to collapse
Dud !!
I know thattt
Am making from !! I want to make my theme default theme .
The system cm theme always the default
I make them I need it default and I need to delete the system theme
Got it ??
Romiui said:
Dud !!
I know thattt
Am making from !! I want to make my theme default theme .
The system cm theme always the default
I make them I need it default and I need to delete the system theme
Got it ??
Click to expand...
Click to collapse
So you want to set a Theme default during the first boot..
I don't exactly how to do it but you could ask @thehacka1 about it..He can help you with that..
varun26296 said:
So you want to set a Theme default during the first boot..
I don't exactly how to do it but you could ask @thehacka1 about it..He can help you with that..
Click to expand...
Click to collapse
I send him and am waiting his replay =)
Thanks dud ... =)
I'm here. Now I'm guessing you want to change default cm theme to your preference on boot. You will have to theme framework. Give me the theme you want and the rom. I will change the system theme.
Sent from my GT-I8190N using xda app-developers app
thehacka1 said:
i'm here. Now i'm guessing you want to change default cm theme to your preference on boot. You will have to theme framework. Give me the theme you want and the rom. I will change the system theme.
Sent from my gt-i8190n using xda app-developers app
Click to expand...
Click to collapse
ok ! =)
btw . Can u make guide for that please ?
We all need it to save ur time =)
Romiui said:
ok ! =)
btw . Can u make guide for that please ?
We all need it to save ur time =)
Click to expand...
Click to collapse
Actually I only need a link to the theme.apk. Sorry about that.
Sent from my GT-I8190N using xda app-developers app
thehacka1 said:
Actually I only need a link to the theme.apk. Sorry about that.
Sent from my GT-I8190N using xda app-developers app
Click to expand...
Click to collapse
AHA !
Please Follow ( http://www.mediafire.com/download/o1f9abd4a47c94t/CM-Z1.apk )
Thnaks
IS THAT RELATED ?
You can start by just copying and extracting the framework-res.apk in the system/framework folder of any theme. I recommend using a stock deodexed theme template as this will give you a good foundation to build from. After you extract the framework-res.apk look in the res/drawable-mdpi folder. That is where most of the icons will be that are used for theming. You can pull any of the .png's and edit them this way. DO NOT mess with any of the icons labeled .9.png when editing the framework-res.apk this way (see info on .9's below). And don't (generally) don't change the size of the png's you edit.
When getting started the best way I found to figure out which images are used where was to flash the same theme as the one I am editing to my phone so I can look at the phone and try to figure out where the icon (image) is being used. If I still can't find it then I will take my best guess and color the image something bright like red or another color thats not used in the theme I'm making. Then I put the color edited icon in my theme and flash it (see below) then go through my phone and find whats red.
After you edit all the .png's you want and are ready to put your theme back together:
Open a copy of the original theme that you used as a base and open the system/framework/framework-res.apk in 7zip. DO NOT extract it. Just open it. Then go to res/drawable-mdpi (or whatever folder you edited the icons in) and place your edited icons back into this folder. After you finish, close 7zip, rename your new theme so you don't confuse it with the theme template you are using and flash away.
I'm not going to go into great detail about how to do the things below because I simply don't have the time. I have given you enough information that you should be able to google and look for guides on youtube that will get you through the process below.
When editing .9.png's (commonly refered to as .9's) you need to pick up some software. First you'll need to download and install the jdk and jre. Google them. They are on Java's web site. Once you get those installed you'll need to get apk tool or apk manager, I prefer apk tool myself, and decompile the framework-res.apk to be edited.
If you edit the .9's but stay away from that one pixel wide border you won't have to patch your .9's. This is what I do. When I open a .9 to edit the first thing I do is draw a selection box around the image making sure to stay clear of the one pixel wide border. This way all my changes stay inside the selection box. If you ever do decide you need to patch your .9's there is a program called draw9patch that will do this for you.
Happy Theming!!
You just wrote your own guide.
Sent from my GT-I8190N using xda app-developers app
thehacka1 said:
You just wrote your own guide.
Sent from my GT-I8190N using xda app-developers app
Click to expand...
Click to collapse
ok ,, but i still waiting ur Theming

Change Status Bar png

I'm looking to change the png of the status bar(which hold the clock/running apps, running service), however I can't seem to locate the files for it.
I've done it before but forgot, it's located somewhere in systemui or framework-res, but can't recall the name.
ryojin said:
I'm looking to change the png of the status bar(which hold the clock/running apps, running service), however I can't seem to locate the files for it.
I've done it before but forgot, it's located somewhere in systemui or framework-res, but can't recall the name.
Click to expand...
Click to collapse
If u use app ninjamorph u can extract systemui and framework-res .In one of the extraction folder u will find xhdpi folder u will find the statusbar PNG.anyone correct me if I am wrong
Sent from my Xperia S using xda app-developers app
I am also interested in changing the transparency in the notification bar in CM9. As far as i read you have to pull SystemUI.apk, framework-res.apk from your phone, decompile it, change code then push it back in phone. I don't really know how to work with ApkTool so if anyone has an easier method for the uneducated, i will be very grateful.

[Request] Cyan Stock Battery & Cyan Internet Traffic Arrows

Can anyone make this mod? Or help me how to make this mode.
Im using MC3 and I love the Cyan colour on my phone than this stock green.
I want ro Stock batter and Stock Internet & Wifi Arrows but just in Cyan Colur.
Like This pic.
Can anyone Help me about it please?
I decompiled the framework-res.apk but couldnt find anyting to change colour
Joy` said:
I decompiled the framework-res.apk but couldnt find anyting to change colour
Click to expand...
Click to collapse
Look into SystemUI.apk, not in framework
I decompiled SystemUi.apk
Its about 2.4 Mb. change my battery colours (you can see on the attach)
But when i compile again it was 1.7 Mb. Unsigned
I signed Apk and still same 1.7 Mb.
Its my first time to decompile any apk.
I think i made something wrong
Any idea for this Noob User? :angel:
Size is not important. Often a compile of something you decompile will come out smaller. This shouldn't be used as an indicator of anything
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
Size is not important. Often a compile of something you decompile will come out smaller. This shouldn't be used as an indicator of anything
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
I replaced the new systemUI.apk to system/app give permission rw-r--r-- but. Status bar dont shown and systemUI force close
Sent from my GT-I9300 using xda premium
In that case you have done something wrong
You don't even need to decompile to swap images anyway. Just open the zip (NOT extract) with winrar, 7zip or linux archive manager, delete the images you want and drag the new images (which must have the exact same name - case sensitive) in. If it asks for compression,.choose "store" or "no compression"
You only need to decompile and recompile if you're changing resources and xml files
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
In that case you have done something wrong
You don't even need to decompile to swap images anyway. Just open the zip (NOT extract) with winrar, 7zip or linux archive manager, delete the images you want and drag the new images (which must have the exact same name - case sensitive) in. If it asks for compression,.choose "store" or "no compression"
You only need to decompile and recompile if you're changing resources and xml files
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Hahaha. IT work Lol. I did not thinks thats easy like this.
You are Parfect Mate.! Very Thanks :good:
yep, very easy if only images.
And Ta taa!!
Sent from my GT-I9300 using xda premium

Categories

Resources