Hi guys, so the stock battery icon was annoying the hell out of me with how it wouldn't show an actual number, and it only displayed in 10% increments. I know there are utilities that'll put an icon with numerical display on the notification bar, but I hate having to have TWO battery icons just to get what should be shown in the stock one.
So, after much trial and error, I figured out how to modify the framework-res.apk to not only add in icons with a number on top, but to add in 1% increments. It seems to be working perfectly on my phone, and if any daring souls want to give it a try, here it is.
But first, a few caveats...
If you're using a modded theme, you don't want this. All the mods to themes are done in the framework-res.apk file, and aside from the battery icon changes, this one it completely stock, so it would revert your theme back to stock. But chances are if you're using a theme, it already has new battery icons so you wouldn't want this anyway.
This *seems* to be working, and I don't *think* it could make your phone explode, but there's no guarantees. In getting this to work, I had many failed attempts that caused the phone to get stuck on boot, but all that needed to be done was reboot into Clockwork recovery and adb push the original back. Phone booted up perfectly afterward each and every time, so on the odd chance it doesn't work, reverting back to the original doesn't appear to leave any lasting effects.
So, here 'ya go:
Step 1 - Download my modded framework-res.apk:
Step 2 - Reboot your phone into Clockwork recovery and connect it to your computer.
Step 3 - Place the framework-res.apk into whatever directory contains your adb files, start a dos prompt and navigate there.
Step 4 - Type "adb pull system/framework/framework-res.apk orig_framework-res.apk" This pulls the original off your phone and saves it locally should you want to restore it.
Step 5 - Type "adb push framework-res.apk system/framework/framework-res.apk" This copies the new apk onto your phone.
Step 6 - Reboot.
If something goes wrong - your phone doesn't boot or boots but other issues pop up, just reboot into recovery and type "adb push orig_framework-res.apk system/framework/framework-res.apk" and it'll copy the original file back.
Here's a screenshot of the new icon. Charging icons haven't changed, I just want to make sure this is working before I delve into it any further.
So, after much trial and error, I figured out how to modify the framework-res.apk to not only add in icons with a number on top, but to add in 1% increments. It seems to be working perfectly on my phone, and if any daring souls want to give it a try, here it is.
But first, a few caveats...
If you're using a modded theme, you don't want this. All the mods to themes are done in the framework-res.apk file, and aside from the battery icon changes, this one it completely stock, so it would revert your theme back to stock. But chances are if you're using a theme, it already has new battery icons so you wouldn't want this anyway.
This *seems* to be working, and I don't *think* it could make your phone explode, but there's no guarantees. In getting this to work, I had many failed attempts that caused the phone to get stuck on boot, but all that needed to be done was reboot into Clockwork recovery and adb push the original back. Phone booted up perfectly afterward each and every time, so on the odd chance it doesn't work, reverting back to the original doesn't appear to leave any lasting effects.
So, here 'ya go:
Step 1 - Download my modded framework-res.apk:
Step 2 - Reboot your phone into Clockwork recovery and connect it to your computer.
Step 3 - Place the framework-res.apk into whatever directory contains your adb files, start a dos prompt and navigate there.
Step 4 - Type "adb pull system/framework/framework-res.apk orig_framework-res.apk" This pulls the original off your phone and saves it locally should you want to restore it.
Step 5 - Type "adb push framework-res.apk system/framework/framework-res.apk" This copies the new apk onto your phone.
Step 6 - Reboot.
If something goes wrong - your phone doesn't boot or boots but other issues pop up, just reboot into recovery and type "adb push orig_framework-res.apk system/framework/framework-res.apk" and it'll copy the original file back.
Here's a screenshot of the new icon. Charging icons haven't changed, I just want to make sure this is working before I delve into it any further.
Last edited: