The Samsung Galaxy S2 may not be the most popular Android device on the market, but it did help Samsung establish the Galaxy brand as one of the best choices for Android consumers. Given the extremely powerful processor and sleek design of the Galaxy S2, the smartphone still holds up against many new phones that have been released in the past few months. Despite the tremendous success of the Galaxy S2, many owners of the device are waiting to upgrade to Android 4.2.1 Jelly Bean.

Thanks to the seemingly endless pool of developers in the Android community, the Galaxy S2 can be updated to Android 4.2.1 using a custom ROM. Although there are several versions of the Android operating system that can be flashed onto your device, this tutorial specifically talks about the AOKP nightly custom ROM for the Galaxy S2.

Please note: This tutorial should only be used as a reference. The process described in this tutorial requires flashing your device, which, in most cases, will void the warranty. There is a chance of bricking your device during this process. Please proceed at your own risk, and please do not perform this process if you're unfamiliar with flashing devices. The iDigital Times cannot be held responsible for anything that goes wrong during this process.

Here's how to install Android 4.2.1 Jelly Bean on the Samsung Galaxy S2 using the AOKP custom ROM:

Step One: Prepare your Galaxy S2 for the installation process. Ensure that your Galaxy S2 is the international version of the phone (I9100). To verify the device's model, go to Settings > About Phone. Back up any important data stored on the smartphone, and make sure you have a way to reinstall stock firmware, just in case you want to go back to the way things were. Download all the Galaxy S2 USB drivers. Enable USB Debugging mode by going to Settings > Developer Options (for Android 4.0 and up) or Settings > Applications > Development (for Android 2.3 and below). Make sure the battery is charged to 75 percent, although we recommend a full charge. Make sure that your phone is rooted with ClockworkMod Recovery installed on it. Download Android 4.2.1 AOKP Nightly ROM. Download Google Apps for the Galaxy S2.

Step Two: Connect and mount the Galaxy S2 mass storage to your computer using the USB-to-microUSB cable. Copy the Android 4.2.1 ROM and Google Apps zip files to the root folder of the phone's SD card. Turn off the phone and unplug the USB cable from the computer.

Step Three: Boot in Recovery Mode by pressing and holding Volume Up, Menu and Power simultaneously. In CWM Recovery, perform a full data wipe. Navigate to "Flash Zip from SD Card" and hit the Power button to select it. Hit the Power button again and select "Choose Zip from SD Card." Use the volume keys to navigate to the Android 4.2.1 ROM zip file that was copied over to the phone's SD card earlier in this tutorial. Select it by pressing the Power button. Confirm the ROM installation when prompted. Do not disrupt your phone while it installs the new operating system. Repeat Step Three to install the Google Apps.

Step Four: Once Google Apps are installed, select "Go Back" and select "Reboot System Now" in the Recovery menu. The phone will begin rebooting, and it will take about five minutes for the process to be completed. Leave you phone alone while it reboots.

Step Five: Enjoy!

For more information, visit Team Android.