[VRTHEME]1% Animated Battery Mod for Stock Roms, PA 2.5 & SmoothROM 4.2

Status
Not open for further replies.
Search This thread

Spannaa

Recognized Contributor / Themer
Sep 13, 2010
7,431
16,793
Cardiff
Huawei Nexus 6P
Google Pixel 6
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:
hydrog3nbattery.png


NOTE: Wi-Fi only and 3G models require different Base Battery VRThemes

Stock 4.3 JWR66V Wi-Fi HyDrOG3N Base Battery VRTheme

Stock 4.3 JWR66V 3G HyDrOG3N Base Battery VRTheme

Stock 4.2.2 JDQ39 Wi-Fi HyDrOG3N Base Battery VRTheme

Stock 4.2.2 JDQ39 3G HyDrOG3N Base Battery VRTheme

Stock 4.2.1 JOP40D Wi-Fi HyDrOG3N Base Battery VRTheme

Stock 4.2.1 JOP40D 3G HyDrOG3N Base Battery VRTheme

Stock 4.2 JOP40C Wi-Fi HyDrOG3N Base Battery VRTheme

Stock 4.2 JOP40C 3G HyDrOG3N Base Battery VRTheme

Stock 4.1.2 JZO54K HyDrOG3N Base Battery VRTheme

ParanoidAndroid 2.5 HyDrOG3N Base Battery VRTheme

SmoothROM 4.2.1 JOP40D HyDrOG3N Base Battery VRTheme


Base Statusbar Battery & Pulldown Battery Toggle VRThemes

These all contain 1% stock statusbar battery icons and also theme the pulldown battery toggle in a similar style:
pulldownscreenshot.png


stockg.png


NOTE: Wi-Fi only and 3G models require different Base Battery VRThemes

Stock 4.3 JWR66V Wi-Fi Stock Statusbar Pulldown Base Battery VRTheme

Stock 4.3 JWR66V 3G Stock Statusbar Pulldown Base Battery VRTheme

Stock 4.2.2 JDQ39 Wi-Fi Stock Statusbar Pulldown Base Battery VRTheme

Stock 4.2.2 JDQ39 3G Stock Statusbar Pulldown Base Battery VRTheme

Stock 4.2.1 JOP40D Wi-Fi Stock & Pulldown % Base Battery VRTheme

Stock 4.2.1 JOP40D 3G Stock & Pulldown % Base Battery VRTheme

Stock 4.2 JOP40C Wi-Fi Stock & Pulldown % Base Battery VRTheme

Stock 4.2 JOP40C 3G Stock & Pulldown % Base Battery VRTheme


Battery Universal 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.3 JWR66V, 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

ICS Circle Battery Universal VRTheme
icscirclebattery.png


ICS Circle 30% Orange 15% Red Battery Universal VRTheme
icscircle30orange15redb.png


HyDrOG3N Battery Universal VRTheme
hydrog3nbattery.png


Vertumus Battery Universal VRTheme
universalbattery.png


CM10 Blue Alternative % Battery Universal VRTheme
cm10altbattery.png


Signal Battery Universal VRTheme
signalbattery.png


Blue Circle Battery Universal VRTheme
bluecirclebattery.png


Bagel Battery Universal VRTheme
bagelbattery.png


Blue Droid Battery Universal VRTheme
bluedroidbattery.png


CM10 Battery Universal VRTheme
cm10battery.png


Blue Glass Battery Universal VRTheme
blueglassbattery.png


Dotted Battery Universal VRTheme
dottedbattery.png


Big Circle Battery Universal VRTheme
bigcirclebattery.png


AFAinHD Battery Universal VRTheme (original icons by AFAinHD)
afainhdbattery.png


JKay S3 Nexus AOSPblue Battery Universal VRTheme (original icons by _JKay_)
jkays3batterynexusaospb.png


JKay S3 Nexus AOSPblue Orange Battery Universal VRTheme (original icons by _JKay_)
jkays3batterynexusaospb.png


JKay S3 Nexus AOSPblue Yellow Orange Battery Universal VRTheme (original icons by _JKay_)
jkays3batterynexusaospb.png


JKay S3 Battery Vertical AOSPblue Battery Universal VRTheme (original icons by _JKay_)
jkays3batteryverticalao.png


JKay S3 Battery Vertical AOSPblue OrangeFrom15 Battery Universal VRTheme (original icons by _JKay_)
jkays3batteryverticalao.png


Stock % Battery Universal VRTheme
stocknl.png


Whiter Digits Battery Universal VRTheme (original icons by patmorris)
whiterdigits.png


Stock Numbers Battery Universal VRTheme
stocknumbers.png


Bluemint Battery Universal VRTheme (original icons by vicino)
bluemintcirclebattery.png


AOKP Battery Universal VRTheme
aokpbattery.png


Stock 15% Red Battery Universal VRTheme
stock15red.png



Pulldown Battery Universal VRThemes

These can be flashed after a Base Statusbar Battery & Pulldown Battery Toggle VRTheme to change just the pulldown battery toggle icons.

AFAinHD Pulldown Battery Toggle Universal VRTheme (original icons by AFAinHD)
afainhdtoggle.png


Stock % Pulldown Battery Toggle Universal VRTheme
stocktoggle.png


Stock 15% Red Pulldown Battery Toggle Universal VRTheme
stocktoggles15red.png



Remove Themes & Revert Back To Stock SystemUI.apk

Flash these to completely remove the battery themes and revert back to the stock SystemUI.apk for your model & rom.

4.3 JWR66V Wi-Fi Revert To Stock SystemUI VRTheme

4.3 JWR66V 3G Revert To Stock SystemUI VRTheme

4.2.2 JDQ39 Wi-Fi Revert To Stock SystemUI VRTheme

4.2.2 JDQ39 3G Revert To Stock SystemUI VRTheme

4.2.1 JOP40D Wi-Fi Stock SystemUI.apk VRTheme

4.2.1 JOP40D 3G Stock SystemUI.apk VRTheme

4.2 JOP40C Wi-Fi Stock SystemUI.apk VRTheme

4.2 JOP40C 3G Stock SystemUI.apk VRTheme

4.1.2 JZO54K Stock SystemUI.apk VRTheme

ParanoidAndroid 2.5 Stock SystemUI.apk VRTheme

SmoothROM 4.2.1 JOP40D Revert To Stock SystemUI.apk VRTheme


Installation

TWRP Installation
  1. Download the correct Base Battery VRTheme zip for your model & rom
  2. If you want a different battery to the base, download a Universal Battery VRTheme zip file (if your base is 4.3, 4.2.2, 4.2.1 or 4.2, you need to delete the drawable-sw720dp-hdpi folder from the Universal Battery VRTheme zip)
  3. Copy the zip(s) to your device
  4. Boot into TWRP recovery and choose the base zip you want to install
  5. Choose the universal zip you want to flash over the base zip (if any)
  6. Install the zip(s)
  7. Reboot your device

CWM Installation
  1. Download the correct Base Battery VRTheme zip for your model & rom
  2. If you want a different battery to the base, download a Universal Battery VRTheme zip file (if your base is 4.3, 4.2.2, 4.2.1 or 4.2, you need to delete the drawable-sw720dp-hdpi folder from the Universal Battery VRTheme zip)
  3. Copy the zip(s) to your device
  4. Boot into CWM recovery and choose the base zip you want to install
  5. Install the zip
  6. Choose the universal zip you want to flash over the base zip (if any)
  7. Install the zip
  8. Reboot your device


__________________

If you want to change your SoftKeys too...
 
Last edited:

Spannaa

Recognized Contributor / Themer
Sep 13, 2010
7,431
16,793
Cardiff
Huawei Nexus 6P
Google Pixel 6
Last edited:

Spannaa

Recognized Contributor / Themer
Sep 13, 2010
7,431
16,793
Cardiff
Huawei Nexus 6P
Google Pixel 6
Yes, I'll get onto it ASAP.

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
_____________________________
 
Last edited:

Belka77

Member
Jan 27, 2007
38
0
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.
 

AFAinHD

Senior Member
Mar 25, 2011
793
528
27
Fenton, Missouri
afainhd.3owl.com
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.
 

Spannaa

Recognized Contributor / Themer
Sep 13, 2010
7,431
16,793
Cardiff
Huawei Nexus 6P
Google Pixel 6
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.
 

Spannaa

Recognized Contributor / Themer
Sep 13, 2010
7,431
16,793
Cardiff
Huawei Nexus 6P
Google Pixel 6
Well basically its like this battery mod for S3 but with blue instead of green.
http://xdaforums.com/showthread.php?t=1768962

Scroll down and look for Alternative Small Battery with percentage credits to raubkatze course :)

By the way its for 4.2 version

OK, I've downloaded the pngs, re-sized them, re-coloured them and added the universal flashable vrtheme to the first post.

You can't use it on 4.2 yet though as I haven't made a base theme - I still can't decompile/compile it's SystemUI.apk.

As soon as I can, I will.
 
Last edited:

Spannaa

Recognized Contributor / Themer
Sep 13, 2010
7,431
16,793
Cardiff
Huawei Nexus 6P
Google Pixel 6
Update

Now that I've successfully managed to decompile/compile SystemUI.apk from android 4.2 JOP40C,
I've added a Stock 4.2 JOP40C HyDrOG3N Base Battery VRTheme to the first post

Note: Before flashing any Battery Universal VRTheme over the Stock 4.2 JOP40C HyDrOG3N Base Battery VRTheme,
you should delete the drawable-sw720dp-hdpi folder from the Battery Universal VRTheme zip first.

(vrtheme/system/app/SystemUI.apk/res/drawable-sw720dp-hdpi)
 
Last edited:

afcrib

Senior Member
Feb 15, 2011
428
258
Lisboa
Samsung Galaxy S22 Ultra
Great work m8, using it with stock and no problems ;)
If i can, would like to suggest another one. Same thread from s3 the most used battery icons: Blue Circle battery

Cheers and thanks for your work :)

Sent from my Nexus 7 using Tapatalk 2
 
Status
Not open for further replies.

Top Liked Posts