Battery Mod on 2.1 sense - myTouch 3G Slide Q&A, Help & Troubleshooting

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

Related

[Help]Changing percentage battery to stock battery

I'm trying to change the battery percentage on Skyraider 3.3 final to the stock battery icon like on stock sense 2.2
I changed the icons in the framework.apk in the drawable-hdpi folder with the stock battery icons with 7zip but now i get no battery icon at all. Could someone point in the right direction please
Edit 2: Nevermind the stock battery theme on his is still percent. Is there a way I can get rid of it following the above steps? I would like to have stock non percentage battery?
Troy89 said:
I'm trying to change the battery percentage on Skyraider 3.3 final to the stock battery icon like on stock sense 2.2
I changed the icons in the framework.apk in the drawable-hdpi folder with the stock battery icons with 7zip but now i get no battery icon at all. Could someone point in the right direction please
Edit 2: Nevermind the stock battery theme on his is still percent. Is there a way I can get rid of it following the above steps? I would like to have stock non percentage battery?
Click to expand...
Click to collapse
You will have to ask in the ROM thread if he can do this for you. There are more than the % battery changes in the framework and just changing the images will not revert it to stock since there are xml changes to support it also.
Thanks, I did and got no answer a little while ago. I did find a work around though by changing the percentage icons to 100 non percentage icons.

[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

Mms theme question

Hello, I wanted to know if there was a dark mms/SMS app or apk that somebody could make, or give me a link too. I'm basically just looking for the ics blue mms/SMS icon.. I have the black icon with the blue smiley face but I think it's kinda ugly... Can anybody help please, thanks!!
Shadowfox993 said:
Hello, I wanted to know if there was a dark mms/SMS app or apk that somebody could make, or give me a link too. I'm basically just looking for the ics blue mms/SMS icon.. I have the black icon with the blue smiley face but I think it's kinda ugly... Can anybody help please, thanks!!
Click to expand...
Click to collapse
go to my Moto theme Here and you will find my black Mms
This work?
http://db.tt/vH7j9uzu
Sent From My Toro+ via RED Tapatalk
They both work, thanks guys. They work. I like the app switcher too. The mototheme looks sweet, I have to ask, is there a way I can have the stock battery icon, or have the battery without percentage??
Shadowfox993 said:
They both work, thanks guys. They work. I like the app switcher too. The mototheme looks sweet, I have to ask, is there a way I can have the stock battery icon, or have the battery without percentage??
Click to expand...
Click to collapse
battery is with percentage can't just remove it
Just download theme and take battery icons from SystemUI
Now I don't know a lot about theming or anything. So how would I replace the battery icon?.. :good:
Shadowfox993 said:
Now I don't know a lot about theming or anything. So how would I replace the battery icon?.. :good:
Click to expand...
Click to collapse
if you know how to decompile/compile
Use battery xml's under drawable folder
stat_sys_battery.xml
stat_sys_battery_charge.xml
and replace the same xml's under the same folder name in SystemUI.apk
then take all the battery icons inside drawable-xhdpi folder and remove "com_android_systemui_" from icons name so the battery icon new name should be stat_sys_battery_0 and so on, and put the new icons under the same folder name "drawable-xhdpi" in SystemUI.apk
vicino said:
if you know how to decompile/compile
Use battery xml's under drawable folder
stat_sys_battery.xml
stat_sys_battery_charge.xml
and replace the same xml's under the same folder name in SystemUI.apk
then take all the battery icons inside drawable-xhdpi folder and remove "com_android_systemui_" from icons name so the battery icon new name should be stat_sys_battery_0 and so on, and put the new icons under the same folder name "drawable-xhdpi" in SystemUI.apk
Click to expand...
Click to collapse
Oh, gotcha. So do I use an image also? Or what? Should I go and download other battery icons, and remake them in the same SystemUI.apk?
Shadowfox993 said:
Oh, gotcha. So do I use an image also? Or what? Should I go and download other battery icons, and remake them in the same SystemUI.apk?
Click to expand...
Click to collapse
1. Decompile SystemUI.apk
2. Replace original xml's and icons with the once inside rar file "attached"
3. Compile
4. Flash using and flashable zip
Note: You should have empty flashable.zip
You should use your ROM SystemUI.apk
http://www.mediafire.com/?x3td1tt2ch3sif8
Edit: I attached Flashable.zip, use it and place the new SystemUI.apk under "system/app/"
Flashable: http://www.mediafire.com/?83808m39f8neffg

[Mods & How-To] Larger Numeral 1% Battery Icons

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.

Categories

Resources