1% Battery percentages

Discussion in 'Liberty ROM D2' started by pshaw92, Feb 27, 2011.

  1. pshaw92

    pshaw92 Member

    Joined:
    Jan 15, 2011
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Im not exactly the best at decompiling/compiling apks (specifically framework-res.apk) but anyone who is, could help with this...

    I've edited the stat_sys_battery.xml so that instead of only 10% increments there is 1%. So with battery icons (1-100%) in the drawable hdpi folder shouldnt that make there be 1% increments?

    If anyone could do this and doesnt want the pain of editing the xml file Ill send it to you.

    Sent from my DROID2 using DroidForums App
     
  2. TheSwaggeR

    TheSwaggeR Member

    Joined:
    Jan 11, 2011
    Messages:
    745
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    I will be getting into that area shortly and will want to change the increments too after I figure out how to get my darn practice APK to take changes on my Droid 2. I'm being left behind here, lol. I'll consult you for the xml after I get through my Music.apk editing change problems!
     
  3. trook

    trook Member

    Joined:
    Sep 4, 2010
    Messages:
    616
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lake Elsinore Ca
    Ratings:
    +0
    Someone correct me if I am wrong but I'm pretty sure our phones won't report battery percentage often enough to use 1 percent incriments.

    Sent from my DROID2 using DroidForums App
     
  4. pshaw92

    pshaw92 Member

    Joined:
    Jan 15, 2011
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    No it does. Use root explorer and start at the root of your phone and go to /sys/kernel/debug/battery/charge_counter

    Longpress charge_counter and open it as text and it will tell you the exact percentage of your battery.

    Sent from my DROID2 using DroidForums App
     
  5. trook

    trook Member

    Joined:
    Sep 4, 2010
    Messages:
    616
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lake Elsinore Ca
    Ratings:
    +0
    That's awesome then! I really hope you guys are successful, good luck.

    Sent from my DROID2 using DroidForums App
     
  6. microsnook

    microsnook Active Member

    Joined:
    Feb 8, 2010
    Messages:
    1,291
    Likes Received:
    0
    Trophy Points:
    36
    Ratings:
    +0
    Hmm, I didnt think this was possible either, but if you guys get this I will be amazed.
     
  7. KingLo

    KingLo Member

    Joined:
    Sep 7, 2010
    Messages:
    63
    Likes Received:
    2
    Trophy Points:
    8
    Ratings:
    +2
    You need access to the kernel to change what % the device reports
     
  8. Cstryon

    Cstryon Member

    Joined:
    Jan 25, 2011
    Messages:
    398
    Likes Received:
    2
    Trophy Points:
    18
    Ratings:
    +2
    Knowing very little about kernels, linux, anything 1337 hax0rz. Will it be possible to get access to the kernel for our ambitious friends to do what they want to do? I would very much so love 1% increments!

    Sent from my DROID2 using DroidForums App
     
  9. dirtyfingers

    dirtyfingers Member

    Joined:
    Dec 20, 2010
    Messages:
    206
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Wisconsin
    Ratings:
    +1
    Circle battery widget will also work for 1% increments. Its free on the market

    Sent from my DROIDX using Tapatalk
     
  10. elcompaLalo

    elcompaLalo Member

    Joined:
    Oct 10, 2010
    Messages:
    416
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    SinCity
    Ratings:
    +0
    I was wondering the exact same thing the other day. How is it that Circle Battery widget can give 1% battery incriments but the D2 shows it in 10% incriments.

    I'm curious to see what you guys come up with.

    Sent from my DROID2 using Tapatalk
     
  11. Jordan8

    Jordan8 Member

    Joined:
    Nov 16, 2010
    Messages:
    536
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Kentucky
    Ratings:
    +0
    According to the dev of Circle battery widget, the 1% value comes from a system file. I assume it's the same one pshaw92 is referring to.
     
  12. Pellegrini406

    Pellegrini406 Member

    Joined:
    Jan 9, 2010
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Ratings:
    +0
    Its all a mathematical equation to figure it out.

    Sent from my DROID2 using DroidForums App
     
Search tags for this page

battery 1-100 percent script on android

,

download stat sys batery xml

,

how to add android battery icon 1-100

,

how to make 1-100 battery increment on android

,

how to make android 1-100 battery xml

,

smali battery 1-100

,

stat sys battery charge 1-100 xml download

,

stat sys battery.xml 1% increment

,

xml bateray 1-100

,

xml file for one percent battery increment