What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

1% Battery percentages

pshaw92

Member
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
 
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!
 
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
 
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

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
 
That's awesome then! I really hope you guys are successful, good luck.

Sent from my DROID2 using DroidForums App
 
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
 
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
 
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.
 
@elcompaLalo: /sys/kernel/debug/battery/charge_counter
Edit: I've checked this file on the DX & it appears to give the 1% increment like it's suppose to. Can't say anything about other Motorola phones though.

@JxLegend: He says it'll have an option for that in the next release, but it'll be on the left side of the notification bar. No ETA on when that update will be released.
 
Last edited:
Back
Top