Post Reply

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

OP Spannaa

6th November 2012, 10:10 AM   |  #1  
Spannaa's Avatar
OP Recognized Themer
Flag Cardiff
Thanks Meter: 11,336
 
3,218 posts
Join Date:Joined: Sep 2010
Donate to Me
More
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

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:




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


ICS Circle 30% Orange 15% Red Battery Universal VRTheme


HyDrOG3N Battery Universal VRTheme


Vertumus Battery Universal VRTheme


CM10 Blue Alternative % Battery Universal VRTheme


Signal Battery Universal VRTheme


Blue Circle Battery Universal VRTheme


Bagel Battery Universal VRTheme


Blue Droid Battery Universal VRTheme


CM10 Battery Universal VRTheme


Blue Glass Battery Universal VRTheme


Dotted Battery Universal VRTheme


Big Circle Battery Universal VRTheme


AFAinHD Battery Universal VRTheme (original icons by AFAinHD)


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


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


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


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


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


Stock % Battery Universal VRTheme


Whiter Digits Battery Universal VRTheme (original icons by patmorris)


Stock Numbers Battery Universal VRTheme


Bluemint Battery Universal VRTheme (original icons by vicino)


AOKP Battery Universal VRTheme


Stock 15% Red Battery Universal VRTheme



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)


Stock % Pulldown Battery Toggle Universal VRTheme


Stock 15% Red Pulldown Battery Toggle Universal VRTheme



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 by Spannaa; 27th July 2013 at 03:51 PM. Reason: Added Stock 4.3 JWR66V Wi-Fi & 3G Base and Revert To Stock VRThemes
The Following 70 Users Say Thank You to Spannaa For This Useful Post: [ View ]
6th November 2012, 10:11 AM   |  #2  
Spannaa's Avatar
OP Recognized Themer
Flag Cardiff
Thanks Meter: 11,336
 
3,218 posts
Join Date:Joined: Sep 2010
Donate to Me
More
Other VRThemes

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.

Blue WiFi Arrows Universal VRTheme
Blue Alarm Universal VRTheme

Flashed over Stock 4.2 JOP40C HyDrOG3N Base Battery VRTheme & Signal Battery Universal VRTheme.


Blue Ginger WiFi Universal VRTheme

Changes the WiFi icons & arrows to a blue Gingerbread style.


Revert to Stock WiFi Universal VRTheme
Last edited by Spannaa; 10th January 2013 at 10:46 AM. Reason: Updated download links to goo.im hosting
The Following 16 Users Say Thank You to Spannaa For This Useful Post: [ View ]
6th November 2012, 04:18 PM   |  #3  
Hello,
Can you modify this so that it also puts the image files in the folder res\drawable-sw720dp-hdpi so that it works when in tablet mode.
Thanks,

Rsotbiemrptson
6th November 2012, 04:33 PM   |  #4  
Spannaa's Avatar
OP Recognized Themer
Flag Cardiff
Thanks Meter: 11,336
 
3,218 posts
Join Date:Joined: Sep 2010
Donate to Me
More
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 by Spannaa; 6th November 2012 at 07:15 PM.
The Following 2 Users Say Thank You to Spannaa For This Useful Post: [ View ]
7th November 2012, 12:02 AM   |  #5  
Member
Thanks Meter: 0
 
38 posts
Join Date:Joined: Jan 2007
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.
7th November 2012, 12:34 AM   |  #6  
AFAinHD's Avatar
Senior Member
Flag Fenton, Missouri
Thanks Meter: 528
 
781 posts
Join Date:Joined: Mar 2011
Donate to Me
More
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.
7th November 2012, 02:25 AM   |  #7  
Senior Member
Thanks Meter: 108
 
532 posts
Join Date:Joined: May 2012
It's fantastic, thanks man.
7th November 2012, 09:17 AM   |  #8  
Spannaa's Avatar
OP Recognized Themer
Flag Cardiff
Thanks Meter: 11,336
 
3,218 posts
Join Date:Joined: Sep 2010
Donate to Me
More
Quote:
Originally Posted by AFAinHD

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.
The Following 6 Users Say Thank You to Spannaa For This Useful Post: [ View ]
13th November 2012, 10:03 PM   |  #9  
Senior Member
Thanks Meter: 10
 
551 posts
Join Date:Joined: Oct 2007
More
Thanks, i'm waiting for update to 4.2
14th November 2012, 09:21 AM   |  #10  
Spannaa's Avatar
OP Recognized Themer
Flag Cardiff
Thanks Meter: 11,336
 
3,218 posts
Join Date:Joined: Sep 2010
Donate to Me
More
Quote:
Originally Posted by tatoone

Thanks, i'm waiting for update to 4.2

I'll upload it as soon as it's finished - just extracted 4.2 SystemUI.apk from my Nexus...

The Following 3 Users Say Thank You to Spannaa For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
1% battery, cwm, twrp, vrtheme
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Nexus 7 Themes and Apps by ThreadRank