1% Battery Mods - Update 09.2. Android 4.04 - Now incl. TUTORIAL

Search This thread

he_stheone64

Senior Member
Aug 1, 2008
5,033
10,991
Düsseldorf
1% Battery Mod for Deodexed ROM`s

As soon as I had my new GN in my hands, I had to mod it :D

I`ve drawn completely new png`s, since old GB versions are way too small. Also control of these icons now moved from framework to systemui, but porting that to ICS was quite trivial.


Credits: Paul O`Brian for UI patches (& me for latest versions :D)


What does this Mod?

It shows the battery symbol in 1% Steps in your Statusbar, also during charging


Prerequsites:

Unlocked, rooted, DEODEXED ROM, CWM Recovery
DO NOT INSTALL on ODEXED STOCK ROM


Installation:

Flash zip in Recovery or via ROM Manager - Nandroid is as always highly recommended before you flash


Tip: With Widgetsoid you can emulate Cyanogen Power Widgets perfectly on ICS, without the annoying popups known under GB with this or other comparable apps.(see Screenshot 2)


NEW - since there are many ROM´s floating around with updates every day, I stop only offering the fish and better teach you fishing. I will still update it for some ROM´s, but can`t support them all


Tools: Installed SDK & JDK, apktool or apkmanager, Notepad++


Battery Patch is fairly simple (if you don`t include my UI patches):

1. Decompile systemui.apk
2. Copy stat_sys_battery.xml and stat_sys_battery_charge.xml from my zip in drawables folder and overwrite your stock xml´s
3. Copy all 204 stat_sys_battery png`s from my (or another) zip in your xhdpi folder
4. Compile and flash with one of my update zips


To better understand what you do here:

stat_sys_battery.xml controls the battery steps in status bar

stat_sys_battery_charge.xml controls the battery steps in status bar while charging

You need to add all png`s before you compile, so that ID`s for all new resources are added to public.xml.

stat_sys_battery.xml, stat_sys_battery_charge.xml & circle battery png`s


https://www.box.com/s/4bfa4a983f54238085a0


Android 4.04 Base


Battery Circle 1% Mod for stock deodexed ROM`s like ARHD 3.x

http://minus.com/mbpeX6Yumh/7

Battery Circle 1% Mod & Medium Auto Brightness Mod for Modaco ir11 B1

In the download folder you find both mods incl. back to stock zips, in case you are not happy or have issues. Nandroid is nevertheless as always recommended.

Download Folder:

http://www.box.com/s/3zfsypc44ibi9viirrmv

If you are not sure, what is what (even if file names are pretty clear), click on blue comment button for each file.


IML74K Base

New download folder for IML74K mods (since multiupload has issues since a while...)

http://www.box.com/s/85kortrv1zborri0ymjb


Screenshot:

BatteryModCircleOpenKang.jpg


BatteryModGaugeOpenKang.jpg



ICL53F Base

New download folder for ICL53F mods (since multiupload has issues since a while...)

http://www.box.com/s/0chgsg8i912kk8xv3fqb


ITL41F Base

New download folder for ITL41F mods (since multiupload has issues since a while...)

http://www.box.com/s/k8bodh9c9zjudzjfdfrv


BatteryModHome.jpg


BatteryModNoti.jpg


BatteryModCircle.jpg
 
Last edited:

qwer23

Senior Member
Jan 6, 2010
1,375
290
Realm of Württemberg
Thanks!

May I ask which weather widget you are using on the screenshot?

And how do you set up Widgetsoid to have the CM-like power menu?
Got that my self :)
 
Last edited:

boshot

Senior Member
Nov 16, 2010
459
70
Thanks a lot.

only one question, how did you get widgetsoid in the dropdown bar?
 

he_stheone64

Senior Member
Aug 1, 2008
5,033
10,991
Düsseldorf
Thanks!

May I ask which weather widget you are using on the screenshot?

And how do you set up Widgetsoid to have the CM-like power menu?
Got that my self :)

Weather widget is Palmary weather, you can hide the widget from Homescreen in extended settings, it`s pretty well hidden in the menu :D

I would recommend to give the widget a name, so can edit it later in settings.
 

Sim-1

Senior Member
Jun 11, 2008
401
33
48
Bergamo
There are only 2 versions in OP, one with stock and the other one with search and settings always activated.

Thank you, I just don't get this: what "search and settings" become always activated with Paul's version?

In the meantime I have installed the stock version and works perfectly well!

When you use Paul's version the "Search and Settings" buttons become always visible in the dock in the bottom!
 
Last edited:

jameslfc5

Senior Member
Sep 27, 2009
1,690
193
This would be nice if it was included in all of pauls MODs

Thanks tho, it looks really good
 

Pirreballo

Senior Member
Feb 1, 2009
232
7
Hi! What's the name of the app that allow to see the setting control on the dropdown status bar?
Thank you for the patch! ;)

Inviato dal mio Galaxy Nexus usando Tapatalk
 

Top Liked Posts

  • There are no posts matching your filters.
  • 60
    1% Battery Mod for Deodexed ROM`s

    As soon as I had my new GN in my hands, I had to mod it :D

    I`ve drawn completely new png`s, since old GB versions are way too small. Also control of these icons now moved from framework to systemui, but porting that to ICS was quite trivial.


    Credits: Paul O`Brian for UI patches (& me for latest versions :D)


    What does this Mod?

    It shows the battery symbol in 1% Steps in your Statusbar, also during charging


    Prerequsites:

    Unlocked, rooted, DEODEXED ROM, CWM Recovery
    DO NOT INSTALL on ODEXED STOCK ROM


    Installation:

    Flash zip in Recovery or via ROM Manager - Nandroid is as always highly recommended before you flash


    Tip: With Widgetsoid you can emulate Cyanogen Power Widgets perfectly on ICS, without the annoying popups known under GB with this or other comparable apps.(see Screenshot 2)


    NEW - since there are many ROM´s floating around with updates every day, I stop only offering the fish and better teach you fishing. I will still update it for some ROM´s, but can`t support them all


    Tools: Installed SDK & JDK, apktool or apkmanager, Notepad++


    Battery Patch is fairly simple (if you don`t include my UI patches):

    1. Decompile systemui.apk
    2. Copy stat_sys_battery.xml and stat_sys_battery_charge.xml from my zip in drawables folder and overwrite your stock xml´s
    3. Copy all 204 stat_sys_battery png`s from my (or another) zip in your xhdpi folder
    4. Compile and flash with one of my update zips


    To better understand what you do here:

    stat_sys_battery.xml controls the battery steps in status bar

    stat_sys_battery_charge.xml controls the battery steps in status bar while charging

    You need to add all png`s before you compile, so that ID`s for all new resources are added to public.xml.

    stat_sys_battery.xml, stat_sys_battery_charge.xml & circle battery png`s


    https://www.box.com/s/4bfa4a983f54238085a0


    Android 4.04 Base


    Battery Circle 1% Mod for stock deodexed ROM`s like ARHD 3.x

    http://minus.com/mbpeX6Yumh/7

    Battery Circle 1% Mod & Medium Auto Brightness Mod for Modaco ir11 B1

    In the download folder you find both mods incl. back to stock zips, in case you are not happy or have issues. Nandroid is nevertheless as always recommended.

    Download Folder:

    http://www.box.com/s/3zfsypc44ibi9viirrmv

    If you are not sure, what is what (even if file names are pretty clear), click on blue comment button for each file.


    IML74K Base

    New download folder for IML74K mods (since multiupload has issues since a while...)

    http://www.box.com/s/85kortrv1zborri0ymjb


    Screenshot:

    BatteryModCircleOpenKang.jpg


    BatteryModGaugeOpenKang.jpg



    ICL53F Base

    New download folder for ICL53F mods (since multiupload has issues since a while...)

    http://www.box.com/s/0chgsg8i912kk8xv3fqb


    ITL41F Base

    New download folder for ITL41F mods (since multiupload has issues since a while...)

    http://www.box.com/s/k8bodh9c9zjudzjfdfrv


    BatteryModHome.jpg


    BatteryModNoti.jpg


    BatteryModCircle.jpg
    6
    Alright, everyone. I've figured out how to pull this off. All links I'm providing are from posts already in this thread and are to put everything into one place.

    This is a step by step process.

    Just be sure we're on the same page, delete any folders and downloads you've already tried. Also, go into your C:\Users\username\ folder and DELETE THE APKTOOL folder! This will ensure a virgin install and should minimize any issues.

    Step 1: Download he_stheone64's version of APK Manager here: http://www.multiupload.com/JCTFOH7DQ6

    Step 2: Extract the contents of this zip into a new folder (named whatever you want, but with NO SPACES, IE: apk_manager) in your C:\Windows directory. (Why Windows? I'll explain later.)

    Step 3: Download he_stheone64's zipalign batch here: http://www.multiupload.com/IAFR5U6OJ4

    Step 4: Extract this into it's own folder anywhere you like. For simplicity, put it into your apk manager folder.

    Step 5: Download he_stheone64's template images and xml files here: http://www.multiupload.com/LFFT3Z4P02

    Step 6: Extract this into it's own folder anywhere you like. Name it in a way you know you will be copying files from here eventually.

    Step 7: Launch the Script.bat file.

    Note: If you like pulling your SystemUI.apk and Framework-res.apk files in other ways than ADB, you can skip to step 8.

    Step 8: Choose option 0 and pull your SystemUI.apk. It will be located at \system\app\SystemUI.apk and you can name it whatever you like when prompted.

    Step 9: Choose option 0 again and extract the framework-res.apk. It will be located at \system\framework\framework-res.apk and you can name it whatever you want when prompted.

    Step 10: These files will now be in your place-apk-here-for-modding folder. If you skipped to this step, well then PLACE these files in this folder.

    Step 11: Choose option 22 and select framework-res.apk (or whatever you named it) as your current project.

    Step 12: Choose option 9 and decompile framework-res.apk.

    Note: The astute of you will notice that when this step is working a new folder will be created under C:\Users\username\ called apktool and inside it will be a framework folder with a file called 1.apk. THIS is the reason we've been failing. I'll explain later.

    Step 13: Choose option 22 and select SystemUI.apk (or whatever you named it) as your current project.

    Step 14: Choose option 9 and decompile SystemUi.apk.

    Step 15: Copy the contents res folder from he_stheone64's source folder (the one I told you to rename in a way you knew you'd be copying from it) and paste it into the res folder of your SystemUI project. Choose to overwrite any conflicts.

    Note: If you have your own custom images, you would be copying those over instead. However, he_stheone64's XML files still need to be copied if you want all 1% battery steps.

    Step 16: Choose option 11 to compile your new SystemUI.apk. Say yes "y" to both prompts.

    Note: Having said yes to both prompts you will now have a folder in the root of your APK Manager folder called keep. And you will be prompted to do something with these files. Thus...

    Step 17: Delete the resources.arsc file in the root of keep.

    Step 18: Delete the drawable and the drawable-xhdpi folders.

    Step 19: Back in the script window press any key to finish the compile.

    Note: You now have a new file in your place-apk-here-for-modding folder called "unsignedSystemUI.apk". Or rather, "unsignedwhateveryounamedit.apk.

    Step 20: Copy the new "unsigned" apk you just compiled and paste into he_stheone64's zipalign folder that I had you create earlier. Run the batchalign.bat file.

    Step 21-Zip: If you prefer to use an update zip you can skip these last steps and instead create your zip. Rename the "unsigned" file back into it's proper name, IE: SystemUI.apk, and put it into he_stheone64's update zip, overwriting the one he has in there. That zip is located here: http://www.multiupload.com/Y40E9JNSXH

    Step 21-ADB: If you want to use the still-open APK Manager script window to push the SystemUI.apk back on your phone with ADB, then copy and paste your freshly zipaligned file (that you left named "unsigned") BACK into the place-apk-here-for-modding folder.

    Step 22-ADB: Choose option 8 and enter the full path of where you want your file to go. In this case "\system\app\SystemUI.apk". The script will automatically rename the file properly and push it to your phone.

    Final Step: Reboot.

    Congratulations, you now just completed your first UI mod. Hopefully I made the journey a positive experience for you.

    Now, I promised to explain a couple of things, so here goes.

    Why install into Windows? Well, ADB is a command shell and ideally you would actually be doing all your mod work in the C:\Program Files\Android\android-sdk\platform-tools folder. However, this folder path has a space right between "program" and "files", thus breaking the script tool. The ADB shell is recursive, though, and placing it into Windows allows access to it even if you're not in the proper folder.

    Why is the 1.apk file such a big deal (and is the reason I told you to delete everything prior to starting)? This tool is great in that it's built to uncompile and recompile apks across all Android devices. However, when dealing with custom UI's such as TouchWiz or Sense you have a custom framework. For standard every day apks this means nothing. However, for system- or UI-based apks, the framework tells it how to be built to work with the system. It just so happens that ICS is so advanced (or modified, if you prefer) in its UI, and UI-specific apks require the framework to function, we require ICS's framework. This tool isn't updated to recognize a framework-res.apk files as a needed resource since it expects TouchWiz or Sense frameworks, but if you decomplile ICS's framework first, before your failure with decompiling the SystemUI.apk, the tool will extract the framework elements it needs and install them as that 1.apk file. Keep in mind, however, that the tool will create a 1.apk (and other numbers) for ANY decompile that happens first. So if you tried and failed to get that SystemUI.apk to decompile you will already have some files in the apktool folder. And, if you struggled like I have, you'll have a few files in there to clean out.

    If you like what I did, please thank this post.
    3
    Update for IML74K

    Download stock 1% Icon:

    http://www.multiupload.com/GT6C55QPLW


    Download Circle 1% Icon:

    http://www.multiupload.com/Y40E9JNSXH
    2
    he_stheone64

    Any guide, how we can do this ourselves?

    No problem, it`s fairly simple once you have the code done. The hard work is building the icons, since most GB battery icons are too small. That`s why I`ve drawn the stock version from scratch

    Here is the How-To build your own battery mod

    Tools:

    • SDK
    • apktool or apkmanager
    • Photoshop or GIMP

    1. Decompile systemui.apk and make sure, you installed ICS framework before. Easiest way for starters is using apkmanager, you can install new framework with option 10, decompile with 9 and compile with 11.
    2. Drag either my stat_sys_battery icons in your drawable-xhdpi folder of decompiled apk or draw your own and do the same
    3. Drag my DECOMPILED stat_sys_battery.xml and stat_sys_battery_charge.xml in drawable folder of decompiled apk
    4. Now compile systemui.apk
    5. Zipalign apk
    6. Flash in recovery - you can use my update.zip, just drag systemui.apk in the app folder and overwrite my version
    2
    Update for ICL53F Base

    Download stock 1% Icon:

    http://www.multiupload.com/P9JIXLEZP1


    Download stock 1% Icon inkl. UI Patches from Paul O'Brien - search & menu

    http://www.multiupload.com/5IR617XWUM


    Download Circle 1% Icon:

    http://www.multiupload.com/IAT9QIE70D


    Download Circle 1% Icon inkl. UI Patches from Paul O'Brien - search & menu

    http://www.multiupload.com/XLB3CKQYMS