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

Search This thread

shayne77

Senior Member
Mar 31, 2011
1,869
757
Gold Coast
ASUS ZenFone 8
If it helps any, I think/wonder it might have to do with actually the "Host OS" and Version. Notice in the screenshot I highlighted the stock file that didnt get updated, you notice how its HostOS is Unix and Version number is higher (20) then the ones you added which are 10. I wonder if the cmd lind 7zip -u command wont update it if the version is lower then whats going in or if it fails cause the HostOS is wrong. Thats something that caught my eye on why two of the ROM set files I used failed, but the 3rd one worked, that 3rd one, all stock files are in the APK itself are FAT on HostOS and 10 on Version.

Dixit

If you look at the Attrib (atributes) column, the rest have "A". From memory, I think the ZIP file has to be an Add and Replace type file. However, using 7zip command line, surely there's a switch to make it force overwrite. the "u" command means update existing files meaning it should overwrite the older file so I don't know.
 

GeyerA

Senior Member
Apr 6, 2009
979
1,586
Germany, Gerolzhofen
Hello. can you advise me to cover the small bug which was found as my battery is sometimes returning to "stock"? BTW, I can not flash the zip...my Galaxy Nexus does not allow (SD card mounting issue)
 

melorib

Senior Member
Nov 30, 2010
3,999
455
Cascais
Sony Xperia 1 II
Hi Shayne,

I got fed-up with CM9 and moved to "Samsung" ICS, so far so good, only one thing ennoys me:

The clock on the status bar, do you know how to get rid of it :confused:



Also,

Do you know the name of the picture used for lockscreen wallpaper, so I can replace it
 
Last edited:

GeyerA

Senior Member
Apr 6, 2009
979
1,586
Germany, Gerolzhofen
Stock png

Hi Shayne77; I am not an expert but I over-wrote the png's (running Ubuntu12.04) but still got the 100% icon in the statusbar as the stock icon although the circle is in the SystemUI.apk. I attached a screenshot.
 
Last edited:

shayne77

Senior Member
Mar 31, 2011
1,869
757
Gold Coast
ASUS ZenFone 8
+1,
I receive this error will compiling "Big android"
My rom is VK rom 4.6

Any idea regarding this issue?

Your work looks grate! I'd like to wear one...:eek:
Thanks

It means the developer has made it so you can't decompile the SystemUI without jumping through some hoops.
If you send me your SystemUI file, I will take a look but I'm busy today so won't be until tomorrow now.
 

shayne77

Senior Member
Mar 31, 2011
1,869
757
Gold Coast
ASUS ZenFone 8
Hello. can you advise me to cover the small bug which was found as my battery is sometimes returning to "stock"? BTW, I can not flash the zip...my Galaxy Nexus does not allow (SD card mounting issue)

Hi Shayne77; I am not an expert but I over-wrote the png's (running Ubuntu12.04) but still got the 100% icon in the statusbar as the stock icon although the circle is in the SystemUI.apk. I attached a screenshot.

I assume you've tried deleting it completely and then dragging in the one you want?
 

shayne77

Senior Member
Mar 31, 2011
1,869
757
Gold Coast
ASUS ZenFone 8
Hi Shayne,

I got fed-up with CM9 and moved to "Samsung" ICS, so far so good, only one thing ennoys me:

The clock on the status bar, do you know how to get rid of it :confused:

Also,

Do you know the name of the picture used for lockscreen wallpaper, so I can replace it

I founf the lockscreen wallpaper, still needing to get rid of clock on status bar :rolleyes:

Hey mate,
I'm not sure about Sammy ROMs but are you saying you want to remove the clock completely? If so, it should be in your settings somewhere. You shouldn't have to mod SystemUI. If you can't find it, send me your SystemUI and I will take a look.
 

GeyerA

Senior Member
Apr 6, 2009
979
1,586
Germany, Gerolzhofen
Good morning,
No I opened the SystemUI.apk and went to the /res/drawable-hdpi folder then marked the png's from the circle battery zip and just moved it there.....then closed the SystemUI.apk and was there.
I checked last night - my phone changed when coming from 58% to 57% to the stock battery. Then when I came to 56% it returned to the circle. I charged immediately and saw that it moved back to stock battery when I came to 57%. I checked the SystemUI.apk and have the circle png for 57%.....Is there another source in the phone where the png can come from?

UPDATE - also 85% is stock battery png
 
Last edited:

melorib

Senior Member
Nov 30, 2010
3,999
455
Cascais
Sony Xperia 1 II
Hey mate,
I'm not sure about Sammy ROMs but are you saying you want to remove the clock completely? If so, it should be in your settings somewhere. You shouldn't have to mod SystemUI. If you can't find it, send me your SystemUI and I will take a look.

It is ICS LP9 custom...

As you see, on the lockscreen it doesnt show the clock, much nicer, I dont need the small unreadable clock to burn the screen :rolleyes:

Must be easy, if you know, to do the same on home screen :confused:

clock.jpg
 

shayne77

Senior Member
Mar 31, 2011
1,869
757
Gold Coast
ASUS ZenFone 8
Good morning,
No I opened the SystemUI.apk and went to the /res/drawable-hdpi folder then marked the png's from the circle battery zip and just moved it there.....then closed the SystemUI.apk and was there.
I checked last night - my phone changed when coming from 58% to 57% to the stock battery. Then when I came to 56% it returned to the circle. I charged immediately and saw that it moved back to stock battery when I came to 57%. I checked the SystemUI.apk and have the circle png for 57%.....Is there another source in the phone where the png can come from?

UPDATE - also 85% is stock battery png

No. I don't think so. Check the other folders though to be sure.

sent from my XOOM using XDA Premium HD
 

melorib

Senior Member
Nov 30, 2010
3,999
455
Cascais
Sony Xperia 1 II
Hey mate,
I'm not sure about Sammy ROMs but are you saying you want to remove the clock completely? If so, it should be in your settings somewhere. You shouldn't have to mod SystemUI. If you can't find it, send me your SystemUI and I will take a look.

All I want is for the clock not to show on status ber, like in lockscreen, I would like to be able to do it myself everytime there is a new version of the ROM :rolleyes:

I have been trying to figure out APKTool, but I cannot even install what it sugests after instalation :confused:

http://melorib.com/data/SystemUI.apk
 

GeyerA

Senior Member
Apr 6, 2009
979
1,586
Germany, Gerolzhofen
hello shayne77
I made the same job on the Thunderbolt which I have in spare and do not have the same issues I got on the Galaxy Nexus....I run Twistedumbrella's ICS. Have not noticed any stock battery png coming back. Just for your information. In case you got a clue what to try, just shoot....
 

swlo2007

Member
Oct 12, 2010
6
0
Thank you so much.
I also like the blue Wi-Fi signal and 3g signal icons as shown in the thread. I would much appreciate it if you could make the .png images available for download.

I could replace them in the SystemUI.apk myself.

Sent from my GT-I9100 using XDA
 

melorib

Senior Member
Nov 30, 2010
3,999
455
Cascais
Sony Xperia 1 II
HOW TO CENTER CLOCK

-decompile your SystemUI.apk
-navigate to your decompiled folder and go to res>layout>status_bar.xml
-look for this line:
Code:
<com.android.systemui.statusbar.policy.Clock
-delete the stock clock line, delete the entire line
-next go to the top of your status_bar.xml and place your cursor at the end of this line:
Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
-press "enter" to create an empty line
-place your cursor at the beginning of that empty line and paste this line of code:
Code:
<LinearLayout android:gravity="center" android:eek:rientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
-make sure everything lines up (see my xml below)
-lastly, find this line:
Code:
<LinearLayout android:eek:rientation="horizontal" android:id="@id/ticker"
-right after "@id/ticker" add this drawable:
Code:
android:background="@drawable/status_bar_bg_tile"
That's it for the Center Clock. Recompile and if you used apktool sign your new SystemUI.apk using apkmanager (option 16)


Here is an example of how your status_bar.xml should look like


Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:eek:rientation="vertical" android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:gravity="center" android:eek:rientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
<LinearLayout android:eek:rientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:eek:rientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
<com.android.systemui.statusbar.phone.IconMerger android:gravity="center_vertical" android:eek:rientation="horizontal" android:id="@id/notificationIcons" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentLeft="true" />
</LinearLayout>
<LinearLayout android:gravity="center_vertical" android:eek:rientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<LinearLayout android:gravity="center" android:eek:rientation="horizontal" android:id="@id/signal_battery_cluster" android:paddingLeft="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent">
<include android:id="@id/signal_cluster" android:layout_width="wrap_content" android:layout_height="wrap_content" layout="@layout/signal_cluster_view" />
<ImageView android:id="@id/battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:eek:rientation="horizontal" android:id="@id/ticker" android:background="@drawable/status_bar_bg_tile" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
<com.android.systemui.statusbar.AnimatedImageView android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:scaleType="center" />
</ImageSwitcher>
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
<TextView android:textAppearance="@style/TextAppearance.StatusBar.PhoneTicker" androi


I did all this, replaced SystemUI\res\Layout\Status_bar but nothing changed :confused:
 

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.