editing BatteryService.java - myTouch 4G Q&A, Help & Troubleshooting

I have some weird bug in my phone so that sometimes, the phone cannot detect the battery status. It reads voltage, and percentage okay, but says status unknown in the batter info page under settings, and also in the status bar i get a battery grayed out with exclamation mark.
I want to edit BatteryService.java and tell it to ignore when it sees Battery Status unknown
Anyone know how to do this? I thought about just setting the BatteryManager.BATTERY_STATUS_UNKNOWN somehow to a different value, so the phone would always assume the status is healthy?
Will this work? How do I do it?

Please post questions in Q&A section.

Related

a question about battery status

I've searched but didn't find any topic on this specific matter.
It seems the stock battery indicator only displays the status in whole percentage. (60%, 50%, 40%, etc) Is there another alternative to make to display like 55%, 52%, etc?
This topic has discussed many times!
See second last point
http://wiki.xda-developers.com/index.php?pagename=Trinity_Problems

Battery percentage does not tally with the status bar's icon

what i mean is, i'll see the battery logo up on the status bar at 75% (3/4 bar) and think that i have ~75% amount of battery usage left.
i'll then check the battery numbers in the settings and my battery is at ~40% lol.
well i'm running a jm5 stock rom, rooted. anyone having that issue?
i'll try to run the battery low till it offs and monitor the values again.
Jup, I also noticed this, but no biggie, I think this is Android standard.
Definitely NOT defective IMHO.
If you feel frustrated by this use this little app: Battery Indicator
ye i'm using that, i was just wondering which numbers are at fault there. lol. oh well. such paradox in my status bar. thanks for the quick reply.
Adevem said:
what i mean is, i'll see the battery logo up on the status bar at 75% (3/4 bar) and think that i have ~75% amount of battery usage left.
i'll then check the battery numbers in the settings and my battery is at ~40% lol.
well i'm running a jm5 stock rom, rooted. anyone having that issue?
i'll try to run the battery low till it offs and monitor the values again.
Click to expand...
Click to collapse
The way I believe it works, and I might have the percentages slightly wrong is, especially the way they get rounded:
Actual/Graph
>79%/100%
50-79%/75%
25-49%/50%
>25%/25%
So, yes, you are always getting a readout that isn't very telling and is a step-gradual reading. The time you have the most information is right around, if/when you see a change. Other than that it can be barely more telling than a sundial .
Wrong info is in the notification bar (graphic battery). I've noticed the change upgrading to JM5 from JG5. Downgrading back to JG5 reverses the situation, which means the change is in framework-res.apk.
It is a change Samsung obviously did on purpose, but I wouldn't know why they settled for the worse...
Sent from my GT-I9000 using XDA App
well imma try flashing to jpjg8 after my songs are done transferring. gonna check that firmware out...

[Q] Battery Charge Status

Hopefully this is a stupidly quick question to answer. In settings-about phone-battery on my wife's evo, it shows the battery charge status. However on the epic, I just have the "Battery use". Anyone know where I can find how much charge I have left? The icon on the notification bar is far from precise.

Remove Battery Full Indicator in Stock JK6

I have been searching but cant find anywhere how to remove the 100% battery full indicator icon that shows up in the notification bar. It is really annoying and I want to try and pull it out. I am running stock JK6, any suggestions??
Thanks!
well to be fair, its not nearly as annoying as the full charge pop up window present on the JFD build. with that said, I haven't seen anything regarding removing or blocking the notification, but obviously it goes away automatically when you unplug the phone, so its not terrible.

Battery icon wont update

I am using a nand build, and i changed the status icons in the framework. but now the battery icon wont update as the battery drains, its supposed to be at 90% but the icon still reads full. is there a way to fix this? when i look at battery status it reads that is draining so for some reason there is an issue with the icon changing along with the battery reading.

Categories

Resources