[Sony Xperia T, TL, TX, V] dully79:
Xposed battery module themes and tutorial.

Many thanks and credits to @rovo89 for his help and Xposed framework.

I created/pieced together the code from rovo's tutorial here to create a module that themes the status bar battery icon. This should work on all devices provided they have Xposed framework installed. Xposed framework link.

What is it?

Basically it redirects the images from your "system/app/SystemUI.apk" to the module "****.apk" without the need to flash zips.

The benefits are your system apk's are never changed so you can chop, change and revert to stock just by enabling/disabling the modules.

The modules also overlay the Xtheme engine themes.

The apk's contain only the images and xml's required to work.

Applying:

Download module.

Install.

Select "Module" tab from "Xposed Installer" app.

Apply and reboot.

Here's preview's and links for the battery theme modules i've created:

dully79 Codec battery-

LINK

esk02k Orb battery-

LINK

esk02k Indent battery-

LINK

dully79 Power battery-

LINK

UOT castaway default-

LINK

UOT custom style D-

LINK

UOT custom Honeycomb-

LINK

UOT kitchen style A-

LINK

UOT Rainbow-

LINK

Also check out @dr.ketan mods for more versions.

LINK

Modules use the "Hybrid" charging animation.

Known bugs:

None. I have personally tried and tested all apk's.

Create your own:

Manually

I'm going to show you how to edit the module and add your own battery icons from UOT kitchen including changing the package name.

Time taken: 10-15 minutes.

Tools needed:

The zip linked below contains the tutorial module and AOSP 4.0.3 framework-res.apk and SystemUI.apk taken from @89luca89 CB ROM. Using Sony apk's returns errors using UOT which is why I've included these.

Java Link. Setting up java:

Download, install and add bin path to your environment variables.

Windows 7.

Select Computer from the Start menu

Choose System Properties from the context menu

Click Advanced system settings > Advanced tab

Click on Environment Variables, under System Variables, click "new".

In the "variable name" field enter JAVA_HOME

In the "variable value" field enter the "bin" location from the java folder.

My location is "C:\Program Files\Java\jre7\bin"

Reboot.

Open a cmd window and type java. If you added the path correctly you will receive an help menu. If not try to add the path again.

apk's and module LINK

7zip LINK

ApkManager This is what i used.

Notepadd++ LINK

Signing tool LINK

Instructions.

I've split it into 2 parts to improve productivity.

Part 1. Creating the UOT battery theme:

Go here and thank rovo89. And here to thank 89luca89.

Go to UOT kitchen and select the "Battery" tab and check "Use this mod".

Choose the battery icons and animation etc that you want to use.

Click the "File upload" tab and check the "Upload system files".

Upload the framework-res.apk and SystemUI.apk.

When complete click the "Upload" tab and submit work to kitchen.

Part 2. Combing the theme with the module :

Whilst your shiny new battery is being cooked, download and place "signed_TutorialBatteryReplacement.apk" in "ApkManager/place-apk-here-for-modding".

Run the Script.bat and choose option 22 (set project).

Select "signed_TutorialBatteryReplacement.apk"

Select option 9 (Decompile apk)

Navigate to "ApkManager/projects/signed_TutorialBatteryReplacement.apk" and open "AndroidManifest.xml" with Notepad++.

At line 2 you will see the code-

package="com.tutorial.xposed.mods.batteryreplacement"

I recommend changing this if you plan on creating more than 1 module. USE "." AS A SEPERTATOR!! e.g.

package="com.xposed.mods.uot.batterya"

At line 7 you will see a description of the module, edit this freely.

android:value="Replaces status bar battery images."

Save xml.

Navigate to "ApkManager/projects/signed_TutorialBatteryReplacement.apk/res/values", open "strings.xml" and change app name if desired.

Go to the UOT pick-up and download your cooked file.

Open the downloaded UOT file and extract "SystemUI.apk" from "system/app" into "ApkManager/place-apk-here-for-modding". Select as project and decompile.

Navigate to "ApkManager/projects/SystemUI.apk/res/drawable", copy "stat_sys_battery.xml" and "stat_sys_battery_charge.xml" to ApkManager/projects/signed_TutorialBatteryReplacement.apk/res/drawable"

Navigate to "ApkManager/projects/SystemUI.apk/res/drawable-hdpi", copy "stat_sys_battery_*.png" and "stat_sys_battery_charge_anim*.png" to "ApkManager/projects/signed_TutorialBatteryReplacement.apk/res/drawable-xhdpi". You can also replace the icon if necessary. If you use different densities you can add the images to hdpi also.

Choose option 22 (set project) and set "signed_TutorialBatteryReplacement.apk".

Select option 11 (compile) and answer yes to system app and yes to keep.

Navigate to "ApkManager/keep" and delete "resources.arsc"and "AndroidManifest.xml"

Go inside "res/drawable" and delete the 2 xml's.

Go inside "res/drawable-xhdpi" and delete all the battery icons and the launcher icon if you replaced it.

Back to the script, click any button to continue.

You will now receive an apk in "ApkManager/place-apk-here-for-modding" named "unsignedsigned_TutorialBatteryReplacement.apk", rename it to whatever you like.

Open up your new apk with 7zip, select and delete "META-INF"

Place apk on your device and sign with "zipsigner" from the play store.

Install and apply through "Xposed installer/Modules". Reboot to apply changes.

I know this looks like a lot but thats because i've tried to make it as detailed as i could.

This took me ten minutes.

Using UOT - quick and easy method

Time taken: 5 minutes..

Goto UOT kitchen - http://uot.dakra.lt/ and select kitchen tab at the top of the page.

Click the battery tab underneath and check use this mod.

Choose between "SCB with %" or "Custom battery" and select your style, color,charging animation etc.

Click the file upload tab and check the Xposed battery module.

Click the summary tab and "submit to kitchen".

Goto the pickup page.

Download, install and enjoy.

Credits:

@rovo89 for Xposed and help.

@89luca89 for CB ROM apk's.

My main man @esk02k for his orb and indent battery themes.

UOT kitchen and various creators of battery styles and mods.

@dr.ketan

If you use this in your own work please link back here and/or give credits and DO NOT mirror my links.

Thank you.