Download Odin 3.07
here
Download the latest 4.1.2 Official Jelly Bean Samsung Firmware from
here
Extract both of them.
- Go into download mode on your phone by holding the Volume Down, Center and Power buttons together. If the phone turns on, let go of the power button while still holding the others.
- Connect it to your computer. (Make sure Samsung Kies isn't installed on that PC as it conflicts with Odin)
- If your PC doesn't recognize the device, download and install the Samsung drivers from
here
- Now, on Odin the ID:COM section should be yellow and the “added” message should be there.
- Up next, click on “PDA” and select the update file (the .tar one). (DO NOT TOUCH/TICK/OR UNTICK ANYTHING AS THERE IS A RISK WHERE IT CAN PERMANENTLY CORRUPT YOUR DEVICE AND MAKE IT USELESS)
- Click on “start” and in the end you should see the “pass” message displayed (Do not remove it until you see "Pass")
- Unplug the USB cable as you are done
- Turn it off again by removing the battery
- Boot into recovery mode (press on Volume Up, Home and Power buttons).
- From there wipe the system
- You can make a wipe by selecting “wipe data factory reset” and “wipe cache partition”. (By using the Volume Up and Down buttons and using the center button to select)
- Then, choose “+++go back+++” and “reboot system now”.
- The first boot might take longer than usual; don’t panic there is nothing wrong with your S2
Cheers!