yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] gbzbar:
[MOD] Battery Percentage for ICS 4.0.1 AND 4.0.3 XE/non-XE "Senseless" and Sense ROMs

I know that a lot of people have been requesting this, so here it is.

I made the percentage using the Roboto font for good theming with the AOSP ICS taskbar, and the colors match the rest of the theme. I think it looks pretty good.

Let me know if anything doesn't work, and I'd be glad to test and fix it.

There is one file for the Virtuous ROM, and one for any other Senseless ROMs.

The "Senseless" versions will ONLY work on true "Senseless" ROMs, NOT roms which have been themed like AOSP ICS.

Make sure that you flash the correct version of the MOD for the version of your ROM base, 4.0.1 or 4.0.3.

They are NOT compatible with each other.

Also make sure you flash an XE or Non-XE version depending on which ROM you are running.

Battery Mods for the 4.0.3 Sense ROMs, for some reason, must be flashed after the initial boot and initialization of the ROM for the first time.

Battery Mods for the 4.0.3 "Senseless" ROMs will be made available once a senseless 4.0.3 ROM is released.

"Sense ICS Battery Mod" has been confirmed to work on ICS versions of:

ARHD

Insert Coin

RC Mix ICE

Elegancia ICS

Megadroid ICS

Will POSSIBLY work for ANY ICS Sense-Based ROM out right now. Please let me know if this is not the case.

The Sense ICS Battery Mod versions are themed like the stock Sense battery, but with percentages added.

The percentage will not show if your battery is at 100%, so if you think there may have been a problem with the flash, let your battery go down a bit from 100% before reporting.

MAKE SURE YOU NANDROID BEFORE TRYING ANY OF THESE, JUST IN CASE.

Clear Cache and Dalvik after flashing.

Enjoy.
[HTC Sensation] sterz85:
can you make one for the sense roms with the stock battery %?
[HTC Sensation] gbzbar:
I'm working on it right now. ;)
[HTC Sensation] gbzbar:
ARHD Mod has been added to the OP. :)
[HTC Sensation] mikef:
Sadly the new AHRD version still hangs me at the Beats boot animation. :(
[HTC Sensation] Jaglicic:
For me it's working great... Sense one...

ARHD 5.0.2...

Thx

Sent from my HTC Sensation XE with Beats Audio
[HTC Sensation] gbzbar:
I've tried it and it works fine. Some things to make sure of... since the updated file is the same filename as the old, broken one, make sure you aren't accidentally flashing the old version by mistake.

Also, make sure you clear dalvik and cache after flashing.

Lastly, make sure you are actually on ARHD. If you are running their non-sense script, it may not work properly.
[HTC Sensation] mikef:
Looks like it may be working now, I redownloaded it and reflashed and now it got past the Beats animation....cache loading....fingers crossed....whoo-hoo, thank you!!
[HTC Sensation] gbzbar:
Yeah, I figured it was a bad flash or mistake when flashing, or something like that.
[HTC Sensation] sterz85:
could you make the battery % mod for this rom too?

http://xdaforums.com/showthread.php?t=1403859

thanks!
[HTC Sensation] gbzbar:
Try the ARHD mod first.. there's a pretty good chance it'll work fine. Make sure to nandroid first.

If it does work, please let me know.
[HTC Sensation] sterz85:
works perfect
[HTC Sensation] jjdoctor:
great work...

i m getting static network signals after applying non sense batt mod... any fix?
[HTC Sensation] gbzbar:
Actually, that has nothing to do with me. Anytime you apply an AOSP SystemUI.apk to a Sense rom at this time, you will get the network bars stuck at full always. Right now there's no workaround.

It's pretty much the only pitfall of having the AOSP notification bar.

Sorry.
[HTC Sensation] v11lemans:
Thanks for the mod. I can confirm that is working also for InsertCoin.

I guess i working for all the ICS stock based ROM.

Just a request. Could You prepare the same mod but with circular battery and with a coloured icons set like the one in link http://xdaforums.com/showthread.php?t=1038270 ?

I tried to do it without success.
[HTC Sensation] gacop4912451:
we wait your stock % for htc seance thanks man :p
[HTC Sensation] gbzbar:
What do you mean? Its been in the OP already for several hours. Let me know if maybe I'm misunderstanding your question.
[HTC Sensation] rudidi:
hey gbzbar, this mod looks awesome! but im a noob, can you tell me how exactly to install this mod. i flashed my sensation 3 days ago and i want this mod. THANKS!!!!
[HTC Sensation] dudutr:
Thank you

Sense_ICS_Battery_Mod.zip

Also works Excellent on Elegancia ICS
[HTC Sensation] gbzbar:
Well, I would first get very comfortable with what you are doing and learn how to recover from any mistakes you might make. Make sure you are rooted and have clockworkmod recovery on your phone.

Also, the mods in this thread only work with Ice Cream Sandwich versions of the Sense software. If you don't have an ICS version, then you can find battery mods for other versions of ROMs HERE.

Good Luck.
[HTC Sensation] TJD319:
Flashed perfectly! Amazing mod, thank you!
[HTC Sensation] vulfgar:
I would be very happy if you could do the Sense_ICS_Battery_Mod in red too. :)
[HTC Sensation] gbzbar:
When you say "in red", you mean you want the same style icon, but instead of green, you want the icon color to be red no matter what the percentage is?
[HTC Sensation] lindahl85:
I can confirm that the senseless version works for Megadroid ICS.
[HTC Sensation] AleyKsi:
Works great on my Virtous Senseless rom ! Thanks a lot !
[HTC Sensation] vulfgar:
Yes, I love red! It is sufficiant to see how much the icon is filled, I don't see the need for different colors depending on how much is left. On GB I found a lovely Beats battery icon, but I don't really mind the shape of the icon, I only care for the color. :D
[HTC Sensation] ggun69:
Hello! I would like the same icon than the screenshot but i haven't taken this, but the fourth. So Can I reflash above? I don't want to wipe my rom insertcoin.

And thanks you for your job :)
[HTC Sensation] gbzbar:
If you have insertcoin, you should be able to install the Sense version with no issues. This mod does not wipe anything.

Just in case, however, make a backup of everything through clockworkmod.

Enjoy.
[HTC Sensation] Rolando88:
When i flash ARHD version im getting green battery without % ;s
[HTC Sensation] strumf666:
I wish the other mods would work on arhd 5.0.2 too (most are for 4.1x) :(

Thanks for this one though :)
[HTC Sensation] Rolando88:
Lol i had no % because it was 100% but should it be the green standart battery grom gingerbread??? Only diffrence is that there is % notification in it
[HTC Sensation] JamZo:
Working for me

I'm running FastyBeta ICS (i.e. not Senseless) with Schnizlon Beta AOSP theme and the Senseless battery mod worked for me!

It also turned my notification dropdown into full AOSP (with Shnizlon theme the status bar itself turned into AOSP but when you pulled it down it was still the Sense notification with its two tabs).

I would have one request, instead of using the JazzK theme for the battery could you do UOT style A and D, stock with percentage at the bottom of the battery, etc? I'm guessing UOT is going to include ICS roms soon but seems like you are a step ahead ;)

Thank you for the mod, all the battery status bar apps I used are scaled weird in ICS for some reason, so this mod is a great relief!
[HTC Sensation] gbzbar:
To anyone requesting custom mods, usually I have no problem fulfilling some requests, but at the moment my computer is broken, and I'm waiting for it to be fixed. My backup system is not exactly ideal for this type of work, so as soon as I get my main computer back, then I'll work on the requests.

Thanks for your patience.
[HTC Sensation] sterz85:
OP, can you please make the '4G' icon for the sense roms?

thanks!
[HTC Sensation] the_scotsman:
Tried this on the newer 4.0.3 ROM leak, but it prevent's the ROM from booting, so obviously something needs changed.
[HTC Sensation] Rhamon's:
What about compatibility with ARHD 6.0?
[HTC Sensation] gbzbar:
My post 3 above yours still applies. Until I get a setup with which to modify these, I'm stuck. I'll try to get something up and working tonight or tomorrow. I'll post an update in the OP when I have added compatibility with 4.0.3 roms.
[HTC Sensation] Cj719:
Gbzbar great work IM on HTC evo 3d ROM if I provide the Necessary files framewrk etc.. Can u make this mod for me
[HTC Sensation] gbzbar:
Edit: 4.0.3 version pulled due to some problems... will put back up after the issues are fixed.
[HTC Sensation] gbzbar:
Absolutely... I just need to know exactly which style of mod you would like, as well.

Post up the necessary files if you would like me to do it.
[HTC Sensation] TJD319:
I just wanted to say thank you for all your hard work. I like a stock rooted experience with the mods I choose and this mod is all I've ever wanted.

Worked flawlessly on 4.0.1. Downloading 4.0.3 mod now and I'm super excited this was released so quickly. Just want to confirm this will work on XE version? I noticed with 4.0.1 that the XE vs NonXE framework-res.apk files were different sizes (I think at least).
[HTC Sensation] d3vilskid:
Must be blind all I see us sense 4.0.1, senseless and virtuous. No 4.0.3.
[HTC Sensation] gbzbar:
OK, so here's the word on the 4.0.3 MODs...

I've tested with a couple of different ROMs, and they test OK. The mod should be flashed ONLY AFTER the initial boot of a new ROM installation is completed. After the initial boot, then reboot into recovery and flash the battery mod.

The version posted, as far as I can tell, should work on ALL Sense 4.0.3 ROMs out there right now.

If that ends up not being the case, then please let me know for which ROMs the MOD doesn't work and I can customize some versions.

Enjoy.
[HTC Sensation] bobsie41:
I've just flashed this over a rooted RUU install of 4.0.3 and after reboot i get the percentage battery modification in my status bar but nothing else is visible :eek:

Tried battery pull, wiped cache and dalvik but still the same.

Do you have a flashable zip to go back to stock and if so, will this work? :confused:

EDIT Sorted it out. Just pulled framework res apk from stock rooted rom, replaced in zip and reflashed. Anyway, afraid it doesn't work on rooted RUU install.
[HTC Sensation] vegetaleb:
Can you make the battery % on Sense roms like the non-sense ones? (like on your screenshots)

Because I don't want to put my glasses all the time :o
[HTC Sensation] yury_z:
On my Sensation XE, also have interest, but the black screen and error Sense. RUU 4.0.3. Installed immediately after insertion.
[HTC Sensation] gbzbar:
For both of you, or anyone else that is having this exact same issue with the 4.0.3 version, please post and let me know which EXACT version of the RUU you are using.

Thanks.
[HTC Sensation] yury_z:
this ROM RUU_PYRAMID_LE_ICS_35_S_HTC_Europe_3.12.401.102_Radio_11.65.3504.00U_11.19.3504.29_2_test_233434.exe
[HTC Sensation] bobsie41:
Same on a non-xe sensation. :(
[HTC Sensation] CursedBat:
Flashed the 4.0.3 version while using ARHD's Android 4.0.3 (Ice Cream Sandwich) + Sense UI 3.5 + Beats Audio, seeing absolutely no change in the battery icon. Am I doing something wrong?

*edit* reflashed the .zip & it worked perfectly, sorry for the trouble*
[HTC Sensation] bdeserme:
Thanks for this mod :)
[HTC Sensation] vegetaleb:
Not working with ARHD 6.0.1 non xe

It freezes on booting
[HTC Sensation] gbzbar:
Yup, says so in the OP.

I'm working on a non-XE version now.
[HTC Sensation] krps13:
Works fine on ARHD 6.0.1 XE but its not look same as the pictures in first post?
[HTC Sensation] gbzbar:
Yeah, because the picture in the first post is only for the senseless ROMs. I didn't see the need to put a picture of this MOD, since it's stated that it's the exact same as the Sense battery icon, except with percentage added.

Sorry.
[HTC Sensation] gbzbar:
OK, so I have just posted up a version that should work on all non-XE ROMs, including ARHD 6.0.x non-XE.

Please test out and let me know if it works...
[HTC Sensation] truckerdewd:
Didn't work on ARHD 6.0.x non-XE. Tried twice but no go both times.
[HTC Sensation] OSCARIBANYEZ:
I tried both versions and work well in insert coin ....

the bar with% of the image is the best.

can make a white version for the sense?
[HTC Sensation] gbzbar:
All I can say is, make sure you are downloading the correct version of the MOD, and also make sure you follow ALL of the instructions in the OP.

I tried just now and it works just fine.

Good Luck.
[HTC Sensation] malybru:
Hi,

Works on non-XE ROM ARHD 6.0.0

Thanks

EDIT:

What is the difference between XE and non-XE ROMS,that it needs 2 different mods?

:)
[HTC Sensation] truckerdewd:
I downloaded the right version and followed the instructions s to the letter. Tried again a third time and still nothing
[HTC Sensation] vegetaleb:
Confirming no changes with ARHD non-xe,still plain green
[HTC Sensation] Cj719:
Thanks, what files do I need to provide for you
[HTC Sensation] gbzbar:
Depends on what type of ROM you're on. If you're on any sense ROM, then it's the framework-res.apk from your system/framework/ directory.
[HTC Sensation] gbzbar:
What exactly does that mean? You flashed and nothing changed? Make sure you're not at 100% battery, because in that case you will only see a green battery, and also try flashing again to make sure the flash took. Sometimes there's a problem and things don't flash correctly the first time.
[HTC Sensation] gbzbar:
I really wish I could help you, but without more information, there's not much I can do. I flashed it myself on the exact same ROM you are trying, and it worked fine, and I know that other people have reported that the MOD works fine on ARHD 6.
[HTC Sensation] truckerdewd:
It works. My battery was at 100% and phone was plugged in so I wasn't seeing it. Unplugged it and let it drain some and I was able to see it. Thanks for letting us know about it not showing when battery is full. Might mention that in post #1 so others don't keep bringing it up.

Thanks
[HTC Sensation] Raynier08:
Works like charm on my phone. Running Virtuous inquisition!! :)

Awesome Work!

I want to know what's the name of the weather widget on the phone ?
[HTC Sensation] sirbilbo:
Has been running ICS XE for a few days and installed battery file without any problems, so what you wrote at page 1 "Battery Mods for the 4.0.3 Sense ROMs, for some reason, must be flashed after the initial boot and initialization of the ROM for the first time" is not a must anymore.
[HTC Sensation] -=JohnDoe=-:
good work, bro. thx.

btw, can u tell me how to do this? i cannot rebuild framework-res.apk(from a ics rom) by apktool. it failed, and in the "build" folder i get nothing.

sorry for my bad english...hope you can understand.
[HTC Sensation] McPh1st0:
Thanks a lot bro! I'll give it a shot!
[HTC Sensation] sykomaniac:
Is there any chance of having an updated version for the new Virtuous rom?
[HTC Sensation] bobsie41:
Just to clarify.

Yesterday i tried the 4.03 version on my rooted XE RUU install 4.03 (10.00am UK time). It didn't work for me.

Has the relevent file in the op been amended since?
[HTC Sensation] Cj719:
Current running aosp ROM ics 4.0.3
[HTC Sensation] ced357:
Can we flsh it a few days after having flashed the rom ???

or just after a new flash ???

I am using 4.0.8 insertcoin for a few days now... and i want a battery percentage without reflash the rom...
[HTC Sensation] bobsie41:
Flashed it anyway and worked great.

Thanks very much! :)
[HTC Sensation] Five0nIt:
I'd like that also. I'm thinking the old 4.0.1 version will work.
[HTC Sensation] bigstoyan:
Battery compatibility question

Please, can anybody confirm, that the battery in this update

4.0.1_Virtuous_Senseless_Battery_Mod.zip​

is working with Virtuous ROM (2.0.0, Android 4.0.3)?

I'm asking, because file size is smaller, compared with the latest versions (XE, and NO XE, which is not working on Virtuous ROM).

Thanks!
[HTC Sensation] cortexdk:
Tanks :D

Love it works great ;)

Running IsertCoin 4.1.0
[HTC Sensation] gbzbar:
Fancy Widgets Pro with the ICS Clock Theme.

This IS a must for some of the 4.0.3 ROMs. All I said is that the MOD must be flashed AFTER the initial bootup of a ROM. It doesn't matter how long after. A few days is OK. The only thing that matters is that the ROM is booted at least once before you try to install the battery mod.

Working on it right now.

You can flash this ANYTIME after the initial bootup of a ROM. 1 minute, 1 day, 1 month... doesn't matter. It won't wipe anything. Just make a backup first, just in case.

The 4.0.1 version WILL NOT work... I'm working on a new one right now.

It's not. There will be a version for this up shortly.

I see that you resolved your issue, but yes, all of the files for 4.0.3 ROMs were updated yesterday during the day. A lot of changes were made.
[HTC Sensation] bigstoyan:
Thanks man!
[HTC Sensation] ccs16rocks:
can you tell me the name of that clock widget?
[HTC Sensation] michnovka:
Virtous Senseless rom

Works just fine on Virtous Senseless rom ! Thx ;)
[HTC Sensation] Decado_PL:
Hi!

Just to let you know, I just flashed battery % on ARHD 6.0.2 ROM and works perfectly :)

Thanks and looking forward to see more various icons for battery counter!
[HTC Sensation] TJD319:
Question. I'm on 4.0.3 and I noticed my original framework-res.apk file is around 10(ish)mb. However, I see the Battery Modded framework is only about 5.5(ish)mb. Is there a reason for such a drastic change in the files size?
[HTC Sensation] gbzbar:
I noticed that as well when I recompiled the files, and it could just be a difference in how my computer recompresses and recompiles versus the original.

Doesn't make a difference, since all the files are there.
[HTC Sensation] dj kumbia:
I'm unable to flash it on my ARHD 6.0.2 Rom,

could you guide me the way you install it successfully?
[HTC Sensation] gbzbar:
Alright, so I went ahead and made a battery mod for the Senseless Virtuous Inquisition ROM.

The problem is, because of the mistake that they made by not including HDPI images, I'm not sure how this will turn out and I'm not able to flash a new rom on my phone right now.

Please, someone make a nandroid and test this out for me and let me know if it works and if it looks alright. If it does, then I'll add it to the OP for general use.

Thanks.
[HTC Sensation] arturohernandez:
backing up and testing now...i will let you know how it goes

edit: worked and looks fine. thanks for the mod man!
[HTC Sensation] feenty:
Thx!

Works well on ARHD 6.0.2!
[HTC Sensation] vegetaleb:
Can you do larger battery percentage for ICS sense?

The actual one is small without my glasses
[HTC Sensation] bigstoyan:
The battery now runs OK on HTC Sensation + Virtuous Inquisition 2.0.1

Thank you!
[HTC Sensation] secano:
4.0.3 ICS XE works good. Thanks. Can you please post stock battery for this as well? I would appreciate it. Thanks again.
[HTC Sensation] Zehlek:
Will the non sense mod work with a pure AOSP rom?
[HTC Sensation] OSCARIBANYEZ:
me too

Plus I think it's the best style of battery to sense

as virtuous 2.0 desire Z

white would be great
[HTC Sensation] lindahl85:
Did you mean this one?

4.0.3_XE_Sense_ICS_Battery_Mod.zip

Well it works but the battery icon became sense green.
[HTC Sensation] gbzbar:
Yes, but again, it will take me a while until I get my computer set up properly.

What do you mean exactly by "stock battery"? A picture of what you want would help.

No, but I have one that I can upload... I will do it sometime later tonight.

No, this is not the one for you. The one you want has now been uploaded to the OP.
[HTC Sensation] cloudranker:
can't send picture on MMS

I flash ICS 4.0.1; every thing except picture mms. texting work fine but picture stay there and doesn't send.. can one help.....thanks..
[HTC Sensation] Chronzy:
4.0.3_Virtuous_Senseless_Battery_Mod_Sense_Notification_Bar.zip working just fine on V.I. 2.0.1.

Check this post about 1/4 way down. http://xdaforums.com/showthread.php?t=1405457

I see this is your first post so you want to be sure to read all the stickies at the top of the forum. Lots of good info there.
[HTC Sensation] galaxys:
Awesome mod...Virtuous 4.0.3 just keeps getting better ICS desert! :)
[HTC Sensation] Zehlek:
Thank you, just in case you need it, I am on 4.0.3
[HTC Sensation] armis:
Works flawless on Mike's rom. Thanks!
[HTC Sensation] vegetaleb:
It's working with ARHD but 80% of my SD files disappeared from gallery and ringtones!! :eek:
[HTC Sensation] Stephen:
I am using the 4.0.3_NON-XE_Sense_ICS_Battery_Mod.zip which works great. I have found out in the framework-res.apk file you are missing stat_sys_battery_100.png. This is why it is not showing you the fully charged icon. Other than that awsome work man!
[HTC Sensation] OSCARIBANYEZ:
this file works perfect rom Kingdroid

I have installed 4.0.3_Virtuos_Senseles_Batery_Mod_Sense_Notification_Bar

and no matter which blue is best seen, I hope you have the equipment repaired and can make a white version is fantastic ....
[HTC Sensation] gbzbar:
Actually, it's not missing the file. That has nothing to do with why the 100 percent icon shows up that way. It's because I didn't put a percentage in the icon for 100 percent on purpose.

The 2 digit numbers are small enough as it is to be able to fit inside the icon, and to fit a 100, they would need to be even smaller. So as an aesthetics decision, the 100 was left out for a fully charged battery.
[HTC Sensation] romel0721:
Just wondering, instead of a 100 showing when the phone is fully charged, would something like a checkmark or something be possible instead.
[HTC Sensation] KingDavid63:
Dude I installed the xe version for ic.11

And ever since my battery had been draining right before my eyes.. Are they zip aligned and optimized?

Sent from my Moose Tracks ICS loaded HTC Sensation
[HTC Sensation] gbzbar:
It would be. I'll do it when I get some free time.

What I've done to the framework file wouldn't have anything to do with draining your battery. Your battery is draining because your battery stats are off. Let it go through a few cycles.
[HTC Sensation] Android_Guy:
Using ARHD 6.0.2 with 1.5Gz kernel...

Non-Ex worked for me!

Thanks a bunch...glad to get rid of "Battery indicator"
[HTC Sensation] gbzbar:
What do you mean "neither work"? They cause your phone not to boot? They don't change the icon at all? Please elaborate on the problem.

If they don't change the icon at all, make sure your phone is not charged to 100%. The icon doesn't show a percentage inside when it's fully charged to 100.
[HTC Sensation] DeoreDX:
Dumb question. Is it possible to flash one of the "Sense" versions to Virtuous Inquisition Senseless 2.0.1 (4.0.3) to get quick settings into the notification area?
[HTC Sensation] bogdanpop74:
Super!!! Thank You!
[HTC Sensation] Chronzy:
gbzbar, Are you working on a mod for Virtuous Quattro? I tried the "4.0.3_Virtuous_Senseless_Battery_Mod_AOSP_Notification_Bar.zip", but it didn't work.

I know it just dropped today and i'm not rushing, just wondering if you're working on it. I prefer the look of yours to Quattro's percentage.
[HTC Sensation] gbzbar:
I've added a version for Virtuous Quattro to the OP.

Just make sure you disable the option in settings to show battery percentage, otherwise the icon won't be readable.
[HTC Sensation] Chronzy:
Thanks! Trying to do a little modding myself... What program are you using to make the update.zip?
[HTC Sensation] gbzbar:
If you're talking about the actual zip file, then I personally use WinRAR, but you could use anything. If you're talking about the meta-inf files that are necessary for clockworkmod to be able to flash it, then I made the files manually, and borrowed ideas from various sources.