EB01 Accurate Battery with charging icons UPDATED

I was using the one made for Super Clean. Also thought i would mention that the first time it had happend i had did the mod to remove the am/pm on the clock back to back with this batt mod. After i got the vibrate
"force close" with restarts i started from a fresh 2.3 voodoo and just loaded the super clean batt mod to no avail. Maybe its just me?? anyone successfully used this with voodoo 2.3 SC?

Sorry you're having trouble. I thought Adrynalyne added my icons to his 2.3, I checked the framework-res.apk from the non-Voodoo version, and they're there. Don't know why they wouldn't also be in the Voodoo version.

So when you install 2.3 fresh, you don't have the icons?

Also, a lot of these mods (my battery thing, themes, removing the clock, changing text colors, etc) are accomplished by modifying the same few key files - framework-res.apk, android.policy.jar and framework.jar. Each mod replaces one or all of these files with their own modified versions. The trouble arises when you try to combine several mods. For example, my initial modified framework-res.apk didn't have the mods that Adrynalyne made to the reboot menu in his, and that feature broke for anyone who installed my battery mod on his SuperClean. I had to make a separate version by taking his already modified framework file and do my battery thing to it.

It becomes a bit of a mess with some mods reverting some features back to stock, and with so many little mods, it's impossible to make versions for every possible combination. If you want to get your phone set up the way you like it (remove clock, etc) and then send me your framework-res.apk file, I can apply my battery icons to that and send it back. Of course, there's a likely chance none of this will work anymore on the next version of SuperClean... but it only takes about 2 minutes for me to put it together.

Doesnt work with my juice defender

Can you be more specific as to what's not working? Are the icons not showing up at all, charging and/or discharging, or are they stuck on a certain %? Also, let me know what other mods you've done. As described above, it's very easy for one mod to conflict with another.
 
I did use some of your icons (with credit of course). Sbrissen's 5 lockscreen mod has that green that doesn't really blend. However, I did like it for charging. So I made some slight png modifications. Sbrissen has added acc battery to the mod already. The difference in voodoo vs. non is the kernel only.

Chris3D, sorry that superclean is being such a pain in your side :(
 
Chris, quick question. The android.policy.jar file is what's used to modify the lock screen. Can you just replace that with a mod, as in drop in-place the new .jar file over top of the existing one (like I did with the framework) and then reboot?
 
It becomes a bit of a mess with some mods reverting some features back to stock, and with so many little mods, it's impossible to make versions for every possible combination. If you want to get your phone set up the way you like it (remove clock, etc) and then send me your framework-res.apk file, I can apply my battery icons to that and send it back. Of course, there's a likely chance none of this will work anymore on the next version of SuperClean... but it only takes about 2 minutes for me to put it together.

That's very kind of you to offer! But yea you are correct the next version of SC or whatever else might not play well. I am one to get the latest and greatest day of. You devs are magical!! Thanks again for the hard work!
 
That's very kind of you to offer! But yea you are correct the next version of SC or whatever else might not play well. I am one to get the latest and greatest day of. You devs are magical!! Thanks again for the hard work!

I'll look into writing a bat program that would automate adding the battery icons to a framework - pull it from your phone, decompile it, add the icons and xml files, recompile it and then push it back to your phone. That way you'd be able to add it on top of any other mods you may have done. Shouldn't be too difficult.

Oh, and I'm a total hack... not a dev! :p I can do simple stuff like this, but not much more...


Chris, quick question. The android.policy.jar file is what's used to modify the lock screen. Can you just replace that with a mod, as in drop in-place the new .jar file over top of the existing one (like I did with the framework) and then reboot?

I think the issue is other mods. For example, adding other options to the shutdown menu requires modifications to framework.jar, framework-res.apk and android.policy.jar. If changing the lock screen *only* requires a change in android.policy.jar, it shouldn't effect the battery mod at all. But the way I generally understand it, a lot of the images for the interface are stored in the framework-res.apk file. I know the puzzle lock screen images are in there, so it's hard to say. That's why I'm thinking a bat program to automate adding the battery mod to any framework might be the way to go.
 
  • Like
Reactions: Chris Kerrigan
Cant wait for that program! I used some of the files from sc 2.3 to add the 5 lock screens, long press google fix, and reboot mods to my stock/debloated/deodexed EB01 rom. The files have your accurate battery image but doesn't have your images for when the phone is charging. just want the charging images back and I'm a happy camper lol



Sent from my SCH-I500 using Tapatalk
 
Oh, and I'm a total hack... not a dev! :p I can do simple stuff like this, but not much more...

.

Say what you will. I appreciate anyone that takes the time to learn, create, and share with this community. You hack!! :)

That bat program sounds fantastic! I have yet to come across another batt mod that shows charge progress.
 
I'll look into writing a bat program that would automate adding the battery icons to a framework - pull it from your phone, decompile it, add the icons and xml files, recompile it and then push it back to your phone. That way you'd be able to add it on top of any other mods you may have done. Shouldn't be too difficult.

Oh, and I'm a total hack... not a dev! :p I can do simple stuff like this, but not much more...




I think the issue is other mods. For example, adding other options to the shutdown menu requires modifications to framework.jar, framework-res.apk and android.policy.jar. If changing the lock screen *only* requires a change in android.policy.jar, it shouldn't effect the battery mod at all. But the way I generally understand it, a lot of the images for the interface are stored in the framework-res.apk file. I know the puzzle lock screen images are in there, so it's hard to say. That's why I'm thinking a bat program to automate adding the battery mod to any framework might be the way to go.

Thanks for clearing that up. I had read some various things around the forums here and elsewhere but wasn't in complete understanding as to what results in doing a simple drag/drop. Keep up the great work Chris, we appreciate it!
 
i just installed. awesome.

but i just rooted and finally flashed eb01. i see all these cool themes i can install now. If i choose a new theme from the sticky, will it cause issues? will it change the batt icon to the new themes or will it use the themes batt icon?
 
i just installed. awesome.

but i just rooted and finally flashed eb01. i see all these cool themes i can install now. If i choose a new theme from the sticky, will it cause issues? will it change the batt icon to the new themes or will it use the themes batt icon?

If you flash a theme, it'll replace my icons and you'll end up with whatever icons are in the theme. Where you'll run into trouble is if you then apply my battery mod over your theme, since other than the battery, my file is stock.

I'm working on a way to apply my battery over an existing theme... but so far, I don't want to make any guarantees I'll succeed.
 
Chris, just wanted to report back with something I found.

It happens rarely, and I don't know if it's OS related or if it's framework related, but every once in a great while, the battery percentage will be an exact 10% off from it's actual level. For example, it turns red at below 10%, but it will show below 20% when it turns red. When I go into Settings > About Phone > Battery Status, it also shows 10% above it's actual level.

Again, this is very rare and restarting the phone fixes it, but I thought I'd throw it out there in the event it may be a bug.
 
Flashed on 2.1 superclean. Working GREAT! Thank you!

However, i try to flash using CWR Blue, and it sucks. I dont have an option to "back up/restore" or "choose file from sdcard" I jus flash CWR RED and flashed the zip file. Badda bing, badda boom.
 
Chris, just wanted to report back with something I found.

It happens rarely, and I don't know if it's OS related or if it's framework related, but every once in a great while, the battery percentage will be an exact 10% off from it's actual level. For example, it turns red at below 10%, but it will show below 20% when it turns red. When I go into Settings > About Phone > Battery Status, it also shows 10% above it's actual level.

Again, this is very rare and restarting the phone fixes it, but I thought I'd throw it out there in the event it may be a bug.

Hmmmm, that's strange.

When I put that version together, I changed the XML files a bit. The stock XML set up static icons for 0% through 100% AND animated icons for 0% through 10%. I assumed the static icons were redundant, so I removed them for 0% to 10%. In other words, I listed animations for 0% to 10%, and static for 11% to 100%, instead of animations for 0% to 10% and static for 0% to 100%.

Not sure if this could be the cause of the problem, but since what you're seeing is exactly 10% off, it's worth looking at.

I rebuilt the framework with the old style xml. Give this a try and see if the problem goes away. If not, I'm not really sure what could be causing it.

EB01_NewBatt_Framework (for anyone interested, this is *only* for stock DL09/EB01 with no themes)
 
I'll give this one a try and let you know what I find. Like I said, when it happened, it seemed completely at random, and I can't seem to find a definitive way of reproducing it, so it was never really a huge deal, just kind of odd.
 
Update: Haven't noticed it since throwing on the new one. I'm gonna give it a couple more days, seeing as how it was rare to begin with before, but so far so good, Chris!
 
Update: Haven't noticed it since throwing on the new one. I'm gonna give it a couple more days, seeing as how it was rare to begin with before, but so far so good, Chris!

Cool, hopefully the issue will be resolved.

Just a lesson to myself to not remove code just because I don't see a reason for it being there! :p
 
more than luck it's def do-able! follow these steps...best results if you're not running a theme
http://forum.androidcentral.com/verizon-fascinate-rooting-roms-hacks/60997-experimental-battery-mod-automator-updated.html

That will work, but to save the trouble, I made a pre-built framework for SuperClean 2.3 and 2.4. Added it to the original post.

Oh, and thanks for your testing of the automator! Still investigating ways to make it work more reliably on themes.
 

Trending Posts

Forum statistics

Threads
957,086
Messages
6,971,427
Members
3,163,716
Latest member
Gordo52