Some one once asked me for a guide to flashing villain rom, here it is:
Guide for flashing Villain rom 2.4 (This is the way that I did it. I take no responsibility for any damage done to your phone while following this guide - do so at your own risk)
First of all you need to make sure you have the samsung drivers installed on your pc. If you have kies installed then they should be on already. If you havent then download and install kies from here:
Mobile Phone's Software&Manual SAMSUNG
Step 1 Rooting.
Download the flashing software called odin from here:
http://forum.xda-developers.com/attachment.php?attachmentid=611625&d=1306787405
Download the Rooted Kernal from here (KG6):
http://forum.xda-developers.com/attachment.php?attachmentid=673338&d=1312203859
Make sure Kies is shut down and is not running in system tray.
Unzip the rooted kernal. Unzip Odin and launch it.
Once odin has launched click the PDA button then find the rooted kernal you just unzipped (It should be a .tar file) select it and click open.
Now turn your phone off and wait till it has completely shut down.
Once it has shutdown you need to put it into download mode. You do this by holding the volume down key, the home key and power key all at the same time. Hold them till you get a warning screen then let go. When you get the warning screen press the volume up key. You should now be in download mode (It says odin mode at the top in red).
Now connect your phone to your pc with the usb cable. Some drivers may start to install, wait till the have installed correctly.
A Yellow box should have appeared on the left hand side under ID:COM in odin. Once the yellow box has appeared click start in odin.
The rooted kernal will begin to flash to the phone. This should take no more than a few minutes. Once it has completed a green box saying PASS should appear above the yellow box in odin and the phone will reboot. You should now be rooted and can uplug your phone.
To check you are rooted, you will find you have 2 new apps: CWM and superuser. Go into CWM and menu should pop up asking for root rights. Click allow and you can then come out of the app.
Step 2 Getting rid of the Yellow Triangle (Optional).
Now your phone is rooted you will notice you get a yellow triangle when booting up. This is normal and harmless. If you want to get rid of the triangle here is what to do, if you are not bothered about it then skip to step 3.
You need to download a stock Kernal from here (KG6):
Multiupload.com - upload your files to multiple file hosting sites!
Now on your pc, extract the rooted kernal from step one (the .tar file) Once you have extracted that there should be a file called zImage. Place the zImage file on your phones internal sd card and verify that it is there.
Switch your phone off and put it into download mode. If you shut odin down, launch it again. If you left it open just click reset. Click the PDA button and choose the stock kernal you just downloaded (.tar file). Connect your phone to your pc and wait for the yellow box in odin to appear again. Once connected click start. The phone will flash the stock kernal. Once the green box appears and the phone reboots you can now disconnect it from the pc. When your phone has booted, go to the CWM app, go to flash kernal and select the zImage file then click ok. Once the kernal has flashed the phone will reboot and the triangle will be gone.
Step 3 making a backup.
Before you flash villain rom it is wise to make a backup of everything in case you need to do a wipe or if anything goes wrong. To backup your apps I use an app called titanium backup, its on the market for free but you can use whatever app you like.
If you decide to use titanium then go into the app click allow when asked for root access. Click the menu button and then batch. Click RUN Backup all user apps. This will take a few minutes depending on how many apps you have installed. Once completed you should receive a notification in the notification bar. Now you are ready to backup your system as it is (should anything go wrong or if you want to revert to the standard rom at any time). Go into the CWM app and click create new backup. Enter a name and click ok. Your phone should reboot into clockworkmod recovery and start backing up (lots of writing on the screen and a progress bar at the bottom). This may take a few minutes. Once it has done the phone will reboot. Check your backup by going into your file manager, find the clockworkmod folder, then backup folder and in there should be the folder you named when creating the backup. Inside that folder should be 5 files: cache.img, data.img, system.img, boot.img and nandroid.md5. If the folder or the files are not there, do the backup again (mine did not work the first time).
Now that the system and your apps are backed up you can backup anything else you wish to keep eg sms, email, contacts etc.
Step 4 flashing Villain rom.
You are now ready to flash villain rom. I have shown 2 methods to do this. Method 1 is the no wipe option if you really don't want the hassle of wiping and restoring. Method 2 is the wipe option and this is the one I recommend. If you have problems with method 1 then try method 2. Download Villain rom from here:
http://www.villainrom.co.uk/SGS2/VR2.4.php
Method 1 (No wipe)
Once you have downloaded Villain rom place the zip file on your phones internal sd card. Go into the CWM app and press the option "Flash Update zip" Then choose the villain zip file. The Phone will reboot and begin to flash. Once it has flashed the zip it will reboot (First boot may take some time so be patient). If after around 5 mins if your phone has still not booted eg it is stuck in bootloop then hold power off until the phone goes off and see Method 2. If the phone boots up fine but you get a lot of Force closes see Method 2. If the phone boots up fine and you have no problems or force closes then you are all done. Now see step 6 (Optional).
Method 2
Once you have downloaded Villain rom place the zip file on your phones internal sd card. Shut down your phone. Reboot it into clockworkmod recovery (Hold Volume UP key, Home key and power button until the phone enters recovery). In the recovery menu go down to -wipe data/factory reset by using the volume down key. Press the home key to select it. Go down to -Yes -- delete all user data and press home key. This will begin wiping your phone. Once the wipe is complete press back until you are in the main recovery menu again. Go down to - wipe cache partition and select it. Go to -Yes - wipe cache. When this is complete go back to the main menu and go to install zip from sdcard and select it. Go to -choose zip from sdcard, select it. Then find the villain rom zip file you placed on your phone and select it. Go to -yes - install villain.... This will begin installing the zip (may take a few minutes). Once it has done go back to the main menu and select -reboot system now. Your phone will reboot and the rom should be installed (may take a while to reboot the first time). If your phone does not boot for some reason eg its stuck in a loop, hold the power button until the phone goes off then repeat the process. Now see step 5.
Step 5 Finished (Only needed if you wiped).
You should now be running villain rom. Once you have booted your phone the first time and set up your gmail account you will be able to download titanium backup to restore your apps. Once in titanium click batch then click RUN Restore all apps with data. You will have to tick allow unknown sources in application settings before your apps will install. Then restore any other back ups you made egs sms, contacts etc.
Step 6 Flashing Modem (Optional)
This is optional but recommended. Download the KG6 Modem from here:
2shared - download MODEM_I9100XXKG6.rar
Extract the modem. Launch Odin, click PHONE and select the modem file you just extracted. Turn your phone off, put it into download mode and connect it to your pc. Wait for the phone to connect. Once connected click start. Odin will begin to flash the modem. Once it has finished the phone will reboot and you can disconnect. All done
