[Q] which to theme framework-res or system-ui .apk? - Verizon Droid Incredible 2

I've noticed many of the pngs for the UI are in both framework-Res and systemui.apks the system seems to get its images from systemui.apk but I know they're in framework for a reason. I've also noticed pngs in framework-res that aren't even used like from gingerbread and its a ics rom. Anyone have any insight?

moddernate said:
I've noticed many of the pngs for the UI are in both framework-Res and systemui.apks the system seems to get its images from systemui.apk but I know they're in framework for a reason. I've also noticed pngs in framework-res that aren't even used like from gingerbread and its a ics rom. Anyone have any insight?
Click to expand...
Click to collapse
if you are using ics (or any aosp) theres less to deal with than sense, but it still somewhat confusing
*most* system images come from framework-res.apk, systemui is mostly status bar and pull down images, and in ics battery images move to sys ui as well

Related

CM7 Status Bar Messed Up

Is it just me or is this a bug in the rom? I did do some systemui and framework editing but i cannot solve this. Basically the headers "ongoing" and "notifications" is given a space too large and the color is not showing up. also, beneath notifications where it is supposed to be transparent, it is not. I have played with the statusbar files but I may be mistaken. Can someone tell me what files corresponds to these issues?
I'm also having a problem with the contact pictures. There is a really ugly white frame around it. How can i get rid of this? Thanks for your help
From what I can see, you have selected a theme, either from the theme manager or from flashing a theme. If it was from the theme manager, revert to the system theme, I'm sure it will fix your notification issue. It's most likely a bug in the theme. Also, the area below the notifications on the stock system theme is 100% opaque, it's a google thing. It isn't transparent anymore. The framework editing you did probably further screwed up some UI stuff. Especially if you edited .9 png's without decompiling framework-res.apk, you could have some distorted images.
If selecting the system theme in the theme manager doesn't work, then wipe & reflash the ROM, whether it be RC1 or the latest nightly.
As for the contact frame, it's part of gingerbread. I'm sure it's a framework png in framework-res.apk somewhere, and if you can find it, and it doesn't have a .9 or a .9.png ending to the filename, then open it up in your favorite image editing tool and make the entire image transparent (as in raise the alpha of the layer). If it DOES have a .9 on the end of it, leave it alone, chances are, you'll only screw it up.
If I remember correctly, the contact frame, being a frame, is a .9 image, so you should probably live with it. If you REALLY know what you're doing, then you can decompile the apk, raise the alpha of the layer to 100% and redraw the .9patches with the draw9patch.bat included in the android sdk, or the executable draw9patch script in the linux version.
If you had no idea what I just said, then don't attempt it.
I actually am using system theme. I guess i can recheck all the statusbar files. They are the same ones I used in my cm 6.1 theme. I'll try searching for the frame in framework-res. I was looking in phone.apk and contacts.apk and couldn't find it.
edit: found the frame as quickcontact in framework-res but if i change that to be transparent, there will be a weird gap. the contact picture will not actually be larger.
So what happened was the 9patch file for the status bar headers didn't have any 9patch data. As for the background on the pulldown, i found out in cm7 it uses a new file "shade_bg" and that is working fine as well. Also the quickcontact frame was an easy fix. I just used transparent files for that and it doesnt show up and the contact pictures are bigger as well so everything is fine now
Ah, glad you found the culprit. Yeah, those 9patch pngs suck. I ran into major issues with them when making a theme for the stock rom, had to redo a lot of it after realizing I had to decompile the apk first.
Sent from my T-Mobile myTouch 3G Slide

[Q] Theming Nils Gingersense

I have been using Nils Gingersense for two days now and love it. One problem I have is the notification icons are ugly. I used to have Riptide's status bar Mod on Chingy's Incredibly Reengineered ROM and love those icons. Is there a way to get those on Gingersense? I have tried to Metamorph like in Inc Reen. but it didn't work. Any help is greatly appreciated.
You'd have to get the icons you want, and use a program like 7zip to open the framework-res.apk and com.htc.resources.apk to add the icons, as that's where they live. I haven't seen any mods for this really as far as full blown themes go, but that'd be how you'd do it.
You could use ADB to pull the framework-res and com.htc.resources apk's from your phone to see if the icon names match. If not, you'd have to rename the icons you want to the names of the icons that exist in the apks already. If you simply just replace the icons with new ones and they are named something different, it won't work. Make sense?

[Q] Pull Down Bar Background

Hello i was wanting to know how to change the image in the pulldown bar like you see in the UOT kitchen and if its possible to change the top buttons images like the wifi on / off and 4G on /off ect or the whole button itself
there in the SystemUI.apk located in system/apps
res/drawablehdpi folder
just edit in any image editor but try and stay away from the .9.pngs they are special and a pain in the bum.
you can just change .apk to .zip to unzip then rezip and rename.apk
you want the quicklaunch icons for the drop down icons
and status_bar_background for the actual background
thank you bro for such a fast answer
no problem i just happen to be trollin through
do you happen to know were the battery images are ?
and if i could just remove all the stock ones with ones from another theme for my phone ?
battery images are in framework-res
system/framework
if using ones from another phone you'll probably need to do some renaming
most roms currently on our phone use full 100 % increments
if i remember correctly there are 203 total 100 unplugged
100 plugged and a full empty and unknown
thanks again you have been a huge help
anytime
if noone shares the info this stuff can be a royal pain.
If you use the UOT Kitchen and keep getting errors, try un-checking Patch9 autofix. This will not decompile the 9patch images and may allow your theme to build. It worked for me with modding ACS Ice Cream Sandwich Theme (modded battery only).
thank you
and are there any other theme kitchens or rom kitchens for our phone ?
oh and i noticed there are two different default pull-down backgrounds one under systemUI.apk and one under the frameworks.apk and both are different sizes and dimensions , witch ones do i change ? or do i change both ?
the one you want for the drop down background is
status_bar_background.png
in SystemUI.apk
mjcollum said:
anytime
if noone shares the info this stuff can be a royal pain.
Click to expand...
Click to collapse
I'm fairly new to Android, coming from my FrankenPre to the Epic Touch. I want to begin editing the icons and images on my phone, and I've been exploring some ROMs ansd themes and switching up some icons, which have worked fine. However, I have no idea exactly where all the images are kept. For instance, I tried to change the stock Email icon, but the images I changed weren't right, and I was somehow left with the "Android Robot" icon.
My question is, seeing as how you know where these images reside on the phone, how do I go about knowing which icons are where, and which ones I need to change? Is there a list somewhere of the stock system images and their locations, or is it trial and error to figure out where they are? Thanks for the help.
mjcollum said:
no problem i just happen to be trollin through
Click to expand...
Click to collapse
haha "just rollin thru""

How do I replace battery icons in ICS

I'm currently using Calk's 1.6 stock based ICS rom and cannot find the percentage battery icons so I can replace them with something different. In GB it was pretty easy but I guess some things have changed with ICS. I would rather know how to do this manually, I do not want an app or use the UOT for this. Tnx.
I cannot help you with that ROM but if you look at different ROM's, particularly the Blu Kuban, there are many battery styles you can choose from. I installed this ROM last weekend and am thoroughly enjoying it. You can do lots of customization's with it.
tdunham said:
I'm currently using Calk's 1.6 stock based ICS rom and cannot find the percentage battery icons so I can replace them with something different. In GB it was pretty easy but I guess some things have changed with ICS. I would rather know how to do this manually, I do not want an app or use the UOT for this. Tnx.
Click to expand...
Click to collapse
It is really quite tricky unless you have a theming background. If I remember right the files you need to modify are in the systemui.apk. You would need to decompile it, swap the image files, recompile it and then push it to system/app.
I'd recommend going the easy route and trying ROM Toolbox Pro.
rwilco12 said:
It is really quite tricky unless you have a theming background. If I remember right the files you need to modify are in the systemui.apk. You would need to decompile it, swap the image files, recompile it and then push it to system/app.
I'd recommend going the easy route and trying ROM Toolbox Pro.
Click to expand...
Click to collapse
Oh, don't get me wrong, I'm not shy about de/recompiling apk's but in ICS I don't think its as easy as swapping out some .png files like in GB. I've already looked in systemui and framework and the battery icons are solid, whereas the rom shows the battery percentage icons.
You can use the UOT Kitchen here: http://uot.dakra.lt/kitchen/
Pick the icons you want, upload the framework files from your rom, and you get a flashable zip. Very easy (assuming they have an icon style you like of course).
TD22057 said:
You can use the UOT Kitchen here: http://uot.dakra.lt/kitchen/
Pick the icons you want, upload the framework files from your rom, and you get a flashable zip. Very easy (assuming they have an icon style you like of course).
Click to expand...
Click to collapse
Sorry, once again I want to do this manually by reprogramming systemui/framework and do not want to use any third party app or the UOT. Thanks.
The files are in the SystemUI.apk file. You need to replace ALL the files named stat_sys_battery*.png (there will usually be like 100 for % and another 100 for charge) ex: stat_sys_battery_98.png & stat_sys_battery_charge_anim99.png
You will find the files in res/drawable-hdpi
All you need to do is replace the existing ones with the new ones. I would make a backup cause stuff does go wrong. Also I find it easiest to replace the SystemUI.apk using a flashable zip file.
If you need help with any of this just let me know.
CyberpodS2 said:
The files are in the SystemUI.apk file. You need to replace ALL the files named stat_sys_battery*.png (there will usually be like 100 for % and another 100 for charge) ex: stat_sys_battery_98.png & stat_sys_battery_charge_anim99.png
You will find the files in res/drawable-hdpi
All you need to do is replace the existing ones with the new ones. I would make a backup cause stuff does go wrong. Also I find it easiest to replace the SystemUI.apk using a flashable zip file.
Click to expand...
Click to collapse
Ok, finally a sane person.
Just kidding, everyone means well...
Anyway, I am going to attach the framework & systemui.apk so you can see what I'm talking about. I am on Calk's v1.6 from here (in case you're not familiar with it, there are screenshots of the stock TW looking desktops):
http://forum.xda-developers.com/showthread.php?t=1527041
As you can see, the rom's using a 1% battery percentage icon set. However, they can not be found in either framework or systemui.
I know it should be that easy but I just don't know on this stock FE22 based rom.
Edit: There are 26 battery icons in systemui. They do appear to be similar to the ones for the rom but the numbers are missing from the icons so I'm taking a stab that somehow the numbers are superimposed over the icon and this rom does not use the entire 200 or so individual icons if that makes any sense. Gonna test that theory.
Ok, finally figured it out. The developer's aren't putting the full 1% battery icons in yet and the stat_sys_battery.xml files haven't been edited for that yet either. Guess I'll just have to change that .
Thanks everyone.
tdunham said:
Edit: There are 26 battery icons in systemui. They do appear to be similar to the ones for the rom but the numbers are missing from the icons so I'm taking a stab that somehow the numbers are superimposed over the icon and this rom does not use the entire 200 or so individual icons if that makes any sense. Gonna test that theory.
Click to expand...
Click to collapse
I confirmed the battery percentage numbers displayed on the status bar are hard coded into the stock ICS rom. I even removed all of the battery png files and the only thing that remains is a lonely little '89%' showing in the notification bar w/o the icon around it.
Anyone know where the code for that might be?
Found this too. Settings, display
Sent from my SPH-D710 using XDA
tdunham said:
I confirmed the battery percentage numbers displayed on the status bar are hard coded into the stock ICS rom. I even removed all of the battery png files and the only thing that remains is a lonely little '89%' showing in the notification bar w/o the icon around it.
Anyone know where the code for that might be?
Click to expand...
Click to collapse
Do you want me to edit the xml for ya to add the battery images and then send you the sytemui? Or I could send you the xml files to replace the old ones.
Sent from my E4GT while experiencing some Wicked Sensations™.
dazednconfused said:
Do you want me to edit the xml for ya to add the battery images and then send you the sytemui?
Click to expand...
Click to collapse
Thanks Dazed. I finally got it all figured out. What was killing me was Calk has a bad .9 png file in the systemui so it refused to recompile correctly until I corrected it.
True 1% battery (stock ICS didn't have true 1% .png's), Green Goblin sig bar, White Clock & Big Battery.
I've attached a screenshot.
Edit: I did edit the battery xml's for the 100 or so .png files I added to systemui btw. Plus I enjoy learning to do it myself. We're kinda starting over with ICS.
tdunham said:
Thanks Dazed. I finally got it all figured out. What was killing me was Calk has a bad .9 png file in the systemui so it refused to recompile correctly until I corrected it.
True 1% battery (stock ICS didn't have true 1% .png's), Green Goblin sig bar, White Clock & Big Battery.
I've attached a screenshot.
Edit: I did edit the battery xml's for the 100 or so .png files I added to systemui btw. Plus I enjoy learning to do it myself. We're kinda starting over with ICS.
Click to expand...
Click to collapse
Cool. I know the ICS apk's can be a big pain at times getting them to decompile and compile. Glad you got it man.
Sent from my E4GT while experiencing some Wicked Sensations™.
could someone explain it to me also which xml file u have to edit for battery on ics/jb ??
ive changed the png but still no luck D
AskinSavascisi said:
could someone explain it to me also which xml file u have to edit for battery on ics/jb ??
ive changed the png but still no luck D
Click to expand...
Click to collapse
Im pretty sure if you want to make changes it will be this directory SystemUI/Res/drawable their you will find stat_sys_battery xml along with the charging xml as well...
thanks found it and working now xx
Seeing this post amazes me... even the machine we know as TD was once like the rest of us. Yet another reason I love XDA.
Sent from my SPH-D710 using xda premium

Theming help (AOKP)

I want to theme my own ROM's for this phone such as AOKP. I just themed Nova Launcher to all purple. But, I want to be able to create a theme that I can flash in CWM and not just the whole ROM (either works.)
I themed Nova Launcher with GIMP, just by extracting the drawable folders, editing, exporting/replacing, then adding back to the archive and resaving.
Can anyone help me out on creating a theme so I can fully theme a ROM such as AOKP? Or even create one for the theme manager? I can already tell I would get addicted. If anyone wants to help i'd highly appreciate it, so I can slowly get into Android Development
I myself have been wanting to learn how to theme for the theme engine. Didn't really find any tutorials though. I'm pretty handy with Photoshop but know nothing about development. Would be very interested in learning about the theme engine used in CM9, AOKP, CNA, etc.
Just add ur apk to the app folder in this zip. This is a base zip that anyone can use (I took it from Overstew's theme, and erased all of his apps/framework items.)
Ascertion said:
Just add ur apk to the app folder in this zip. This is a base zip that anyone can use (I took it from Overstew's theme, and erased all of his apps/framework items.)
Click to expand...
Click to collapse
So I just edit the png's inside the folders I want edited, then move the whole folder into that folder, re-zip, and flash?
Ok so after playing with everything, I update all of the png's I wanted (which still left a lot of blue.. from AOKP). I then moved them all back into the framework-res.apk and moved that back into the archive. I got it to be flashable along with my .apks, but after I flashed it System UI kept force closing, eventually it stopped. I saw a lot of the stuff I themed was actually themed, but there was still a lot of stuff that wasn't. But what causes the force closes on System UI?
hrffd said:
Ok so after playing with everything, I update all of the png's I wanted (which still left a lot of blue.. from AOKP). I then moved them all back into the framework-res.apk and moved that back into the archive. I got it to be flashable along with my .apks, but after I flashed it System UI kept force closing, eventually it stopped. I saw a lot of the stuff I themed was actually themed, but there was still a lot of stuff that wasn't. But what causes the force closes on System UI?
Click to expand...
Click to collapse
If there's any missing pngs on the SystemUI's drawable-hdpi, it'll FC instantly because it cannot find the png require for a certain task. (For example, if you accidentally deleted a signal bar icon, it cannot display what is not there, so it'll FC.)
Ascertion said:
If there's any missing pngs on the SystemUI's drawable-hdpi, it'll FC instantly because it cannot find the png require for a certain task. (For example, if you accidentally deleted a signal bar icon, it cannot display what is not there, so it'll FC.)
Click to expand...
Click to collapse
Ok so, I don't have to change anything besides the framework-res.apk? Do I have to sign it or anything?
Also, I themed nova launcher successfully with just changing png's without any signing. But when I tried to theme Facebook, and then tried to install it, it just kept failing to install?
Sent from my SPH-D710 using XDA
hrffd said:
Ok so, I don't have to change anything besides the framework-res.apk? Do I have to sign it or anything?
Also, I themed nova launcher successfully with just changing png's without any signing. But when I tried to theme Facebook, and then tried to install it, it just kept failing to install?
Sent from my SPH-D710 using XDA
Click to expand...
Click to collapse
Same with framework-res. Any images missing will make it fc.
You only need to resign market apps. System apps do not need to be resigned.
only thing that sucks about having a white e4gt with ics... is that the menus clash with the product color lol. not that its that big of an issue, but i came across this theme http://forum.xda-developers.com/showthread.php?t=1654546 and am guessing it takes a lot of work to apply a white theme similar to this?
i tried flashing the syk sky theme on my phone just to see what would apply, and the majority of it did; however, there were some conflicts as i expected.
is there any way i could use some of what has already been created with this theme to work with the e4gt correctly? if so, any direction/info would be appreciated.
hrffd said:
I want to theme my own ROM's for this phone such as AOKP. I just themed Nova Launcher to all purple. But, I want to be able to create a theme that I can flash in CWM and not just the whole ROM (either works.)
I themed Nova Launcher with GIMP, just by extracting the drawable folders, editing, exporting/replacing, then adding back to the archive and resaving.
Can anyone help me out on creating a theme so I can fully theme a ROM such as AOKP? Or even create one for the theme manager? I can already tell I would get addicted. If anyone wants to help i'd highly appreciate it, so I can slowly get into Android Development
Click to expand...
Click to collapse
Try here and see if it helps ............... http://forum.xda-developers.com/showthread.php?t=916814
renzyyy said:
only thing that sucks about having a white e4gt with ics... is that the menus clash with the product color lol. not that its that big of an issue, but i came across this theme http://forum.xda-developers.com/showthread.php?t=1654546 and am guessing it takes a lot of work to apply a white theme similar to this?
i tried flashing the syk sky theme on my phone just to see what would apply, and the majority of it did; however, there were some conflicts as i expected.
is there any way i could use some of what has already been created with this theme to work with the e4gt correctly? if so, any direction/info would be appreciated.
Click to expand...
Click to collapse
In case you didn't know, with samoled+ screens you want the most dark pixels as possible to save battery because a black pixel is completely off consuming no power. That being said, a white theme will just completely destroy your battery life...
Sent from my SPH-D710 using Tapatalk 2
yeah i know, but i wanted to give it a shot & see what kinda impact it would have first hand. i always have an extra battery on me to swap out haha
ill just deal with what i got and try one with transparency or something. thanks for the response.
This is the absolute best place to learn to theme
http://forum.xda-developers.com/showthread.php?t=1320891
xda moderator/recognised contributer

Categories

Resources