Search This thread

pulser_g2

Admin Emeritus / Senior Recognized Developer
Nov 27, 2009
19,544
11,630
vr_forum_logo.png

VillainROM 3.0 for Samsung Galaxy S 2

So that old thread was long... Very long... It had good memories, but it's time to move on to a new thread, as 10k posts is just too much, and there are some more changes this time round. First off, it's as usual, a CWM flashable zip file. But, in a slight change of direction in light of Ninpo and Netarchy's Ninphetamine kernel being more complete, version 2.0.5 is now included. That is newer than the version released in the thread, but it will be updated in due course.

So for now, here's what's new in Version 3.0

- Fully deodexed
- Introduction of Ninphetamine kernel into the ROM (version 2.0.5 with BLN etc) - Note that BLN doesn't work with the stock SMS app, but Handcent is fine. I will look at ways to trigger BLN from the Messaging app later
- Install the BLN app from the market to use this
- Removal of Diginotar root certificates from the trusted store, given they are about as secure as a paper bank vault.
- All the usual stuff, although VRTweaks will be added from scratch again, since this seems a newer and better base.
- Re-addition of SIP since Samsung thinks you should be deprived of it.

Additionally, this is a way to try out the official KI3 ROM, without the bootloader being touched, thus allowing the USB jig to continue to working. To re-iterate, VR never flashes radios or bootloaders, so is safe. Stock ROMs, and other custom ROMs which are ODIN flashed, or indeed ZIPs, can and do sometimes flash these things without telling you. Just be aware - Samsung knows about the USB jig resetting the counter, and is on it...

Install procedure, and other details to come in following posts.

Contributing VRTweaks to VillainROM

Iff you want your tweak in VillainTweaks (with full credits etc) then please PM LennyUK with a description, screenshot if you have one to hand and a direct link (xda attachment, dropbox or your own server) No file hosts please.

We will add them to VRTweaks, so users can install them without having to download files to their phone. Likewise, if users find nice tweaks, let Lenny know :)
 
Last edited:

pulser_g2

Admin Emeritus / Senior Recognized Developer
Nov 27, 2009
19,544
11,630
VillainROM Installation Instructions

To follow these instructions we presume you already have access to Clockworkmod recovery, and are able to put the zip file onto the SD card, and flash it.

If you are coming from a ROM other than VillainROM 1.2 or above, then you should carry out a full wipe. In fact, you should be carrying out a full wipe anyway, but it's not strictly 100% necessary if you are just coming from the previous version.

Coming from Another ROM

Ensure CWM recovery is available, do a CWM/nandroid backup and titanium backup, and put the zip onto the root of the internal SD.
Enter CWM, carry out a factory reset, and cache wipe, and flash the ROM via "Install zip from SD" option.
Reboot the phone into VillainROM, bearing in mind the first boot may take some time on the boot animation.

To use BLN

Ensure you are using the included Ninphetamine kernel, and install this app from the market (free, paid version with more features available)
 
Last edited:

pulser_g2

Admin Emeritus / Senior Recognized Developer
Nov 27, 2009
19,544
11,630
Super happy fun times

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

Doctorcete 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, for testing

EULA

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

The actual download is on the way :)
 
Last edited:

seshmaru

Senior Member
Aug 22, 2009
1,294
374
VillainTheme System Information

Download VillainTheme 0.3.6 experimental:

Galaxy S II template for themes: http://www.mediafire.com/?45xbcu152638fvi

Download VillainTheme 0.3.4:

Galaxy S II template for themes: http://www.mediafire.com/?ugjaj89i5oxb2nh

Changelog

0.3.5
  • 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.

If any themers find any problems with the VRThemes template, PM me and I will try to sort it out.

Please include as much information as you can, and any recovery logs are appreciated.

Currently known bugs:

it doesn't copy the /raw folder
solution: changed the additional files dependancy from install script to updater-script. Has been incorporated into 0.3.2
 
Last edited:

CamoGeko

Retired Forum Moderator
VRTweaks Catalogue

-------VRTweaks for VillainROM-------

Latest VRTweaks app can be sourced from this link - VRTweaks v1.3.1

Here is a list of all available modifications in VRTweaks:

For VillainROM 3.0 (currently active)

- Prevent Full Charge Notification
- Remove 15% battery limit on camera, allow music while using camera, allow camera while using phone
- Remove 10% battery limit on video
- Disable noise cancellation in call
- Disable Incrementing Ringer
- Disable incrementing ringer and noise cancellation
- Make Stock SMS (MMS.apk) work with BLN (Services.jar method)
- Home Button Lagfix


For VillainROM 2.4.2

***

MOD - Fix "Home" key wake up lag due to checking for double presses (please wait at least 3 minutes for the phone to reboot after install)
Author - Oliwe

***

MOD - CirclesMod blue (2 parts, install both before rebooting)
Author - Hoolm

***

MOD - CirclesMod green (2 parts, install both before rebooting)
Author - Hoolm

***

MOD - Remove 10% battery limit on video

***

MOD - Prevent notification and vibration when fully charged

***

MOD - Remove 15% battery limit on camera, allow music while using the camera and allow camera while using the phone

***

MOD - Restore VillainROM Bootanimation

***

MOD - Enable HTC headphone button support
Author - paalkr

***

MOD - Stop home button waking the phone
Author - paalkr

***

MOD - Stop power button waking the phone (noonski's request)

***

----------


For VillainROM 2.1 & 2.3 (currently active)

***

MOD - Advanced Power Menu + KJay's Battery Mod (2 parts, install both before rebooting)
Author - kahvitahra

***

MOD - MIUI-inspired theme (2 parts, please install both parts before rebooting)
Author - Mr. Megi

***

MOD - No increasing ringtone volume

***

MOD - Restore VillainROM Bootanimation

***

MOD - Enable HTC headphone button support
Author - paalkr

***

MOD - Stop home button waking the phone
Author - paalkr

***

MOD - Stop power button waking the phone (noonski's request)

***

MOD - UNTESTED, Swype with some other language support (2 parts, install both before rebooting). Not recommended unless your language is missing.

***

MOD - Remove SMS/MMS limit, sent time instead of received time
Author - muveszur/coudu

***

MOD - CirclesMod blue (2 parts, install both before rebooting)
Author - Hoolm

***

MOD - CirclesMod green (2 parts, install both before rebooting)
Author - Hoolm

***

MOD - Green status bar icons + transparent notification bar + no battery full notification
Author - Rawat/Pulser

***

MOD - Prevent notification and vibration when fully charged.

***

MOD - CRT Effect, also low battery will be orange then red.
Author - Rawat

***

----------


Post will be updated when new Tweaks are added. :)

geko95gek
 
Last edited by a moderator:

bluesith

Senior Member
Mar 30, 2011
86
10
somerset
will flash when i get home from work tonight .

looking forward to it.

from the previous thread

" OK folks... A quick vote -

You can have the VR2.4 ROM odexed, tomorrow. Or deodexed, with a laggy (or non-present) stock browser tonight.

What do we think? I don't have my odexed files handy and ain't re-loading it all in again... "

Is this still the case ?
 
Last edited:

hide598

Senior Member
Jul 3, 2011
74
5
Don't lie... :p The download link isn't visible yet :p
haha, nice one!!

First of all, thanks for the great work!!

In the meanwhile, could you please further collaborate on the reason for your move from an odexed framework towards the fully deodexed framework?

We know that we will be missing the smooth scrolling of the browser, but what will we get on the other side?
 

BoneMo

Senior Member
Jun 25, 2009
2,018
290
Prague
It leads to a page which requires signing-in. I want to sign up over at that forum but am unable to complete the task of matching the picture after trying a few times although I'm very sure I aligned them precisely:p

After signing- in it tells me that i dont have enough privileges

PS it is working now
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 220
    vr_forum_logo.png

    VillainROM 3.0 for Samsung Galaxy S 2

    So that old thread was long... Very long... It had good memories, but it's time to move on to a new thread, as 10k posts is just too much, and there are some more changes this time round. First off, it's as usual, a CWM flashable zip file. But, in a slight change of direction in light of Ninpo and Netarchy's Ninphetamine kernel being more complete, version 2.0.5 is now included. That is newer than the version released in the thread, but it will be updated in due course.

    So for now, here's what's new in Version 3.0

    - Fully deodexed
    - Introduction of Ninphetamine kernel into the ROM (version 2.0.5 with BLN etc) - Note that BLN doesn't work with the stock SMS app, but Handcent is fine. I will look at ways to trigger BLN from the Messaging app later
    - Install the BLN app from the market to use this
    - Removal of Diginotar root certificates from the trusted store, given they are about as secure as a paper bank vault.
    - All the usual stuff, although VRTweaks will be added from scratch again, since this seems a newer and better base.
    - Re-addition of SIP since Samsung thinks you should be deprived of it.

    Additionally, this is a way to try out the official KI3 ROM, without the bootloader being touched, thus allowing the USB jig to continue to working. To re-iterate, VR never flashes radios or bootloaders, so is safe. Stock ROMs, and other custom ROMs which are ODIN flashed, or indeed ZIPs, can and do sometimes flash these things without telling you. Just be aware - Samsung knows about the USB jig resetting the counter, and is on it...

    Install procedure, and other details to come in following posts.

    Contributing VRTweaks to VillainROM

    Iff you want your tweak in VillainTweaks (with full credits etc) then please PM LennyUK with a description, screenshot if you have one to hand and a direct link (xda attachment, dropbox or your own server) No file hosts please.

    We will add them to VRTweaks, so users can install them without having to download files to their phone. Likewise, if users find nice tweaks, let Lenny know :)
    56
    VillainROM Installation Instructions

    To follow these instructions we presume you already have access to Clockworkmod recovery, and are able to put the zip file onto the SD card, and flash it.

    If you are coming from a ROM other than VillainROM 1.2 or above, then you should carry out a full wipe. In fact, you should be carrying out a full wipe anyway, but it's not strictly 100% necessary if you are just coming from the previous version.

    Coming from Another ROM

    Ensure CWM recovery is available, do a CWM/nandroid backup and titanium backup, and put the zip onto the root of the internal SD.
    Enter CWM, carry out a factory reset, and cache wipe, and flash the ROM via "Install zip from SD" option.
    Reboot the phone into VillainROM, bearing in mind the first boot may take some time on the boot animation.

    To use BLN

    Ensure you are using the included Ninphetamine kernel, and install this app from the market (free, paid version with more features available)
    37
    IF YOU THINK THE ROM ISN'T ROOTED, INSTALL SUPERUSER FROM THE MARKET. IF YOU WANT CWM APP, GET IT FROM THE ATTACHMENTS LIST



    Complete list of Attachments to this thread:
    http://xdaforums.com/misc.php?do=showattachments&t=1198334
    34
    Super happy fun times

    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

    Doctorcete 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, for testing

    EULA

    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

    The actual download is on the way :)