Tuesday, 11 October 2011

[At Your Own Risk] How to Root your Samsung Galaxy S II

We're starting a new run of serialised content today at AndroidNZ, you'll be able to recognise it from here on out by its 'At Your Own Risk' tag.

It's going to focus on how to Root, hack, and mod your Android handset, and as the very name itself implies there is an element of risk involved in all of this. If the disclaimer-in-a-title isn't clear enough: if you try these mods you might turn your shiny cellphone into a paperweight. If that or any other problem does eventuate, it's all on you. We take no responsibility whatsoever for any problems you might experience.

If that isn't bad enough, we're not even going to give you troubleshooting support. OK, that's a little harsh, we will be able to give very limited troubleshooting advice. It's not that we don't care, it's just that a blog isn't really set up to allow the level of 1:1 interaction required to meaningfully
troubleshoot anything more than basic problems.

...now that you've had time to really digest just how alone you will be if it does all go pear-shaped, we can pledge that we will never run a piece on anything that we haven't tried first. We can also assure you that a Rooted Android device has many advantages over it's stock brethren - so many advantages that even with the dire warnings above we think you'll probably still want to Root your Android device at some point.

OK. If you're still onboard, and haven't turned into a gibbering wreck at the thought of irreparably damaging your beautiful phone, lets get to today's topic: How to Root your Galaxy S II.

First, here is a list of things you will need:

  • A fully charged Galaxy S II
  • A micro USB connection cable
  • A Windows PC (I have no experience with doing this on a mac, so for now the guide will only cover Windows)
  • The PC will need to have the USB drivers for the Galaxy S II installed:
    • If you simply connect the Galaxy S II to the PC with the micro USB cable it will install them 
    • To be very sure your device will be recognised by Odin connect twice - once with USB debugging enabled, and once without - different drivers are installed depending on the status of debugging (USB debugging is in Settings --> Applications --> Developement)
    • If you're still having no luck try also installing the latest version of Samsung's Kies
  • A copy of a program called Odin  - you can download it here
  • The right version of Chainfire's Root kernel
    • To work out which version you need go into Settings --> About Phone in your Galaxy S II, and scroll down to where it says "Kernel version". You will see a string something like this: 2.6.35.7-I9100XXKI3-CL571576. The yellow bit after the XX is what you're looking for. 
    • Once you've found that bit head to Chainfire's thread at XDA-developers here, and download the correct file. The easiest way to find it is hit Control+F and then enter the text from your phone that corresponds to the yellow text in our example above.

    Alright, now we've got all those things assembled, it's time to void your warranty! Here are the steps you need to follow:

    1. Unzip the CF-Root zip that you downloaded using the instructions above
    2. Start Odin, it should look like this:

        3.  Click the button "PDA", shown in the picture below. Navigate to the file you unzipped
             from the CF-Root zip and select it (it's file extension will be .tar)


        4.  Make sure "Repartition" is NOT checked



        5.  Power down your phone, and then put your phone into download mode. Do this by
             simultaneously pressing and holding the Volume Down and Home buttons, and then
             while holding these buttons down press and hold the power button down until this
             screen appears:


        6.   Follow the instructions on that screen and press the Volume Up key to proceed into 
              download mode, you will be greeted with a screen that looks like this:


        7.   Connect your phone to your computer with the USB cable, after a few moments 
              Odin should recognise the device and look like this:


        8.   In Odin press the Start button
        9.   Odin will flash the kernel to your device, and at the end you should see this in Odin:


        10.   Your device will reboot, disconnect the device - congratulations! Your Galaxy S II is now 
                Rooted!
      Simples right? 

      ...or maybe not? If you have any feedback about how you think we can improve these instructions, please let us know in the comments below.

      If on the other hand you found these instructions were just what you needed to Root your Galaxy S II, feel free to let us know in the comments below also (along with showering the article with all the customary social media ways of saying thank you while you're at it).

      If you feel compelled to show your gratitude with a financial reward, please DO NOT hit our AndroidNZ donate button, instead go here and make a donation to Chainfire for his excellent work.

      I'm going to be following this piece up with several articles showing you some of the ways you can make your Rooted Galaxy S II better than your friends stock one, so if you aren't convinced that Rooting is worth it yet stayed tuned!

      46 comments:

      1. Oh, and a big thankyou to Jayce Ooi @ http://goo.gl/Ol5fn for snapping the pics of download mode so I didn't have to!

        ReplyDelete
      2. Oh that's awesome news Henrick! So pleased for you. I answered your query at Nokiausers, but more posts to come on what to do with your new Root privileges.

        ReplyDelete
      3. Hey Henrick, saw your issue at Nokiausers and replied there. Over the next couple of days there are guides coming about everything you need to know in relation to flashing/modding your SGSII.

        ReplyDelete
      4. Just tried this with a stock, week old SGS2. I got stuck on step 7; Odin never got around to identifying the device. Windows could not identify the phone when I connected it and it stopped there.

        ReplyDelete
      5. Ok, worked it out. I'd suggest adding before the first step that if you haven't before, you should connect the phone, while in normal operation, to the PC so it will install the necessary drivers. Telling Windows to download drivers it doesn't have might also help.

        ReplyDelete
      6. Hi Kian!

        Was about to reply to you with instructions when I saw your second comment coming through - will update the guide to include that detail. Glad it all worked out once you got that sorted! Welcome to Root :) There are a couple more [At Your Own Risk] segments that will make good reading if you're not already familiar with what to do with Rooted handsets.

        ReplyDelete
      7. Done! Thanks again for reminding us to put that in there Kian.

        ReplyDelete
      8. Firstly, thank you. I admire the work and effort you guys put into this. my question is if i flash the litening rom do i still need to add Chainfire's Root kernel or is that installed with the rom.

        ReplyDelete
      9. Hi Rabies (like the handle). How are you flashing Lightning ROM? If you're flashing it via recovery (usual way), then you'll need to flash the CF Root kernel first so you have the modified recovery to facilitate installing Lightning ROM. If you can flash Lightning ROM via Odin there won't be any need to flash CF kernel - Lightning ROM is pre-Rooted and will have a custom recovery of some kind installed along with it.

        ReplyDelete
      10. interested in using this but my Kernel is version KDD, can't seem to find that file anywhere on the XDA thread

        ReplyDelete
      11. What is the easiest way to Flash back to Original Kernel in the event I need to send my SGS 2 off for repair?

        ReplyDelete
      12. Hi anon, I think rather than answer that here we'll do another full guide in the next couple of days on how to return a Galaxy S II back to stock for warranty purposes.

        ReplyDelete
      13. Sorry late comment here, just wondering about the choice of root kernel. My version is KI4. I see on the xda page there are 2 or 3 options. Does it matter which one I take? My android version is 2.3.4, can I take the 2.3.5 one? (XX_XEO_KI4: 2.3.5, CF-Root v4.4, SU 3.0.5, "insecure"). Thanks :)

        ReplyDelete
      14. @Anon: Not sure, probably they are all fine, but obviously it's best to take the 2.3.4 one since it matches what you have. Once you have CWM recovery you can easily flash to a 2.3.5 custom ROM anyways...

        ReplyDelete
      15. Very helpful. Worked Like a charm. Was wondering how to get rid of the yellow triangle on start up? Spotted a couple of ways on youtube but not quite sure if that will mess with what I've already done?

        ReplyDelete
      16. Great! Glad to hear it went smoothly.

        There are a few ways to remove the triangle, flashing a stock kernel will do it - should retain Root but lose custom recovery. Otherwise you need a USB Jig, purchasable for a couple of bucks on Ebay. Instructions for all that at XDA, although perhaps we should run a piece here too.

        ReplyDelete
      17. I'll have a look over at XDA. Your instructions are very clear and idiot proof so all for you writing a piece on it.

        ReplyDelete
      18. Thanks NZtechfreak you make it sound like the doddle it is :) Still 'feeling' my way around Android after owning a Symbian phone since colour screens came in ! I like it so far though.

        ReplyDelete
      19. S**t, doing that to a week-old phone is the scariest thing I've done for a little while. I assumed I'd have to start from scratch (load all the apps), but it appears everything came back just fine. Thank you for THE simplest and THE clearest instructions on the web. Go NZ! Punching above its weight ;) -- Aaron (Nelson)

        ReplyDelete
      20. @Anon: Awesome! Glad it went smoothly, I appreciate the feedback since it is actually quite difficult to write very clear guides for people to follow. Definitely the first few times you do stuff like Root and flash custom ROMs is a bit scary, soon enough you'll get over that!

        ReplyDelete
      21. I'm having sort of the same problem as another person her. ODIN won't recognize my phone. I plug it in, and nothing happens. I have downloaded the approriate drivers (or so I believe) and I have entered the special home+power+volume-mode. Any help?

        Other than that, great guide, thank you very much!

        ReplyDelete
      22. if i do this. Do i lose any data or apps curently installed ?

        ReplyDelete
      23. thank you my friend.... u made it simple...

        ReplyDelete
      24. hi guys , in the instructions it says "unzip" the cf-root zip however inside its a zimage file?
        and odin wont find it , it only finds the cf-root zip i downloaded. so does that mean there is no need to unzip the file downloaded from xda?

        ReplyDelete
      25. never mind guys i figured it out....derp
        thanks

        ReplyDelete
      26. Where you mention above that you need t get your kernel version by going to Settings --> About Phone in your Galaxy S II, and scroll down to where it says "Kernel version". You will see a string something like this: 2.6.35.7-I9100XXKI3-CL571576. The yellow bit after the XX is what you're looking for.
        My phone appears to have a different format and instead shows 2.6.35.7 and then under that but still in Kernel Version section says root@DELL128#2
        Am guessing this means its been unlocked by the retailer (bought online) but where do i now go to work out which root kit I need?

        ReplyDelete
      27. Further to my last question, have downlaoded and installed CPU Spy
        reports as follows
        Linux Version 2.6.35.7
        (root@DELL128)(gcc version 4.4.1 (Sourcery G++Lite 2010q1-202)) #2 SMP PREEMPT
        Thu Dec 22 15:35:11 KST 2011

        ReplyDelete
        Replies
        1. Can you post a link to a screenshot of the About Phone screen in Settings?

          Delete
        2. See if this works, was all I could find quickly, sorry if unsuitable/blurry
          http://www.sendspace.com/filegroup/25beP2RVARweB6XE2kRqFTfzzdh%2FzLAt

          Delete
        3. Further info that may help
          Purchased phone through Expansys and when it arrived, had a French Manual and OS language was set to french
          Only mention of Gingerbread.XXKL5 was in a French Android Forum too...

          Delete
        4. Just a heads up, got it sorted and am now "rooted"
          phone is I9100G and so required different instructions

          Kernel Version now
          2.6.35.7
          root@ubuntu#3

          Delete
        5. Ah, great glad you sorted it, I was a bit perplexed by your kernel syntax and only noted the different model number today (but then saw your comment here anyway). Glad you're sorted!

          Delete
      28. Okay.. After some French translation, found instructions to type *#1234# to retrieve more info
        PDA I9100GXXKL5
        PHONE I9100GXXKL4
        CSC I9100GXEFKL3

        As I have a phone, would this mean choosing a kernel for KL4?

        ReplyDelete
      29. I have a telecom one. Kernel Version 2.6.35.7-i9100tdokh1-cl443486 Root@dell141 #2.

        I have googled like crazy trying to find which ROM I should choose. I'm going in circles anyone have any idea?

        ReplyDelete
      30. i get stuck on a white screen when reboot. help!

        ReplyDelete
      31. i just followed your steps and did a clean root on my SGSII.
        and also the nandroid & titanium backup.
        thanks a lot.

        ReplyDelete
      32. Hi iv jst rootd my galaxy s2 thankz 4 ur help nw im tryn to get my phnoe back 2 its stock kernal cld u help me please?

        ReplyDelete
        Replies
        1. This comment has been removed by the author.

          Delete
        2. Hi Zion,

          Why do you want to return to the stock kernel? The CFRoot kernel is pure stock and only adds Root, there is no advantage to going back to the stock kernel.

          Delete
        3. Cool thank u i dont knw wht im up2 lol jst cant hook ps3 or wii controlls up ?

          Delete
      33. I'm desperate to have a more functional GPS, so am walking through all of the steps above, but I am having trouble identifying the Kernel version. My Samsung Galaxy S II phone has a different nomenclature, listing the Kernel as 2.6.35.11. I bought it from T-Mobile in the U.S., and it is a model #SGH-T989, GINGERBREAD.UVLDE, if that is any help. Can you give me any tips on where I can find the necessary information?

        Also, you mention that we should probably "grab a stock ROM" before rooting the phone. How do I do this? (My apologies, but I am definitely phone-illiterate when it comes to this stuff.)

        Thanks!
        Katie

        ReplyDelete
      34. P.S. My phone is running Android verson 2.3.6, if that helps.

        ReplyDelete
      35. Can't root my S2
        I wonder how to root S2
        I opened Odin3 and choose PDA and select the insecure kernel that I downloaded [CF-Root-SGS2_XX_XEO_LPQ-PROPER-v5.4-CWM5]
        But it stuck somehow
        like this :

        Added!!
        Odin v.3 engine (ID:4)..
        File analysis..
        SetupConnection..
        Initialzation..
        Get PIT for mapping..
        Firmware update start..
        zImage

        what do i have to do right now?! guide me :(

        ReplyDelete