[Samsung Galaxy Nexus] lichti1901:
Ok, pull SystemUI.apk from your actuall rom you are on, decompile it with apktool.

1. Go to SystemUI/res/drawable-xhdpi, there you will see the battery png's. stat_sys_battery_0.png - stat_sys_battery_100.png

Should be 8 png's for battery stat and 8 png's for charging.

2. Go to SystemUI/res/drawable/ there you will find the matching xml, stat_sys_battery.xml & stat_sys_battery_charge.xml. // look for the same name, there are also stat_sys_battery_min.xml --> these are for the thinner battery png's

3. Open the stat_sys_battery.xml and you will see this:

<?xml version="1.0" encoding="utf-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/stat_sys_battery_0" android:maxLevel="4" />
<item android:drawable="@drawable/stat_sys_battery_15" android:maxLevel="15" />
<item android:drawable="@drawable/stat_sys_battery_28" android:maxLevel="35" />
<item android:drawable="@drawable/stat_sys_battery_43" android:maxLevel="49" />
<item android:drawable="@drawable/stat_sys_battery_57" android:maxLevel="60" />
<item android:drawable="@drawable/stat_sys_battery_71" android:maxLevel="75" />
<item android:drawable="@drawable/stat_sys_battery_85" android:maxLevel="90" />
<item android:drawable="@drawable/stat_sys_battery_100" android:maxLevel="100" />
</level-list>

as you can see, each line for each png.

4. Now you have to make 100 lines instead of the 8, for each png for your battery. Should look something like this then:

<?xml version="1.0" encoding="utf-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/stat_sys_battery_[COLOR="Red"]0[/COLOR]" android:maxLevel="[COLOR="Red"]0[/COLOR]" />
<item android:drawable="@drawable/stat_sys_battery_[COLOR="Red"]1[/COLOR]" android:maxLevel="[COLOR="Red"]1[/COLOR]" />
<item android:drawable="@drawable/stat_sys_battery_[COLOR="Red"]2[/COLOR]" android:maxLevel="[COLOR="Red"]2[/COLOR]" />
<item android:drawable="@drawable/stat_sys_battery_[COLOR="Red"]3[/COLOR]" android:maxLevel="[COLOR="Red"]3[/COLOR]" />
<item android:drawable="@drawable/stat_sys_battery_[COLOR="Red"]4[/COLOR]" android:maxLevel="[COLOR="Red"]4[/COLOR]" />
<item android:drawable="@drawable/stat_sys_battery_[COLOR="Red"]5[/COLOR]" android:maxLevel="[COLOR="Red"]5[/COLOR]" />
<item android:drawable="@drawable/stat_sys_battery_[COLOR="Red"]6[/COLOR]" android:maxLevel="[COLOR="Red"]6[/COLOR]" />
...
...
<item android:drawable="@drawable/stat_sys_battery_100" android:maxLevel="100" />
</level-list>

5. Do the same with the ...charge.xml Remember: You have to for every png 1 line, so dont forget one ;)

6. Save everything and recompile SystemUI

7. If there are errors which say something with missing in public.xml --> go to SystemUI/res/values/ and delate public.xml! public.xml gets build itself while recompiling :good:

8. Flash it, shut your mouth (i know it is open bc you dont know if it will work ;) ) and enjoy :cool:

9. Dont forget, in rasbeanjelly you can choose which batteryicon you want, circle, circle with percent, .... choose the right one to see your new battery icon

10. Thats it - thats all

:highfive:

---------- Post added at 05:14 PM ---------- Previous post was at 05:12 PM ----------

Look at the right place guys, there are a bunch of battery png's in SystemUI.apk

Only the circle battery is hardcoded :p

Ps.: No need to pm me, i follow this thread :o