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.)

You may also like...

  • nick

    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.

  • yash

    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!

    • admin

      Is your phone say “Download Mode”?

      • jeff

        for some reason this is not working for me. i installed the dmg on my mac. i opened terminal and did everything you did an i got nothing.

        my device is in “download” mode but nothing.

        i need assistance.

        thanks

        • awilliams986

          Same here need help, I did get to the end where a password was asked for yet I didnt know what to fill in.

    • gtr

      I had to follow through with the laptop reboot, as instructed after installing heimdall-1.3.1-mac. Didn’t get claiming interface error after reboot.

    • David

      Did anyone solve this yet? I’m having same issues.

    • ehale

      Use a double dash before kernel. This might auto format to a single em dash in the comments.

      sudo heimdall flash --kernel zImage

  • warren2781

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

  • Brian

    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

  • rob

    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

      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

  • Jay

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

  • jillene

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

  • Kelvin

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

  • Daniel Tseng

    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

  • Alex

    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”

  • Mark

    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!

    • Marcus

      lion has the same problem

  • Melvin Garcia

    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?

  • Nathan bp

    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

  • Alex

    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?

  • matt

    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!

  • DL

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

  • schneidz

    sprint / fedora ?

  • duane

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

  • duane

    does this work on international version?

  • duane

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

  • james

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

  • Aaron

    I have the same problem.

  • Thomas Amsler

    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?

  • Jason

    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.

  • Luis

    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.

  • Andy Parker

    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

  • Jake Elwood

    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.

  • Jake Elwood

    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.

  • Adam

    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.

  • mwill416

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

  • melissa

    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 🙁

  • Mike

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

  • Mike

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

  • Andrey

    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!

  • BT

    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

  • Sam

    Post on Jan16th by QUADS

  • Aaron

    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!

  • Chris

    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.

  • Sheamus

    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?

    • admin

      Do you have an AT&T version or i9100?

  • Horatiu

    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.

  • Alexsubcero

    Mine is stuck at boot

  • Supratim

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

  • Kenny Chase

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