Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[ATTN][DEV] VillainROM and Partners Presents VillainTheme System 0.4.1 [THEMERS ONLY]

OP seshmaru

7th August 2011, 05:43 PM   |  #1  
OP Senior Member
Thanks Meter: 359
 
1,251 posts
Join Date:Joined: Aug 2009
VillainTheme System 0.4.1, aka VRTheme.

http://www.villainrom.co.uk/forum/sh...inTheme-System

Quote:
Originally Posted by pulser_g2

OK, so I think it's time to explain what this is about. It's born from the idea that came about on IRC, for a way to make a theme once for a ROM, rather than have to adjust it for each incremental update for a given ROM or ROMs.

As a user, you don't need to know much - just flash this zip like a regular zip, and you'll get your theme running. But you should be able to apply themes to any device, ROM, and version of the ROM, without it causing adverse effects. That means less time spent by themers making the original theme, and less time spent modifying it constantly for new versions of ROMs.

As a themer? Well, here is the information:

  • Inside the zip, in the vrtheme folder, you can create a folder called "system" and "data". The former is required, the latter is not required unless you wanted to theme a data app (strongly not recommended, unless you know the app will be there on every phone)
  • Inside the system or data folder, create a subfolder "app", and in these, make subfolders named EXACTLY after the APK name. For example, to theme the Browser, you need a folder called "Browser.apk". It must be correctly capitalised.
  • Within there, place the files you require for your theme, in the relevant locations. So most PNGs will be in res/drawable-hdpi/. You can put in xml files too (those which are not in resources.arsc), if you compile them via apktool, and extract them with a zip tool.
  • In the vrtheme folder, as well as system and data folder, one called "raw" can exist. Within here, you can place files to be copied verbatim to the ROM (for example, modified JAR files). Note that using this may make the theme device dependent (read WILL make it device dependent)
  • And that's about it.

Features
  • Will modify APKs in a ROM, without changing signatures, and can be used on any ROM where the filenames of themed files is the same.
  • Should not need updated between versions of a ROM
  • Zipaligns all APKs before installation
  • Stores a backup of all files being modified in /cache/vrtheme-backup/
  • Requires no coding abilities or editing of files - just drag and drop
  • Can copy "raw" files, though at risk of not working on other devices (well, let's face it, it won't work on likely a slightly different ROM, so this feature is not recommended or encouraged)
Credits

D.O.C for the original idea in a discussion on IRC
Stericson for the original idea of metamorph. While totally different, it's a shared goal to separate themes from ROMs
Matt from the Metamorph team, for the zip binary compiled for Android
Seshy

EULA

Quote:

Nothing evil or complicated - just a few little things. You should not charge for access to this code. That includes a zip containing this, or a derivative of it. So please don't sell themes using it. That's not particularly cool. If you want to use it commercially for some reason, get in touch with us.

If you spot a bug or error, and find a fix, please reply in this thread and let us know, or post the changes you made. If you're going to distribute the changed version, it is expected that you share the change made by contacting us, or posting it here.

Finally, don't be a douche - don't rip this off or call it your own, and leave all headers and comments identifying the origin of the code in place. Don't rename this to match your ROM or "team" name - it's not cool, and it's not yours to go and adjust. I chose to make this a readable "plain" script, but can easily obfuscate and encrypt it if you want to be a douche.

Copyright VillainROM (2011). All rights reserved

Download VillainTheme 0.4.1 TWRP compatible (Thanks to Dees_Troy)

Download VillainTheme 0.4.1 (thanks D.O.C)

Download VillainTheme 0.4.0 (thanks D.O.C)

Download VillainTheme 0.3.6 experimental
Template for phones: http://www.mediafire.com/?9nxxuagdj4o72k4

Template for Android 3.0+ Tablets: http://www.mediafire.com/?5gyr1g0xgd05t70


Download VillainTheme 0.3.4
Template for phones V0.3.4: http://www.mediafire.com/?ugjaj89i5oxb2nh

Template for Android 3.0+ Tablets V0.3.3: http://www.mediafire.com/?xxucc8xyt2x3k9s
(WP 7 Theme to show where everything goes.)

If any of the templates get updated I will make sure to post the updated version with a changelog.

This was posted with permission from Pulser_g2 as he is on vacation.
If you have any issues you can PM me and I will try to solve them, you can also drop by on the VillainROM.co.uk IRC channel and see if someone can help.

Also will state this again, all credit should go to Pulser, I am just posting this since he was away on vacation.
Last edited by seshmaru; 17th January 2014 at 11:00 PM.
The Following 148 Users Say Thank You to seshmaru For This Useful Post: [ View ]
7th August 2011, 05:43 PM   |  #2  
OP Senior Member
Thanks Meter: 359
 
1,251 posts
Join Date:Joined: Aug 2009
Changelog
Changelog

0.4.1 TWRP compatibility
  • Added TWRP Recovery compatible vrtheme (thanks to TWRP developers for compiling the zipalign binary, and again, thanks to androidphone2012 for pointing it out)
0.4.1 compatibility issues
  • Removed mounting partitions as blocks from updaterscript.
  • Removed bootlogo flasher from updaterscript

0.4.0 bugfix
  • Fixed permissions privileges in installtheme.sh

0.3.6 experimental
  • Different handling of raw files.

0.3.5 experimental
  • Fixed ASCII art in updater script.
  • Minor clean up of installtheme.sh
  • Added preview.png to template.

0.3.4
  • Changed the way the .zip handles raw files again. Just put them in the raw folder.

0.3.3
  • Modified installtheme.sh as it was giving possible problems.

0.3.2
  • Fixed a problem with raw folder copying. Put contents of /raw in /system now on the root of the .zip
  • Fixed some status 0 errors.
Currently known bugs:

You might need to grab an updater-binary fit for your device (just grab it from any .zip that will flash on your device.
Last edited by D.O.C; 23rd October 2012 at 08:23 PM. Reason: minor update
The Following 16 Users Say Thank You to seshmaru For This Useful Post: [ View ]
8th August 2011, 05:55 PM   |  #3  
jerdog's Avatar
Developer Committee / OEM Relations / XDA Portal Team - Harbinger of Doom
Flag Gallifrey
Thanks Meter: 4,327
 
6,070 posts
Join Date:Joined: May 2007
More
Great work.
8th August 2011, 06:06 PM   |  #4  
Jocutz1987's Avatar
Senior Member
Flag tampa
Thanks Meter: 203
 
611 posts
Join Date:Joined: Oct 2008
More
Nice work hope to see this development go along way....and support other phones

Sent from my LG-LS670 using Tapatalk
8th August 2011, 08:32 PM   |  #5  
D.O.C's Avatar
Senior Moderator / Recognized Developer - The Android Surgeon
Thanks Meter: 3,745
 
3,098 posts
Join Date:Joined: Jun 2006
Donate to Me
More
Quote:
Originally Posted by jose-n-liany08

Nice work hope to see this development go along way....and support other phones

Sent from my LG-LS670 using Tapatalk

Multidevice support is one of the aims of the project..
The Following User Says Thank You to D.O.C For This Useful Post: [ View ]
8th August 2011, 08:38 PM   |  #6  
OP Senior Member
Thanks Meter: 359
 
1,251 posts
Join Date:Joined: Aug 2009
Quote:
Originally Posted by jose-n-liany08

Nice work hope to see this development go along way....and support other phones

Sent from my LG-LS670 using Tapatalk

the template SHOULD theoretically work on more phones.
The Following User Says Thank You to seshmaru For This Useful Post: [ View ]
8th August 2011, 10:30 PM   |  #7  
Vipitus's Avatar
Senior Member
Thanks Meter: 606
 
637 posts
Join Date:Joined: Nov 2010
More
I want that on CyanogenMod!
Great work mate

Galaxy S - Tapatalk
The Following User Says Thank You to Vipitus For This Useful Post: [ View ]
9th August 2011, 01:32 AM   |  #8  
mcluvn's Avatar
Senior Member
Thanks Meter: 1,806
 
1,199 posts
Join Date:Joined: Jul 2009
Donate to Me
More
Sounds very promising. I'll have to check it out. Thanks
The Following 2 Users Say Thank You to mcluvn For This Useful Post: [ View ]
9th August 2011, 02:21 AM   |  #9  
Noonski's Avatar
Moderator Emeritus / Recognized Developer
Flag Amsterdam
Thanks Meter: 122
 
5,286 posts
Join Date:Joined: Apr 2005
Donate to Me
More
Thumbs up
In case someone in the future or near future makes an app to choose the themes.
Maybe an idea to put a theme preview.png somewhere in there.

Kudos, great idea guys.
The Following User Says Thank You to Noonski For This Useful Post: [ View ]
9th August 2011, 11:54 AM   |  #10  
dully79's Avatar
Recognized Themer
Flag Durham/Liverpool
Thanks Meter: 3,209
 
2,731 posts
Join Date:Joined: Apr 2010
Donate to Me
More
Thank you eveyone involved in this but one question....
Does this support modifying the resources.arsc as well as xmls?

The Following User Says Thank You to dully79 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes