1. Are you ready for the Galaxy S20? Here is everything we know so far!

root option to add battery percent % symbol over battery icon in STATUS bar?

Discussion in 'Android Devices' started by Lock-N-Load, Aug 6, 2010.

  1. Lock-N-Load

    Lock-N-Load Android Expert
    Thread Starter

    I know this comes in some ROMs and maybe some themes, anyone seen a stand alone option for people in root to add this ability in the MENU bar, not the task bar?

    SOLVED... see below
     



    1. Download the Forums for Android™ app!


      Download

       
  2. nstallion

    nstallion Android Expert

    What do you mean by menu bar?

    If you are talking about the actual menu that comes up when you press the menu button (which is completely dependent on the application you are running at the time) then I don't think so.
     
  3. inssane

    inssane Android Expert

    What menu bar? On the bottom where you launch the app screen?
    [​IMG]
     
  4. defkorn

    defkorn Android Enthusiast

    Think he means the notification bar? Spare parts has this option I believe, and is included in many of the custom ROMs out there.
     
  5. Lock-N-Load

    Lock-N-Load Android Expert
    Thread Starter

    sorry..... the notification bar is the drop down bar, no? the STATUS bar - what I called the Menu - is the top bar with signal strength, battery meter, time, 3G, etc. my bad
     
  6. OMJ

    OMJ Bazinga

    I know its a relatively simple hack but its been so long since I needed to do it since Cyanogenmod its a built in option. If I can remember how to do it I will let you know
     
  7. Lock-N-Load

    Lock-N-Load Android Expert
    Thread Starter

    cool.. much thanks.

    (BTW - I tried to edit my posts title and it shows I do, but in the actual thread, title is not fixed?)
     
  8. OMJ

    OMJ Bazinga

    ok I will fix the thread title for you
     
  9. vincentp

    vincentp Android Expert

    I think only the guides/mods/admins can actually change the title. Doing it within an edit won't change it on the forum thread list unfortunately.
     
  10. Papadroid

    Papadroid Android Expert

    Some devs that create ROMs from source are able to add options for the battery %. But if the ROM is not from source or the dev did not add that feature the only way to add the % is to modify the actual image in the framework-res.apk. The easiest way may be to try and find a metamorph of just the battery notification.
     
  11. Lock-N-Load

    Lock-N-Load Android Expert
    Thread Starter

    would love to then find a "metamorph" theme and then the same stock battery icon BUT with a % on it like I have seen in Pete's BB.

    I am a graphic designer, is it easy for me to get a source of that stock battery png file (I assume png) and make my own 0,10,20,30,40,50,60,70,80,100% images and make my own metamorph theme?
     
  12. Papadroid

    Papadroid Android Expert

    If you want to make it you can. But if what you're wanting already exists you can just grab those images from the zip file. You could easily download pete's BB use 7zip or something similar and navigate to system/framework and open up framework-res.apk using same zip program and take the images. The image names are stat_sys_battery_(%), from 0 to 100.
     
  13. Lock-N-Load

    Lock-N-Load Android Expert
    Thread Starter

    I am going to download the FRF84BV04 and see if I can grab the images.. I am on a mac, any idea how I can open framework-res.apk when I find it?

    UPDATE: just rename to .zip and extract :)
     
  14. Lock-N-Load

    Lock-N-Load Android Expert
    Thread Starter

    okay.. I grabbed them. they did not have the % over them though??? I know for a fact they did in the BB 0.4 I had loaded. so I wonder if something else in the ROM writes, in small text, the %?

    I made this as a demo of what I am doing.. but not sure what to now do with the images to make a theme and load it up?

    [​IMG]

    using another battery only metamorph theme as a guide, I put my images into it and rezipped it back up. I now have what I think is a metamorph theme of my batteries?? I guess only way to know is to use metamorph and try to load it, but i am nervous. what if it fails, can I delete it with no issue? seems only way to go back is to flash back a ROM in recovery it seems?
     
  15. Papadroid

    Papadroid Android Expert

    Just make sure that the image names are correct and the structure is correct. I've never used Metamorph myself as I prefer to do things manually. If you took the structure from another metamorph most likely you should be OK, just do a backup in recovery before using the metamorph. This way if something goes wrong you can go back to where you were prior to using Metamorph. You may also want to modify stat_sys-battery_charge_anim to match.
     
  16. Lock-N-Load

    Lock-N-Load Android Expert
    Thread Starter

    I left the stat_sys-battery_charge_anim files as is as they seem cool to me and I do not mind that charging animation/progression. I just like to know the % during battery use more than during charging.
     
  17. Papadroid

    Papadroid Android Expert

    I just didn't know how much changes you made, so if all you did was add the % then there isn't anything really to change for the charging animation. I haven't used the stock battery in a long time and don't remember how it looks, LOL.
     
  18. nstallion

    nstallion Android Expert

    Generally the bar at the top is called the "notification bar" and the thing you pull down is the "notification blind".
     
  19. Lock-N-Load

    Lock-N-Load Android Expert
    Thread Starter

    actually, according to the manual, the bar at the top always seen is the status bar, and the pull down menu is the notification bar/blind.

    see page #6-7 of the Droid owners guide & also called that in the Froyo guide.
     
    inssane likes this.
  20. patch

    patch Well-Known Member

    Please let us know how it goes Lock-n-Load :) It's almost as if you're reading my mind because I rooted today and was thinking about this!

    Papadroid, you said you prefer doing manually, are there any good guides/resources/threads that you can point us to that describe in more detail?
     
  21. Lock-N-Load

    Lock-N-Load Android Expert
    Thread Starter

    yeah, I kind of like the manual idea as it kind of implies I can go into something on the SD card, grab the files, back them up, drop mine in.. no? that would be easier... but I may have that process wrong.

    when I get around to trying to load this, I will report back of course. and IF it works, I will supply the file and directions so anyone can do it.

    and heck, I did this quick.. I could "really" take some time and maybe try a better font, maybe some bevel effects on the battery, maybe try a different color than green - like orange - for the 60% as it seems like 40-100 should not all be green.
     
  22. Lock-N-Load

    Lock-N-Load Android Expert
    Thread Starter

    here is another with different colors all along the changes

    [​IMG]
     
  23. shadowdude777

    shadowdude777 Android Expert

    Exactly, all you need to do is replace the file with your new picture. The only thing is that you won't be able to replace some files because they'll be in use while the phone is on.

    I'm pretty sure you can just create your own update.zip to get around this. If you look in any update.zip you'll see you just need to put the file in the folder you want it to go into. Suppose you want to replace /system/framework/framework-res.apk, you would create a system folder on your computer, go into it, create a framework folder, go into it, and place your new framework-res.apk in that folder. Then you would take the system folder and put it into a .zip and use ClockworkMod to apply it.
     
  24. inssane

    inssane Android Expert

    Maybe you can take the files out of a ROM that has this feature. It was either Chevy or JRummy's latest that even has 5, 10, 15, 20 - which is nice when you are really low.

    Not sure if it's just graphics or another implementation, but I am sure that the percentages simply coincide with the graphic level on the battery png.
     
  25. Lock-N-Load

    Lock-N-Load Android Expert
    Thread Starter

    I might add the 10% increments as i have a battery tool right now that has a status bar widget that shows in 10% increments while the ones I pulled from the ROM only have what you see above. So, I wonder if I just filled in the blanks between stock images with 3 more images:

    stat_sys_battery_50.png
    stat_sys_battery_70.png
    stat_sys_battery_90.png

    it would display them? it would see they are there and use them? can anyone confirm this?
     

Motorola Droid Forum

The Motorola Droid release date was November 2009. Features and Specs include a 3.7" inch screen, 5MP camera, 256GB RAM, processor, and 1400mAh battery.

November 2009
Release Date
0
Reviews
Loading...

Share This Page

Loading...