How to Root AT&T Galaxy S2 on Mac or Linux! [SGH-i777]

Download this video for viewing in HD on your smartphone or computer.
Click Here to Download High-Quality HD video to your Smartphone or Computer.

This video was brought to you by AndroidRoot.org. Click Here to See at AndroidRoot.org

For those of you who want to root your AT&T Galaxy S2 using a Mac or Linux, here’s how to do it.

For Mac OSX, you can use Heimdall Frontend to install kernels, see How to Install Kernels using Heimdall video.

Step 1. Put your phone in download by connecting a USB cable from your phone to your computer then holding down Volume down, Volume Up, and Power button together until you see warning, hit Volume up button.

Step 2. Download rooting files here and unzip.

Download GalaxyS2ATTRootZedomaxMacLinux.zip

Then run the heimdall-1.3.1-mac.dmg for Mac, and heimdall_1.3.1_i386.deb for 32-bit Linux and heimdall_1.3.1_amd64.deb for 64-bit Linux systems.  This will install command-line heimdall you will need to flash the rooting kernel.

Step 3. Verify you have heimdall working by opening up a terminal and type, “heimdall”.  If you get a bunch of usage messages, you have correctly installed heimdall.

Step 4. Type the following to flash the kernel: (Make sure you are in the directory you unzipped the files to.)

heimdall flash –kernel zImage

or for Ubuntu:

sudo heimdall flash –kernel zImage

You should get “successful” message and your AT&T Galaxy S2 should reboot.

Step 5. After your phone reboots, check that you have Superuser app.  If you do, congrats!  You have just rooted your phone!

Step 6. You can also verify you have full root by opening up an app such as Titanium Backup (available free on the Market) and Superuser request should pop up.

You may also like...

62 Responses

  1. nick says:

    as a mac/linux guy i’d love to see this for the t-mob version. any plans on posting something like that?

    love the site.

  2. yash says:

    Love the tutorial, but when I type in “heimdall flash –kernel zImage”, it says, “ERROR: Claiming interface failed!”
    do you know what is wrong?
    thank you!

  3. warren2781 says:

    it should actually be “heimdall flash –kernel zimage” double “-“

  4. Brian says:

    I am also a tmobile s2 / mac user. Is it just a matter of you creating another zImage for the tmobile phone and we follow the same process?

    Thanks,
    Brian

  5. rob says:

    hi i have been watching ll of your videos and aim really interested in orating my galaxy s2 the only thing is i am from the uk and on the orange network is there anyway i can root my phone

    Thanks,

    rob

    • rob says:

      hi i have been watching your videos and i am really interested in rooting my phone (galaxy s 2) the thing is i am from the uk and on the orange phone network is there anyway i can root my phone

      Thanks,

      Rob

      p.s

      sorry for the first post didn’t check it for spelling errors

  6. Jay says:

    Will this work if you already updated to 2.3.5? I followed your guide and updated but I also want to root/.

  7. jillene says:

    can the root for mac work for other phones other than on the AT&T by just downloading a different kernel?

  8. Kelvin says:

    Flashed your zedomax stock kernal on Unnamed Rom and im stuck on boot logo… Please Help!!!

  9. Daniel Tseng says:

    I need help with rooting my galaxy s2 using MAC. i did all the step but got stuck when it comes to actual doing it. after i download and unzip the file. my pc restart and then i go through terminal and then im lost from there onwards. please help me out

  10. Alex says:

    Hi

    I tried to install the heimdall on mac, and I got this error”
    The system extension “/System/Library/Extensions/heimdall.kext” was installed improperly and cannot be used. Please try reinstalling it, or contact the product’s vendor for an update”

    and when I tried to flash the galaxy, I got this:
    Unknown action “FLASH”

  11. Mark says:

    Everything worked perfectly until the final step:
    Initialising connection…
    Detecting device…
    Claiming interface…
    ERROR: Claiming interface failed!

    Anyone find a workaround? Is this a OS X 10.6.8 problem? If I update to Lion will this get fixed?
    My USB debugging is on. I have tried on several different USB plugs on the back of my MacMini.
    Thanks!

  12. Melvin Garcia says:

    I’m getting this output on Ubuntu:

    melvin@melvin-Aspire-5742Z:~/Downloads/GalaxyS2ATTRootZedomaxMacLinux$ ls -l
    total 7332
    -rw-rw-r– 1 melvin melvin 43992 2011-10-24 10:55 heimdall_1.3.1_amd64.deb
    -rw-rw-r– 1 melvin melvin 42268 2011-10-24 10:55 heimdall_1.3.1_i386.deb
    -rw-rw-r– 1 melvin melvin 233063 2011-10-24 10:55 heimdall-1.3.1-mac.dmg
    -rw-rw-r– 1 melvin melvin 7184000 2011-10-18 15:56 zImage

    What I’m I doing wrong? Am I supposed to be root?

  13. Nathan bp says:

    when i try to install the heimdall for mac, it says this
    “The system extension “/System/Library/Extensions/heimdall.kext” was installed improperly and cannot be used. Please try reinstalling it, or contact the product’s vendor for an update”

    I tried to just go with it. Restarted the computer and then i got the error of:
    Initialising connection…
    Detecting device…
    Claiming interface…
    ERROR: Claiming interface failed!

    It was in download mode and everything I did was correct. Is there an updated version I should be using? Thanks please respond this is the only site I can find for rooting my galaxy s2 sgh-i777

  14. Alex says:

    Hi

    I have a question, I have a Galaxy S2 i777 At&t, and I’m using a custom rom, “ICScrewD” and I wanna as if its possible to reset the the product name from GT-i9100 to SGH-i777 in the ODIN MODE? I’ve used the jig but still says i9100..

    Please?

  15. matt says:

    Here is what I get… mac osX
    galaxy 2 s with 2.3.4 gingerbread on ATT

    any help?

    Checking if protocol is initialised…
    Protocol is not initialised.
    Initialising protocol…
    Handshaking with Loke…
    ERROR: Failed to receive response!

  16. DL says:

    I ran this successfully. However, now my wifi is broken. Help, por favor.

  17. schneidz says:

    sprint / fedora ?

  18. duane says:

    my heimdall is showing the one you have shown. is there smth wrong? im using mac btw.

  19. duane says:

    does this work on international version?

  20. duane says:

    will your apps still be there even after root? if not do you backup before or after root?

  21. james says:

    should i install the at&t software update on my rooted phone?

  22. Aaron says:

    I have the same problem.

  23. Thomas Amsler says:

    Like other users, I am not able to use heimdall.

    OS: Mac OS X 10.6.8
    Phone: Samsung Galaxy S II SGH-I777 (ATT)

    Errors:
    At the end of installing heimdall, I am getting the following error:

    System extension cannot be used

    The system extension “/Sytem/Library/Extensions/
    heimdall.kext” was installed improperly and cannot
    be used. Please try reinstalling it, or contact the
    product’s vendor for an update.

    … reinstalling the app didn’t fix this issue.

    Ignoring the above message and then try to use heimdall results in the following error:

    # heimdall flash –kernel zImage
    Heimdall v1.3.1, Copyright © 2010-2011, Benjamin Dobell, Glass Echidna
    http://www.glassechidna.com.au

    This software is provided free of charge. Copying and redistribution is
    encouraged.

    If you appreciate this software and you would like to support future
    development please consider donating:
    http:/www.glassechidna.com.au/donate

    Initialising connection…
    Detecting device…
    Claiming interface…
    ERROR: Claiming interface failed!

    Does heimdall only work on Mac OS X Lion?

  24. Jason says:

    I would also like to use Heimdall to root my SGH-T989 (T-Mobile Galaxy S II), and I figure all that is needed is the correct zImage. If this is something that can be easily created, perhaps a howto on that subject would be warranted. (I tried examining the zImage included in the zip archive above but couldn’t even unpack it)

    Thanks again for the website and howtos.

  25. Luis says:

    Does this root require the phone to be on 2.3.4? My At&t phone is on 2.3.5 Gingerbread. When I follow these directions, the end result is:
    Heimdall v1.3.1, Copyright (c) 2010-2011, Benjamin Dobell, Glass Echidna
    http://www.glassechidna.com.au

    This software is provided free of charge. Copying and redistribution is
    encouraged.

    If you appreciate this software and you would like to support future
    development please consider donating:
    http://www.glassechidna.com.au/donate/

    Initialising connection…
    Detecting device…
    Claiming interface…
    ERROR: Claiming interface failed!
    iLuis:Desktop Luis$

    How can I get around this problem? I have seen others here have similar problems, but they have gone unanswered. Any help would be appreciated. BTW, my phone is in download mode.

  26. Andy Parker says:

    Howdy Max,
    I’m hoping you can help me here. You helped me root an AT&T Galaxy S2 on my Mac. The phone went down due to a problem and AT&T was good enough to send me a SkyRocket replacement. I’ve looked around the net a ton and I haven’t found anything I trust regarding rooting this phone. Can you help? Specifically, I’m looking to root my AT&T Galaxy S2 SkyRocket (i727) on my Mac with version 10.6.8. I would consider myself to be a user of average ability. I don’t write any code, but I know how to use Command. Woooo.

    Thanks a ton, Andy

  27. Jake Elwood says:

    Hi i went through process…and it rooted my phone…and i have superuser etc…but now my wifi wont work…(im on mac) im trying to root it again and i can get it to work it keeps saying ERROR: Claiming interface failed. And the sudo line doesnt work it asks for a password to which i dont know…..i just want to go back stock…i am through getting into the rooted community. please help me get back to stock.

  28. Jake Elwood says:

    Hi i went through process…and it rooted my phone…and i have superuser etc…but now my wifi wont work…(im on mac) im trying to root it again and i can get it to work it keeps saying ERROR: Claiming interface failed. And the sudo line doesnt work it asks for a password to which i dont know…..i just want to go back stock…i am through getting into the rooted community. please help me get back to stock.

  29. Adam says:

    Admin,

    I tried to follow your video and instructions for rooting my S2 with a MAC and got the same errors almost everyone talked about in the comments above but it appears no one is answering any of the problems. Can you please tell me what I’m doing wrong? I followed your instructions exactly, including using two “–” instead of one as your tutorial says to use but your video uses two. Both ways do not work for me anyway. Here’s what I get;

    Initialising connection…
    Detecting device…
    Claiming interface…
    ERROR: Claiming interface failed!

    Please help.

  30. mwill416 says:

    will this work for SGH-i727R? I can’t get the phone into download mode as you describe here. any suggestions? thanks!!

  31. melissa says:

    I need help, I rooted my phone but mine is an I9100 international and now the home and return button do not function correctly, I believe is because AT&T model has different buttons, so I need to know how to root for my version but in mac since I don’t have access to a pc right now, it’s urgent 🙁

  32. Mike says:

    Description: Displays this dialogue.
    MacBook-Pro-:~ mike$ sudo heimdall flash –kernel zImage
    Password: ????

  33. Mike says:

    Initialising connection…
    Detecting device…
    Claiming interface…
    ERROR: Claiming interface failed!

  34. Andrey says:

    I keep getting this no matter what I do. Please help.

    Checking if protocol is initialised…
    Protocol is not initialised.
    Initialising protocol…
    Handshaking with Loke…
    ERROR: Failed to receive response!

  35. BT says:

    same here:
    Checking if protocol is initialised…
    Protocol is not initialised.
    Initialising protocol…
    Handshaking with Loke…
    ERROR: Failed to receive response!

    I tried both sudo and without sudo but same result.
    Now, what do I do? I unplugged it but can’t get back to the original condition!!! Please help, thanks

  36. Sam says:

    Post on Jan16th by QUADS

  37. Aaron says:

    This is pointless, You just showed how to root on Linux and not mac, meanwhile we’re all stuck trying to figure it out.

    DO ANOTHER VIDEO WHERE YOU SPECIFICALLY ROOTING FOR MAC!

    Thanks!

  38. Chris says:

    Ok I see a lot of similar issues from others that I had with OS/X. Try this as I kept getting this msg too:
    [i]”Checking if protocol is initialised…
    Protocol is not initialised.
    Initialising protocol…
    Handshaking with Loke…
    ERROR: Failed to receive response!”[/i]

    Apparently Samsung phones are quirky, try the same usb cable in a different port on the Mac, or another cable as well. I ended up using my car dock usb with another port and it worked on the 1st try. Also with the prompt in terminal make sure it’s correct as on other forums I saw other posting what he did when they had a different location for the downloads, i.e. I made an android folder in dowloads and kept forgetting the Android part after downloads.

  39. Sheamus says:

    Hi Guys, Just rooted my Samsung Galaxy S2 as per the instructions above and now the middle and right buttons no longer function. Superuser appears to work OK, and the left button works sometimes, but not all the time.

    Any suggestions on either how to fix or how to revert to a more stable image?

  40. Horatiu says:

    For all those with “Claiming interface failed” error:
    http://scottwallacesh.blogspot.com/2012/03/getting-heimdall-to-work-on-your-mac.html

    It seems indeed Samsung Kies is the problem. unload the kexts as in the link above (thanks to Scott Wallace) and it should work.

  41. Alexsubcero says:

    Mine is stuck at boot

  42. Supratim says:

    I want to root my GT-I9100, Android 4.1.2 on a mac. Any help on this would be much appreciated?

  43. Kenny Chase says:

    Hey I Did It But Nothing Happened. Just “NOTE: Galaxy S phones don’t appear to properly support this functionality.” Help

Leave a Reply

Your email address will not be published. Required fields are marked *