I tend to be more of a lurker than anything else around here, but I've wasted enough time on my own so here's my question.
Basically I want AOSP style (filled in) signal and wifi icons on my stock HTC 10. It seems that there is only one substratum/layers theme for this, and the icons are in png format rather than xml and don't look quite right, so that's a no go.
Upon decompiling stock SystemUI (currently using US Unlocked 2.28.617.8 firmware) it looks like HTC left the AOSP resources in /res/drawable, named stat_sys_wifi_(whatever) and stat_sys_signal_(whatever) but they never get loaded. Instead it looks like /systemui/statusbar/phone/PhoneStatusBar loads up /systemui/statusbar/policy/HTCGenericNetworkController which references the lame png icons located in /res/drawable-xxxhdpi-v4. Can anyone familiar with editing smali give me some pointers? I've tried several edits but they fail horribly each time. Also if there's an easier way I'm all ears. Attached is a zip of my decompiled SystemUI for convenience. Thanks!
skyhawkrr said:
I tend to be more of a lurker than anything else around here, but I've wasted enough time on my own so here's my question.
Basically I want AOSP style (filled in) signal and wifi icons on my stock HTC 10. It seems that there is only one substratum/layers theme for this, and the icons are in png format rather than xml and don't look quite right, so that's a no go.
Upon decompiling stock SystemUI (currently using US Unlocked 2.28.617.8 firmware) it looks like HTC left the AOSP resources in /res/drawable, named stat_sys_wifi_(whatever) and stat_sys_signal_(whatever) but they never get loaded. Instead it looks like /systemui/statusbar/phone/PhoneStatusBar loads up /systemui/statusbar/policy/HTCGenericNetworkController which references the lame png icons located in /res/drawable-xxxhdpi-v4. Can anyone familiar with editing smali give me some pointers? I've tried several edits but they fail horribly each time. Also if there's an easier way I'm all ears. Attached is a zip of my decompiled SystemUI for convenience. Thanks!
Click to expand...
Click to collapse
/system/customize/ACC/default.xml
change those lines, so they look like:
<item type="integer" name="signal_icon_level_cdma">4</item>
<item type="integer" name="signal_icon_level_gsm">4</item>
stock value should be 5
j to the 4n said:
/system/customize/ACC/default.xml
change those lines, so they look like:
<item type="integer" name="signal_icon_level_cdma">4</item>
<item type="integer" name="signal_icon_level_gsm">4</item>
stock value should be 5
Click to expand...
Click to collapse
Thanks for replying! I made those edits and it did switch the signal to 4 instead of 5 bars, but is there any way to have the whole triangle filled in? Same for wifi, just like on an aosp/cm/lineage based rom. I'll keep digging around in that default.xml though
skyhawkrr said:
Thanks for replying! I made those edits and it did switch the signal to 4 instead of 5 bars, but is there any way to have the whole triangle filled in? Same for wifi, just like on an aosp/cm/lineage based rom. I'll keep digging around in that default.xml though
Click to expand...
Click to collapse
mhhh, on Android M it showed the AOSP icons...what was the stock setting for sprint.
I changed it to 5 there intstead, so our statusbar theming engine works.
Not sure if you are into custom roms, but we have a feature to apply custom icons/icon sets to the statusbar.
skyhawkrr said:
I tend to be more of a lurker than anything else around here, but I've wasted enough time on my own so here's my question.
Basically I want AOSP style (filled in) signal and wifi icons on my stock HTC 10. It seems that there is only one substratum/layers theme for this, and the icons are in png format rather than xml and don't look quite right, so that's a no go.
Upon decompiling stock SystemUI (currently using US Unlocked 2.28.617.8 firmware) it looks like HTC left the AOSP resources in /res/drawable, named stat_sys_wifi_(whatever) and stat_sys_signal_(whatever) but they never get loaded. Instead it looks like /systemui/statusbar/phone/PhoneStatusBar loads up /systemui/statusbar/policy/HTCGenericNetworkController which references the lame png icons located in /res/drawable-xxxhdpi-v4. Can anyone familiar with editing smali give me some pointers? I've tried several edits but they fail horribly each time. Also if there's an easier way I'm all ears. Attached is a zip of my decompiled SystemUI for convenience. Thanks!
Click to expand...
Click to collapse
It's probably not the method you're looking for, but I'm also a fan of the solid look, so I just drew the icons in that style and swapped them in /res/drawable-xxxhdpi-v4. You're welcome to them if you want (attached).
j to the 4n said:
mhhh, on Android M it showed the AOSP icons...what was the stock setting for sprint.
I changed it to 5 there intstead, so our statusbar theming engine works.
Not sure if you are into custom roms, but we have a feature to apply custom icons/icon sets to the statusbar.
Click to expand...
Click to collapse
I see. Well I tried the magisk version of Viper and it was pretty neat but even using an icon pack the spacing was a little off. Oh well...
itiskonrad said:
It's probably not the method you're looking for, but I'm also a fan of the solid look, so I just drew the icons in that style and swapped them in /res/drawable-xxxhdpi-v4. You're welcome to them if you want (attached).
Click to expand...
Click to collapse
Thanks! I might just use these for the time being until I figure out another way. The thing that drives me nuts is how even with edited icons Sense just gets the scaling and spacing of the icons totally wrong I would just flash Lineage but I don't want to break SafetyNet
Related
I was wondering if there is an easy way for me to see which of the icons under the SystemUI.apk/res/drawable-hdpi folder are actually used in my rom? I am going to modify the colors but notice that a bunch of those are not even used.
I noticed that I can do that with the UOT kitchen, but when I installed the new SystemUI.apk not all of the icons were changed to the color I put in. So, I figured I will just go in and do it manually. It will be a learning experience anyway.
I am just getting into customizing and it is pretty fun. As long as I don't screw it up too much.
Thanks,
Jeff
My suggestion would be to grab another theme for the rom you are running, from an established themer, and rip the drawable-hdpi folder out of that SystemUI.apk to see what they have themed. Also helps in pointing out those real pesky icons that you only rarely see but are used.
oh.. and keep an eye out for those crazy .9png's!!!
Hi there I have just got my SGSII
i've been able to root it and install TW4.5 and pretty much have the device exactly how I want it with just one gripe
The drop down of the notification bar is way too dark especially for notifications with black fonts.
Can anyone point me to any kind of guide or way of changing the the background graphic for this drop down?
Thanks in advance
Everything you'll ever need to know
forum.xda-developers.com/showthread.php?t=916814
dully79 said:
Everything you'll ever need to know
forum.xda-developers.com/showthread.php?t=916814
Click to expand...
Click to collapse
Hey man thans very much for the resources they helped me find what I needed.
however the methods of editing seemed very complex for my needs ....
Since I only wanted to change some of the png graphics slightly (just to lighten them up) I opened the framework-res.apk and the systemui.apk in winrar extracted the png's I wanted lightened them up with irfanview dropped them back in the still open apk in winrar and then copied the apk's back where the originals were (renaming the originals .bak first).
I didn't change any .odex or .jar files in any way and I have kept backups of all the originals just in case so I only have one question for you.
can you think of any reason my simple method, for graphics only, would have caused any harm?
it doesn't seem to have after a reboot it seems to have had the desired affect on the notfication bar (which was to make all notifications readable whether they had black or white fonts)
There are 2 kinds of PNG files. Ordinary PNG files can be edited without any problems, but to properly edit .9 png's, you need to decompile the apk first, make changes and then recompile.
To do that, you need to use apktool/apk manager.
Sent from my GT-I9100 using Tapatalk
sileshn said:
There are 2 kinds of PNG files. Ordinary PNG files can be edited without any problems, but to properly edit .9 png's, you need to decompile the apk first, make changes and then recompile.
To do that, you need to use apktool/apk manager.
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
ok so if I have edited one of the .9.png and I think I might have done and simply dumped it back in the apk with winrar what harm might I have done and what symptoms might I see?
Sometimes you can get away with editing .9' s the way you have if the black border around the outside stays completely black, any slight discoloration and its force close city on a one way ticket courtesy of systemui.
It seems you my have gotten away with it......this time.
Thanks to everyone who has repsonded to me on this thread you have all been very helpful. This is a truely wonderful phone I cant believe how big a step up this is from my old SGS. I tired all sorts of custom roms and mods on that to get features on that, with this I have it pretty much exactly where I want it simply by rooting and installing a the custom Touchwiz 4.5 (I have other lauchers but find myself going back to that all the time)
So the only remaining thing was the fact that some notifications were in black and the backgrounds on the notification drop down were too dark to read some app's notifications in black with a simple glance so your help with finding the right pngs and files (systemui.apk and framework-res.apk) were very very helpful. Not sure if this was the simplest way to achieve what I needed but it worked so I am happy.
Thanks again one and all.
Can one of you guru's give a noob a hand and tell me what i'm doing wrong.
no matter what i do i can't seem to theme the status bar.
I've created a new statusbar_background.9.png (yes i know .9.pngs are odd)
but i can't seem to actually make the phone take the change.
everything else i try and change shows up with no problem.
i've tried everything i could think of but am sure i'm missing something.
this file (attached) seems to do what i want if i drop it in framework-res on my old phone. or systemui on my tablet.
there is a statusbar_background.9.png in systemui but ????
but on the touch even if i edit the .xml and call it as drawable both as a .9 and a normal .png and i can't seem to make the touch like the change. i don't get a FC i just see the standard black bar. if i just delete the png i do get a fc though so...
I've even tried with a solid red bar just to see if it was the transparency but no go.
is it calling a different statusbar_background from somewhere i just can't find?
Many thanks to the person who tells me how im an idiot
http://www.multiupload.com/YOGY8OQCIE (mirror same as attached)
Ahh yes the dreaded 9.PNG file... it drives us themers nuts... it takes special edit which a little more than I can explain here. Search edit 9.PNG and I think you will find threads that will explain it in depth... probably not the answer you wanted but there are people on xda who have explained it much better than could...
thanks i'll give it a few more shots. but i'm fairly certain i created the .9.png correctly as it works on a couple other devices. and all my other .9 edits seem to work as intended. just was wondering if it was possible that it really wasn't the statusbar_background.9.png in systemui.apk that themed the status bar by some chance. as it seemed to FC if i had an incorrectly made png, but boots fine just with no change if i use one i'm pretty sure works.
just wish some themer had skinned the statusbar at all so i'd know it was just me being a mooley
I'm wondering the same thing, as I've changed almost everything else to MIUI style status indicators just by swapping PNG's in the drawable-hdpi folders. Crysis21 uses an HTC style status bar in his SensatioN ROM, and I've downloaded it to search the files and still can't find where the hell the change is made.
Yea just seems to want to foil my every try. It should just be the status_bar.9.png in systemui and mine seems to work on my buddies international s2 but for some reason ........ Dunno it may take me a while but ill figure it out eventually. Unless some kind soul steps in and shows us the answer
fnut6969 said:
I'm wondering the same thing, as I've changed almost everything else to MIUI style status indicators just by swapping PNG's in the drawable-hdpi folders. Crysis21 uses an HTC style status bar in his SensatioN ROM, and I've downloaded it to search the files and still can't find where the hell the change is made.
Click to expand...
Click to collapse
Do you mind aharing what youve done already? Im running starburat rom and would love to get rid of the green gingerbread icons lol
Sent from my SPH-D710 using XDA App
Sorry about the format, I wasn't able to upload a zip for some reason, the attached file has all of the drawable-hdpi folder changes I've made. The work isn't my own, only some of the tweaks and proper naming, its from HTC, the MIUI devs, and the brilliant minds (obviously mine excluded) on XDA.
Thanks....gonna try and learn as well. You guys are mch better than i but we all start simewhere right
Sent from my SPH-D710 using XDA App
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""
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