Over its lifespan, the Galaxy S2 saw iterations ranging from Android 2.3 Gingerbread all the way to official Android 4.1 Jelly Bean, and unofficial ports of KitKat, Lollipop, and beyond. Depending on what you want to achieve, you may be looking for "Stock Firmware" (the official software from Samsung) or "Custom Firmware" (modified software developed by the community).