Thought I’d share…. what we have here is an easy-to-read 1% battery mod and "how-to" using the 7-Zip > Open Archive functionality. I leveraged the numbers from other battery images… enlarged them… removed the multi-color image FILL (for better visual contrast)… and used battery frame colors as a visual guide to battery health. Many status-bar battery icons are slightly difficult to read (at least for me). So for any other non 20/20 4-eyers, you might find this useful. Easy to read…. clean… large numbers. I pretty much maxed out the 38x38 allowable grid for status bar icons, so numbers are about as large as you can get when framing.
For levels 75-100%: blue-frame battery with bright white numbers
For levels 50-74%: green-frame battery with bright white numbers
For levels 25-49%: yellow-frame battery with bright white numbers
For levels 11-24%: red-frame battery with bright white numbers
For levels 0-10%: for higher attention, went with a red-frame battery with red numbers on a bright white background.
There are 204 png files (101 discharging; 101 charging, 1 full-battery, 1 “unknown” status icon), and 2 xml files which contain the 1% xml code logic.
Why use this installation method:
I prefer this method (7-Zip / Open-Archive) as it allows you to use your own current SystemUI and just add (merge) the battery icons (and 1% logic if you don’t already have it). This preserves any other SystemUI theme mods you have previously done… and just adds the battery icons. If you flash someone else’s theme, it generally will have its own SystemUI.apk (unless they used “vrtheme” method)… and it will overwrite your SystemUI.apk (which contains any previous theme mods if you made any).
How to install:
Extract all the files in attached zip to a desktop folder (this is not a flashable zip... just a compression of the 204 battery image png files and 2 xml files).
If your ROM’s SystemUI already has the 1% logic, this mod is a piece of cake. Just drop the 204 pngs (not the 2 xmls) into your current SystemUI.apk [ res/drawable-xhdpi folder ] via the zip open archive method. If you don’t know how, follow my guide here: http://forum.xda-developers.com/showthread.php?t=2055019
How can you tell if you already have the 1% battery logic? Easy… copy your SystemUI.apk from phone to computer. Open it with 7-Zip (no need to extract, just double-click and drill down through res/drawable-xhdpi folder). If you have 101 “stat_sys_battery_xx.png” and 101 “stat_sys_battery_charging_xx.png” files, you most likely have the two battery xml files with the 1% logic as well.
If your ROM’s SystemUI is using the stock 0%,15%,28%,43%,57%,71%,85%,100% battery levels, you will need to add the code in (or replace) these 2 files: stat_sys_battery_charge.xml and stat_sys_battery.xml [both found in res/drawable folder ]. To do this you MUST decompile SystemUI.apk, make required xml file logic changes (or drop my two battery xml files) in res/drawable folder… then recompile. Also, before recompiling, replace the 18 stock png (again, 0,15,28,43,57,71,85,100 discharging/charging, full, unknown) files with my 204 pngs. Just drag all 204 over res/drawable-xhdpi folder and replace. I use “apktool” and it’s pretty straight-forward if you take your time. Google it, install it correctly, and take some time to learn how to use it. In summary: decompile your SystemUI.apk… edit the two battery xml files or simply replace with the 2 xmls attached and drop in res/drawable folder… drop the 204 battery pngs attached into res/drawable-xhdpi folder… recompile… move appropriate files to flashable zip. Also, google “How to decompile recompile with apktool”. The decompile is the easy part… what gets tricky is recompiling… and properly moving the new files (“resources.arsc” , “AndroidManifest.xml”, “classes.dex”, and any xml files you modified) to your original SystemUI.apk to maintain proper file signatures. Always make a nandroid and/or a backup of your current SystemUI.apk in case you need to revert back if things go south.
If you don’t like these battery icons, np… you can use this method (7-Zip…Open Archive) to swap any other battery images. Just make sure the files are named EXACTLY as the ones they are replacing. Enjoy.
Worked as described in OP. Now have the 100% 1% at a time battery mod on the MA4 Cleanrom 1.5! I replaced the icons with ones from kitchen I had on comp laying around no hassle they were even all named the same lol.
Thanked op.
Thanks for this mod
Hey doc if I drop these modded .xml's in my S3 sysUI will it work for that too or are the xml mods specifically designed for our note 2's? thanks bro
technut said:
Hey doc if I drop these modded .xml's in my S3 sysUI will it work for that too or are the xml mods specifically designed for our note 2's? thanks bro
Click to expand...
Click to collapse
I don't have an S3 or looked at the systemUI on S3 ROMs... but I suspect they are the same. There is no specific Note2 partition code in those 2 xmls... only the logic to increment battery and charge in 1% increments. The only risk would be if the S3 had different file names for those 2 xmls. Also, I've never had luck just dropping xmls in a system file using the open archive method. You'll need to decompile/recompile the S3 systemUI. Since you pretty much have to to do this, might as well just edit the xmls in the S3 systemUI after decompile. Use a program like Notepad++ to edit and you can compare the code between my xmls and the S3's xmls (just open two windows in Notepad++ (side by side) to view code line by line). If the same, decompile the S3 system UI... drop these 2 xmls.. recompile... boom. Or to hone your editing skills, just copy and paste the logic from mine to the S3 xmls.. recompile... done. While you're in there (during edit), don't forget to drop in whatever pngs you want for the battery icons (around 204 pngs).
DoctorQMM said:
I don't have an S3 or looked at the systemUI on S3 ROMs... but I suspect they are the same. There is no specific Note2 partition code in those 2 xmls... only the logic to increment battery and charge in 1% increments. The only risk would be if the S3 had different file names for those 2 xmls. Also, I've never had luck just dropping xmls in a system file using the open archive method. You'll need to decompile/recompile the S3 systemUI. Since you pretty much have to to do this, might as well just edit the xmls in the S3 systemUI after decompile. Use a program like Notepad++ to edit and you can compare the code between my xmls and the S3's xmls (just open two windows in Notepad++ (side by side) to view code line by line). If the same, decompile the S3 system UI... drop these 2 xmls.. recompile... boom. Or to hone your editing skills, just copy and paste the logic from mine to the S3 xmls.. recompile... done. While you're in there (during edit), don't forget to drop in whatever pngs you want for the battery icons (around 204 pngs).
Click to expand...
Click to collapse
Thanks for all the info man.I'll look at both sets of xml's and compare.I usually take my chances and drop files in open archive and hope for the best LOL. I have done image editing of png's on my own and dropped already modded xml's in my note 2 .The decomplie-recompile thing I have not dove into yet but maybe it is time.
Related
Has anyone gotten the battery mod (replaces stock battery icon with circle and every percentage from 1-100) to work on the mytouch slide? I can get the icons in there but then it only shows in the set increments of 4-14-29-etc. I took a look at the stat_sys_battery.xml file but i dont know how to add the code for the other percentages. The code
Code:
android:drawable:"@android:XXXXXXXX"
is completely foreign to me. any help with this?
Edit: nvm. i found that if i decompile the framework-res.apk with apktools, the xml is in a readable format that i can actually edit
I'm looking to have this .9 png change to a slightly darker color. I have tried to do it with apktool and apk manager, but both always have errors when I decompile the Mms.apk and once I change the .9 png, I can never recompile it.
Here is the old .9
http://imageshack.us/photo/my-images/718/messageconversationothe.png/
and here is the .9 in the new color as I would like it to be, but has been messed up, because it wasn't "saved" properly in the true .9 format (in GIMP) and is now screwy on my app.
http://imageshack.us/photo/my-images/594/messageconversationothe.png/
If anyone could help me out with that, I'd be greatful!! Making it a darker blue, helps stand out the two parties in the convo.
oh, and if someone can find the .png to the background of the Mms app, it would be a lot nicer in BLACK. Would make the white bubble (us), and the Darker blue bubble (them) stand out much better then white!
First of all if ur just changing PNG and 9 files there is no need to decompile the apk. Pull the Res file out of the apk and make ur changes. Then put it back in the apk. I use 7zip to open my zips and apks.
Next if editing 9 files then u can edit them in gimp or Photoshop. Save them and then use draw9patch that is found in the tools folder of ur android sdk and then fix the 9 file. If u don't know how to use it just let me know ill explain. Its real easy. Then u can use a program called xultimate. Google it. There is a thread here on xda somewhere about it. It explains how to use it. It will recompile the 9 file and make it usable.
If ur editing XML or smali file that's cool. Decompile the apk and do ur edits. U can replace the individual PNG and 9 files afterwards. Just don't forget that the XML files r kept in the Res folder as well so don't replace them if uve already edited them.
jonfitch said:
I'm looking to have this .9 png change to a slightly darker color. I have tried to do it with apktool and apk manager, but both always have errors when I decompile the Mms.apk and once I change the .9 png, I can never recompile it.
Here is the old .9
http://imageshack.us/photo/my-images/718/messageconversationothe.png/
and here is the .9 in the new color as I would like it to be, but has been messed up, because it wasn't "saved" properly in the true .9 format (in GIMP) and is now screwy on my app.
http://imageshack.us/photo/my-images/594/messageconversationothe.png/
If anyone could help me out with that, I'd be greatful!! Making it a darker blue, helps stand out the two parties in the convo.
oh, and if someone can find the .png to the background of the Mms app, it would be a lot nicer in BLACK. Would make the white bubble (us), and the Darker blue bubble (them) stand out much better then white!
Click to expand...
Click to collapse
ok.... so ...when you de-compile .9 files expand the pic as far out as you can when your working on them . you will see black borders on them. do not break them black lines. that means colorizing them too. just isolate everything inside the black lines of the .9 png's and change the color. once againg make sure the black lines stay black.any mis hap, one pixel or oops into the black lines will throw errors. let me know if this helps . just pm me or just post on here . ill check back.
EDIT did you install your resorces for apktool?
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.
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