[VRTHEME]1% Animated Battery Mod for Stock Roms, PA 2.5 & SmoothROM 4.2
The stock battery on the Nexus 7 only changes icons at 0%, 15%, 28%, 43%, 57%, 71%, 85% & 100% charge so I've modified it so that there are now icons for every 1% and they're also animated when the device is charging.
To do this, I made two sets of Base VRThemes which modify SystemUI.apk:
The first set are Base Statusbar Battery VRThemes which change just the statusbar battery icons and contain a modified res\drawable\stat_sys_battery.xml, a modified res\drawable\stat_sys_battery_charge.xml, the 202 1% statusbar battery icons in res\drawable-hdpi & larger versions of thes icons in res\drawable-sw720dp-hdpi for tablet mode users and a modified resources.arsc
The second set are Base Statusbar Battery & Pulldown Battery Toggle VRThemes which change the statusbar battery icons and the pulldown battery toggle battery icons. These contain a modified res\drawable\stat_sys_battery.xml, a modified res\drawable\stat_sys_battery_charge.xml, a modified res\drawable\qs_sys_battery.xml, a modified res\drawable\qs_sys_battery_charging.xml, the 202 1% statusbar battery icons & the 202 1% pulldown battery toggle battery icons in res\drawable-hdpi and a modified resources.arsc
The new resources.arsc is needed because it contains the modified res\values\public.xml file with the info about the battery pngs. Unfortunately, adding this file makes the base VRTheme rom specific.
If a Base Statusbar Battery VRTheme has been flashed, Battery Universal VRThemes can be flashed over the top to change just the statusbar battery icons.
If a Base Statusbar Battery & Pulldown Battery Toggle VRTheme has been flashed, Pulldown Battery Universal VRThemes can be flashed over the top to change just the pulldown battery toggle battery icons and Battery Universal VRThemes can be flashed over the top to change just the statusbar battery icons.
These VRThemes have all been tested using both TWRP & CWM recovery and multiple Universal VRTheme flashing is supported.
Downloads
Base Statusbar Battery VRThemes
These all contain the HyDrOG3N statusbar battery icons:
NOTE: Wi-Fi only and 3G models require different Base Battery VRThemes
These can be flashed after any Base VRTheme to change just the statusbar battery icons.
NOTE: Before flashing a Battery Universal VRTheme over any Stock 4.2.2 JDQ39, Stock 4.2.1 JOP40D, Stock 4.2 JOP40C or SmoothROM 4.2.1 JOP40D Base Battery VRTheme, you should delete the drawable-sw720dp-hdpi folder from the Battery Universal VRTheme first. This folder can be found in the zip at:
vrtheme/system/app/SystemUI.apk/res/drawable-sw720dp-hdpi
Download the correct Base Battery VRTheme zip for your model & rom
If you want a different battery to the base, download a Universal Battery VRTheme zip file (if your base is 4.2.1 or 4.2, you need to delete the drawable-sw720dp-hdpi folder from the Universal Battery VRTheme zip)
Copy the zip(s) to your device
Boot into TWRP recovery and choose the base zip you want to install
Choose the universal zip you want to flash over the base zip (if any)
Install the zip(s)
Reboot your device
CWM Installation
Download the correct Base Battery VRTheme zip for your model & rom
If you want a different battery to the base, download a Universal Battery VRTheme zip file (if your base is 4.2.1 or 4.2, you need to delete the drawable-sw720dp-hdpi folder from the Universal Battery VRTheme zip)
Copy the zip(s) to your device
Boot into CWM recovery and choose the base zip you want to install
Install the zip
Choose the universal zip you want to flash over the base zip (if any)
As well as the Base VRThemes & Battery Universal VRThemes, I've added a few mini Universal VRThemes to slightly change the look of the statusbar icons.
I'll update this post when it's done.
_____________________________
EDIT: All zips updated to include larger versions of the battery images for tablet mode users in res\drawable-sw720dp-hdpi
_____________________________
Please don't PM me for support, just ask in the appropriate thread...
Hey guys, Sorry if posting in the wrong thread. Is there a way to completely replace the charging animation with system boot? I am going to be using my N7 tablet as a carputer and want it to autoboot up when charger is plugged in.
Hey bro, you should really make a tutorial for this, I would really like to make a Beautiful Battery theme.
All I really need to know is what files to make and how to complile the flashable zip.
Graphics Designer for the SickleSoftware dev team.
Hey bro, you should really make a tutorial for this, I would really like to make a Beautiful Battery theme.
All I really need to know is what files to make and how to complile the flashable zip.
It doesn't really need a tutorial as there's no decompiling/compiling involved when modifying the universal VRTheme zips.
All you need to do is download any Universal VRTheme and replace the 101 battery icons (stat_sys_battery_0.png - stat_sys_battery_100.png) and 101 battery charging icons (stat_sys_battery_charge_anim0.png - stat_sys_battery_charge_anim100.png) in res\drawable-hdpi & res\drawable-sw720dp-hdpi with the ones you want to use.
Make sure they're about the same size as the current ones and simply drop them directly into the zip file using 7-Zip.
Once you've done this, follow the installation instructions but flash your new universal zip after the base zip.
Please don't PM me for support, just ask in the appropriate thread...
Having a good recovery makes the process of modifying, tweaking, maintaining, … more
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?