[MOD][ICS][9'Jun] * Battery Mod Tool * ALL CM9/Samsung ROMs *

Search This thread

Christiaan91

Senior Member
Mar 15, 2010
993
291
Everywhere
This one seems to work and back to the original sizes.
Can you explain a bit what you did? Can you update your utility so that we can build up the modded files by ourself?

I would also suggest that you give the possibility to set the external sd card address in the MOD.config file included in the flashable Battery_mod.zip file. In fact in my case it is "/external_sd" and not "/emmc" and if you don't change it manually the zip can't be flashed.
Thank you.

I'll post a new bat file, probably tomorrow. (I'm not the OP)
I'm not so familiar with the flashable zip. So won't upload it anymore, to avoid problems.

Verstuurd van mijn GT-I9100
 
  • Like
Reactions: PaperRockets

Christiaan91

Senior Member
Mar 15, 2010
993
291
Everywhere
This should work.
Unzip and replace the one in Working_Dir.

For the people who want to use the flashable zip:
I would also suggest that you give the possibility to set the external sd card address in the MOD.config file included in the flashable Battery_mod.zip file. In fact in my case it is "/external_sd" and not "/emmc" and if you don't change it manually the zip can't be flashed.
 

Attachments

  • Mod_Battery.rar
    1.6 KB · Views: 39
Last edited:

benek737

Member
Jul 16, 2012
21
2
SGS3

Hi Christiaan,
I did few modification of battery using the battery mod tool for the Galaxy SII with 4.1.2 Android and everything works great. There is still little issue with the Galaxy S3... I did replace all icons in the drawable-xhdpi folder (stat_sys_battery with numbers 0,15,28,43,57,71,85,100) for the proper ones. Unfortunately still, whenever battery reaches those values the associated icons are displayed but a bit smaller ..? Every other icon (except 0,15,28,43,57,71,85,100) is displayed in a proper size... Is there anything I can do to solve this issue?
Regards, Piotr
 

Christiaan91

Senior Member
Mar 15, 2010
993
291
Everywhere
Hi Christiaan,
I did few modification of battery using the battery mod tool for the Galaxy SII with 4.1.2 Android and everything works great. There is still little issue with the Galaxy S3... I did replace all icons in the drawable-xhdpi folder (stat_sys_battery with numbers 0,15,28,43,57,71,85,100) for the proper ones. Unfortunately still, whenever battery reaches those values the associated icons are displayed but a bit smaller ..? Every other icon (except 0,15,28,43,57,71,85,100) is displayed in a proper size... Is there anything I can do to solve this issue?
Regards, Piotr

That's probably because the original images are in multiple directories. You need to delete them all, not only the ones in drawable-xhdpi.

Verstuurd van mijn GT-I9100
 

benek737

Member
Jul 16, 2012
21
2
SGS3

When I removed all battery icons from the drewable-xhdpi folder the battery itself is no longer visible at all. It has just gone. :)
To clarifying it: after using the Battery Mod Tool 1.2 I got the file with 204 new battery icons in the drewable-hdpi folder – and that I believe is ok. Additionally in the same folder there were 8 old, green-charging icons left, which I replaced with the correct ones. But there is another folder drewable-xhdpi containing 17 old-green icons: 8 stat_sys_battery_(0,15,28,43,57,71,85,100), 8 stat_sys_battery_anim(0,15,28,43,57,71,85,100) and the last stat_sys_battery_full. When I replace them with the correct ones, while displayed are just bit smaller. Removed from the folder makes the battery icon invisible at all..?
 

Christiaan91

Senior Member
Mar 15, 2010
993
291
Everywhere
When I removed all battery icons from the drewable-xhdpi folder the battery itself is no longer visible at all. It has just gone. :)
To clarifying it: after using the Battery Mod Tool 1.2 I got the file with 204 new battery icons in the drewable-hdpi folder – and that I believe is ok. Additionally in the same folder there were 8 old, green-charging icons left, which I replaced with the correct ones. But there is another folder drewable-xhdpi containing 17 old-green icons: 8 stat_sys_battery_(0,15,28,43,57,71,85,100), 8 stat_sys_battery_anim(0,15,28,43,57,71,85,100) and the last stat_sys_battery_full. When I replace them with the correct ones, while displayed are just bit smaller. Removed from the folder makes the battery icon invisible at all..?

About the hdpi folder is good.
The 17 old-green icons needs to be delete from the xhdpi folder.

Or

You need to modify the images for xhdpi. Then you need to modify the script a bit and let it copy the images to the xhdpi folder and delete the old ones in de hdpi folder.
If you use this images for xhdpi they appear smaller.

Verstuurd van mijn GT-I9100
 

benek737

Member
Jul 16, 2012
21
2
SGS3

About the hdpi folder is good.
The 17 old-green icons needs to be delete from the xhdpi folder.

Or

You need to modify the images for xhdpi. Then you need to modify the script a bit and let it copy the images to the xhdpi folder and delete the old ones in de hdpi folder.
If you use this images for xhdpi they appear smaller.

Verstuurd van mijn GT-I9100

Many thanks for the hints!
Yes I did delete the all old battery icons from the xhdpi folder and had copied the modified systemUI.apk file into the system/app folder. Unfortunately after having restarted the phone it’s battery icon just disappeared (it was no longer displayed )..? Summarise: when my configuration is that I have all proper icons in the hdpi folder only (no battery icons in the xhdpi) - the battery icon is not visible on the phone screen at all. If I leave the icons in the xhdpi folder instead of deleting them, they will be displayed in smaller size always and only when the battery reaches levels of: 0,15,28,43,57,71,85,100 %. It looks like the system takes those particular value icons from the xhdpi folder regardless they are available in the hdpi and then display them resizing. With no battery icons in the xhdpi the battery icon on the phone screen is no longer displayed.
 

Christiaan91

Senior Member
Mar 15, 2010
993
291
Everywhere
Many thanks for the hints!
Yes I did delete the all old battery icons from the xhdpi folder and had copied the modified systemUI.apk file into the system/app folder. Unfortunately after having restarted the phone it’s battery icon just disappeared (it was no longer displayed )..? Summarise: when my configuration is that I have all proper icons in the hdpi folder only (no battery icons in the xhdpi) - the battery icon is not visible on the phone screen at all. If I leave the icons in the xhdpi folder instead of deleting them, they will be displayed in smaller size always and only when the battery reaches levels of: 0,15,28,43,57,71,85,100 %. It looks like the system takes those particular value icons from the xhdpi folder regardless they are available in the hdpi and then display them resizing. With no battery icons in the xhdpi the battery icon on the phone screen is no longer displayed.

Then you need to modify the script to make sure all the new icons will be copied to xhdpi and you need to delete the old ones from hdpi.
You need to resize the images from this thread, because xhdpi images are bigger so when you use the images from this thread they appear smaller.

Verstuurd van mijn GT-I9100
 

benek737

Member
Jul 16, 2012
21
2
Then you need to modify the script to make sure all the new icons will be copied to xhdpi and you need to delete the old ones from hdpi.
You need to resize the images from this thread, because xhdpi images are bigger so when you use the images from this thread they appear smaller.

Verstuurd van mijn GT-I9100

My intention is to use the regular icons with size as comes from the hdpi folder and that is it. I don’t know how to modified the system or script to make it able to use icons only from the hdpi folder. For some reason it takes hdpi icons for every single value of the battery % except 0,15,28,43,57,71,85,100 %. Those particular ones must be taken from xhdpi and resized while display. Is there any modification I can do to use only hdpi folder icons?
 

Christiaan91

Senior Member
Mar 15, 2010
993
291
Everywhere
My intention is to use the regular icons with size as comes from the hdpi folder and that is it. I don’t know how to modified the system or script to make it able to use icons only from the hdpi folder. For some reason it takes hdpi icons for every single value of the battery % except 0,15,28,43,57,71,85,100 %. Those particular ones must be taken from xhdpi and resized while display. Is there any modification I can do to use only hdpi folder icons?

I don't know exactly. Then i have to examine it some more.

Verstuurd van mijn GT-I9100
 

Christiaan91

Senior Member
Mar 15, 2010
993
291
Everywhere
My intention is to use the regular icons with size as comes from the hdpi folder and that is it. I don’t know how to modified the system or script to make it able to use icons only from the hdpi folder. For some reason it takes hdpi icons for every single value of the battery % except 0,15,28,43,57,71,85,100 %. Those particular ones must be taken from xhdpi and resized while display. Is there any modification I can do to use only hdpi folder icons?

I resized the images from 32x32 to 36x36 and put all the images in xhdpi. (deleted all old ones)
Are the images still small or are they bigger then before but still smaller then the originals?

But hopefully they're good now :)
 

Attachments

  • SystemUI.rar
    1.4 MB · Views: 15
  • Like
Reactions: Kamy

HitmanSchwarz

Member
Mar 20, 2013
5
0
Thanx for the Battery Mod 1.2... on my ICS it was very usefull.

Please can anyone modify the Battery Mod 1.2 for Jelly Bean 4.1.2 XXXLSD?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 268
    Hey guys,

    This tool allows you to compile your own "Battery Mod" using your own PNG Battery Images of your choice. For your convenience, I have compiled a list of Battery Images below for you to choose.
    This tool works with Ice Cream Sandwich 4.0.3/4.0.4 for both CyanogenMod and Samsung type ROMs

    I take no credit what so ever for the creation and design of the battery images however, I will pin a medal on my chest for the many hours I've spent perfecting them to suite your needs.
    They were designed by their respective authors shown below. (so please show them THANKS in their original thread(s))
    I have taken the files from this source by mrvirginia.

    Compatible with: Official CM9 (Ice Cream Sandwich 4.0.3/4.0.4)
    Compatible with: "Stock" Samsung Deodexed ROMs (Ice Cream Sandwich 4.0.3/4.0.4)

    The usual disclaimer: I accept no responsibility if your phone blows up or it screws with your system giving you a boot loop or something. I can't reproduce every single users installation type. In saying that, I'm pretty certain they all should install ok on your device.


    INSTRUCTIONS: (for "experienced users")

    1a) Download: Battery Mod Tool v1.2 for Windows (Mirror1) (Mirror2) (Mirror3) (Mirror4)
    1b) Download: Battery Mod Tool v1.2 for Linux (Mirror1) (Mirror2) (Mirror3) (Mirror4)
    2) Download: The battery images of your choice (Mirror1) (Mirror2) (Mirror3) (Mirror4) (or use your own images)
    3) Copy the 204 x Battery PNG images to the "Input_Images" folder
    4) Copy "SystemUI.apk" to the "Input_APKs" folder
    5) Copy "framework-res.apk" to the "Input_APKs" folder
    6a) Double-click "Mod_my_battery!.bat" and sit back and wait for Windows version
    6b) Check inside the tarball package for instructions on how to use the Linux version
    7) Check the "Output" folder for your newly modded SystemUI


    INSTRUCTIONS: To RESTORE the backup.

    A flashable ZIP file is created during flashing of the battery mod. This is a backup of your original SystemUI.apk file. Each ZIP is timestamped with the date and time in GMT/UTC. All you have to do, is flash this ZIP as you would any other flashable CWM zip file. The files are located in \SDCard\UniversalFlasher\


    FAQ:

    Q. I can't see my new battery mod? (using CM9)
    A. Check the battery display setting. (Settings - Interface - System - Status Bar - Battery status style -> Icon (default))

    Q. I had an error during the modding process... something about "airplane_mode" not present.
    A. You can safely ignore this. It's more of a warning and not an error.


    THANKS:

    For their work; without them, this thread wouldn't be possible
    - mrvirginia, sonnysekhon, he_stheone64, Hooolm, reverepats, Zaphod-Beeblebrox, evilkal, Pendo, ktmbikerman, nbeebe24, Gyufus, D79_ and azpilot.

    For CM9; without them, we wouldn't have an early release of Ice Cream Sandwich
    - AdamG-, atinm, codeworkx, coolya, guiper, nebkat, Unhelpful, xplodwild, yjwong, teamhacksung and the cyanogenmod-team.

    For Universal Flashing Tool and VRTheme.
    - VillainROM team, doctercrete, JRsoft and Intronauta.

    For apktool; without this, we wouldn't be able to reverse engineer ICS apk files.
    - Brut.alll


    Battery Images:

    Lucid Battery by sonnysekhon
    Lucid_Battery.png

    Download: Battery Images (Mirror1) (Mirror2)

    1% Battery - Stock by he_stheone64
    1_Percent_Stock.png

    Download: Battery Images (Mirror1) (Mirror2)

    1% Battery - Circle by he_stheone64
    1_Percent_Circle.png

    Download: Battery Images (Mirror1) (Mirror2)

    1% Battery - Gauge by he_stheone64
    Gauge.png

    Download: Battery Images (Mirror1) (Mirror2)

    1% Battery - Gauge by he_stheone64 modded by
    dave_p_b

    1%25_gauge-by_dave_p_b.png

    Download: Battery Images (Mirror1) (Mirror2)

    CirclesMod by Hooolm
    CirclesMod.png

    Download: Battery Images (Mirror1) (Mirror2)

    Circle Battery by currently unknown
    CircleBattery.png

    Download: Battery Images (Mirror1) (Mirror2)

    Axiom Battery - Blue Box by reverepats
    Axiom_Blue_Box.png

    Download: Battery Images (Mirror1) (Mirror2)

    Axiom Battery - Dotted Circle by reverepats
    Axiom_Dotted_Circle.png

    Download: Battery Images (Mirror1) (Mirror2)

    Axiom Battery - HoneyComb by reverepats
    Axiom_HoneyComb.png

    Download: Battery Images (Mirror1) (Mirror2)

    Axiom Battery - Left % by reverepats
    Axiom_Left_Percent.png

    Download: Battery Images (Mirror1) (Mirror2)

    Axiom Battery - Little Android by reverepats
    Axiom_Little_Android.png

    Download: Battery Images (Mirror1) (Mirror2)

    Axiom Battery - Big Android by reverepats
    BigAndroid.png

    Download: Battery Images (Mirror1) (Mirror2)

    Axiom Battery - Sphere by reverepats
    Axiom_Sphere.png

    Download: Battery Images (Mirror1) (Mirror2)

    Axiom Battery - Stock Horizontal by reverepats
    Axiom_Stock_Horizontal.png

    Download: Battery Images (Mirror1) (Mirror2)

    Axiom Battery - Stock Vertical by reverepats
    Axiom_Stock_Vertical.png

    Download: Battery Images (Mirror1) (Mirror2)

    Off Center Battery by mrvirginia
    Off_Center.png

    Download: Battery Images (Mirror1) (Mirror2)

    Circle Battery - No Numbers by mrvirginia
    Circle_NoNumbers.png

    Download: Battery Images (Mirror1) (Mirror2)

    Circle Battery - Normal by mrvirginia
    Circle_Normal.png

    Download: Battery Images (Mirror1) (Mirror2)

    Numbers by Gyufus
    Numbers.png

    Download: Battery Images (Mirror1) (Mirror2)

    Digital Numbers by Zaphod-Beeblebrox
    Digital_numbers.png

    Download: Battery Images (Mirror1) (Mirror2)

    Full Circle - Blue by evilkal
    FullCircle_Blue.png

    Download: Battery Images (Mirror1) (Mirror2)

    Full Circle - White by evilkal
    FullCircle_White.png

    Download: Battery Images (Mirror1) (Mirror2)

    Full Circle by Pendo
    FullCircle_Pendo.png

    Download: Battery Images (Mirror1) (Mirror2)

    GingerBlu by ktmbikerman
    GingerBlu.png

    Download: Battery Images (Mirror1) (Mirror2)

    ICS Circle by nbeebe24
    ICS_Circle.png

    Download: Battery Images (Mirror1) (Mirror2)

    4 Bars by D79_
    4bars.png

    Download: Battery Images (Mirror1) (Mirror2)

    CyanogenMod by D79_
    Circle_Cyanogen.png

    Download: Battery Images (Mirror1) (Mirror2)

    CyanogenMod with Numbers by D79_
    Blue_Cyanogen_Numbers.png

    Download: Battery Images (Mirror1) (Mirror2)

    B&W CyanogenMod with Numbers by D79_
    B%2526W_Cyanogen_Numbers.png

    Download: Battery Images (Mirror1) (Mirror2)

    ICS Domination - Percentage by Vertumus
    ICS_Domination_Percentage.png

    Download: Battery Images (Mirror1) (Mirror2)

    ICS Domination - Original by Vertumus
    ICS_Domination_Original.png

    Download: Battery Images (Mirror1) (Mirror2)

    ICS Domination - CM by Vertumus
    ICS_Domination_CM.png

    Download: Battery Images (Mirror1) (Mirror2)

    ICS Domination - Circle by Vertumus
    ICS_Domination_Circle.png

    Download: Battery Images (Mirror1) (Mirror2)

    Stock look with White numbers by currently unknown
    Stock_look_with_White_Numbers.png

    Download: Battery Images (Mirror1) (Mirror2)


    Link to old Battery Mods - v2.5/v2.6 only

    Download: Battery Mods


    CHANGELOG: Battery Mod Tool

    9th June - v1.2:
    - Added Linux version of Battery Mod Tool v1.2. (Thanks to dave_p_b)
    - Added 1% Battery Gauge modded by dave_p_b. (Gauge changes colour as your level changes)
    3rd April - v1.2:
    - Fixed some bugs.
    1st April - v1.1:
    - Fixed some bugs.
    - Added all available apktool's
    24th Mar - v1.0:
    - Initial Release: Battery Mod Tool

    CHANGELOG: Battery Mod's
    24th Mar - v2.6:
    - Added support for CM9:0322
    18th Mar - v2.5:
    - Added support for CM9:0314 (and CM9:0318) and xxLPQ
    22nd Feb - v2.4:
    - Added support for CM9:0220 and xxLPH
    5th Feb - v2.3:
    - Added support for LPB
    - Added 2 x more mods by D79_
    2nd Feb - v2.2:
    - Added support for CM9:02012012
    28th Jan - v2.1:
    - Added support for LP6
    - Added a new Battery called "4 Bars" thanks to D79.
    - Recompiled resources just in case for CM9.
    - For now, use v2.0 for LP2. I'm working on multi-platform support for next release.
    - Added BigAndroid.
    25th Jan - v2.0:
    - Converted all flashable zips to UNIVERSAL type. (One zip for both versions of ICS)
    21st Jan - v1.1:
    - Updated all mods to use UFT, they should be compatible with all future builds as well.
    - Added 9 new battery MODs.
    - Added compatibility for ICS XXLP2 to the list.
    - Resized a few more of them.
    - New screenshots showing new battery MODs.
    15th Jan - v1.0:
    - Updated all mods to use VRTheme, they are compatible with all future CM9 builds now.
    - Resized a few of them as per your requests.
    - New screenshots showing new sizes.
    - Reset version numbering convention.
    - I'm now also clearing DALVIK during install just to eliminate any possible errors with other mods you may have done.
    - Add "Restoration to Stock" for each build.
    12th Jan - v3:
    - Updated to latest CM9 Build: "update-cm-9-SGS2-01112012-2-signed.zip"
    - Still using old method. Will update to VRT over the weekend.
    9th Jan - v2:
    - All MODs in 1% increments
    8th Jan - v1: (Initial Release)
    - Files removed (MODs not in 1% increments)
    7
    Thanks for the great work. This is wonderful! :)
    530d8191857c.png
    6
    My new tool for you all.
    I've created a tool to automatically create a modded SystemUI.apk containing any 1% battery you wish.
    It's very simple to use, just follow the Instructions in the root of the zip archive.

    This tool is setup to work with both CM9 and Sammy ROMs.

    Let me know if you have any dramas.

    Hope this helps.

    Shayne.

    http://www.box.com/s/a4299a7a9f91405f25ca
    6
    V1.2 for you all...
    Support for Siyah kernel...

    http://db.tt/S4XgvPOq

    sent from my Motorola XOOM using XDA Premium HD
    5
    Hey guys,

    I will endeavour to update to the latest asap. I'll try and sit down tonight.