• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root How To: Root w/ Mac OSX

jxnrxy

Well-Known Member
Mar 25, 2010
127
38
Arizona
Many people ask how to root their phone on Mac OSX. I myself was once in that position. I researched and eventually figured it out. It's very simple and really not much different from Windows installation using http://androidforums.com/all-things-root-eris/53963-guide-stock-1-5-latest-root-2-1-a.html

now everything from this point on is assuming that you have the android SDK setup and working on your Mac. Also make sure you've rooted your phone using the PB00IMG.zip (md5: 63eacc5ede3b179f95dc22d8ef585f94) from the link above. Once your phone is on go ahead and make sure that you have enabled USB Debugging and your phone is plugged in via USB and set to "Charge Only".

I'll explain how to install Amon's recovery image using Terminal(command prompt for mac users)

1.Download the recovery.zip file from the link above and unzip/extract the files. Now take those files and place them in your /tools directory of your Android SDK.

2. Next open Terminal (applications>utilities>terminal). First go ahead and change the directory to your android sdk/tools folder using the following command:

cd /Users/(enter your folders and path) /tools

and easy way to get the path:

type cd and then drag whatever file/folder directly onto your terminal window. :)

so type cd in terminal, then go to your /tools folder of your Android SDK and click and drag it into your terminal window!

You can also open the android sdk tools folder, dbl click pretty much any of the executable files. It will open a terminal window and at the top you'll see the path you want (/Users/.../tools) copy it/remember it. Be sure to leave the folder after /tools off the end. Example if you dbl click the adb executable the path would be /Users/(your path)/tools/adb ; exit;. Be sure to not copy /adb ; exit;


so once you have your path go ahead and use cd to set the directory and press enter.

Next enter the following commands in Terminal and press Enter after each line:

./adb shell mount -o rw,remount /dev/block/mtdblock3 /system
./adb push recovery.img /sdcard
./adb push flash_image /system/bin
./adb shell chmod 755 /system/bin/flash_image
./adb shell flash_image recovery /sdcard/recovery.img

You are done! with the hard part. Now power off your phone and then power back on by holding the Vol Up + Power button at the same time. If you did everything correctly you should see

AmonRecovery.png


Now you can go ahead and just reboot your phone so you can install the new rooted ROM

3. Go ahead and download the eris21official-root.zip from the original guide(link is still above:D).

Place the file (still zipped) on the root of your sdcard. DO NOT extract!!! Leave zipped.

Now go ahead and turn phone off and reboot into recovery using the method just explained above.

Use the trackball and scroll down to select Wipe, then complete the following:
data/factory reset
dalvik-cache wipe

You can now use the Vol down button to get back to the main menu pictured above. From there select Flash Zip from SDcard. You should see the eris21official-root.zip there. Select it and press trackball and let it do its thing. Once completed go ahead and reboot normally and you're done!

I recommend if you're gonna change roms doing a nandroid backup first of this. That way if anything goes wrong later you'll have this basic ROM to fall back on. Like a new beginning.

I do not in anyway take credit for any of this. All information was gathered using google and this forum, not to mention http://androidforums.com/all-things-root-eris/53963-guide-stock-1-5-latest-root-2-1-a.html
 
I've been at this for a while. I am very good at following directions, and I'm really not sure what is going wrong here. I'm stuck all the way back on step two where I'm supposed to:

"so type cd in terminal, then go to your /tools folder of your Android SDK and click and drag it into your terminal window!"

I've tried it every way I can think of, and all I get on the terminal is "No such file of directory" every time I try. I can't figure out what I'm doing wrong. I dont have any experience with the terminal window, so maybe it is catching up with me.

Is there a setting or something I have wrong? Somebody please help! Much appreciated.
 
Upvote 0
Many people ask how to root their phone on Mac OSX. I myself was once in that position. I researched and eventually figured it out.

I'll point out that there's a bit of Cargo Cult in this post - and in the Windows posts from which it derives. Not that it won't work, it looks like it will. But there's a vastly easier way, in which steps 1 & 2 can be nearly eliminated.

Specifically, if you've installed the root-leak ROM (PB00IMG.ZIP, md5 63eacc5ede3b179f95dc22d8ef585f94) onto your phone, you didn't need the SDK to do that (just get it on to the SD card) - and you don't need SDK (or adb) to flash the recovery.img file to the recovery partition, either.

Once the Root-PB00IMG.ZIP file has been installed, the S-OFF bootloader on the phone can be put into FASTBOOT-USB mode, and you just burn the recovery.img file to the recovery partition with a single command:

./fastboot flash recovery recovery.img

That eliminates the need to screw around with Java, install the Android SDK, type multiple adb commands, et cetera - just go and get the Mac version of fastboot from HTC (about midway down the page - and note that there is nothing else on this page that applies to the Eris, just grab the fastboot for Mac).

The same thing is true of the Windows install, too; folks went down the road they did with the SDK and adb because the GUI-driven way of installing the USB driver for the Eris involves using the SDK. But in the Mac OS/X case, no driver install, so... no need for an SDK install there, either.

Explicitly, in steps:

(0) Root the phone as suggested in your step 0 above (root PB00IMG.ZIP method).
(1) Download the Mac version of the fastboot tool and install to the Mac
(2) Remove the SD card, or get the PB00IMG.ZIP file off the root so it won't interfere with the Bootloader (HBOOT) starting up
(3) Restart the phone in FASTBOOT-USB mode by:

- Hold down Vol-down and End/Power simultaneously
- Press Send key to Enter Fastboot Mode

(4) You can plug and replug the USB cable at this point to see if the phone is aware of the computer (you will see only FASTBOOT without the cable, and "FASTBOOT USB" if the phone senses the computer

(5) In Terminal (on the Mac), type the command "./fastboot devices". If you are not connected, you won't see any messages at all. If you are connected, you'll see a single line which gives your phone serial number (starts with "HT...") and the word "fastboot" in the second column. This output is what you want to see - it tells you you are connected.

(6) Now (in the Mac Terminal window) flash the recovery image to the recovery partition using fastboot:

./fastboot flash recovery recovery.img

(Obviously, the "recovery.img" file needs to be in the folder, or "current directory" that you are using in Terminal - either that or specify the complete file path if it is not in the Terminal's current directory)

This is exactly the same thing you are accomplishing with all that SDK/adb stuff, but without the machinations.



Now, continue the process with your step #3

Note that I am not against people using ADB; in fact, it is very useful to have around to communicate with either the booted OS or the Amon_RA recovery console. OTOH, using a lot of individual steps to reach a given goal not only increases the amount of time for accomplishing the task, but also increases the risk that a mistake will be made.

eu1
 
  • Like
Reactions: doogald
Upvote 0
i have tried this way and countless other ways to flash recovery image nothing has worked! this is the message I always get .

"bash:cd/Users/erickkrigsvold/android-sdk/tools: No such file or directory"

I have android sdk and eclipse with adt plugin in my home folder amons recovery image and flash_image in tools section in sdk and on the root of my sd card Please advise as to what it is that I may be doing wrong!
 
Upvote 0
i have tried this way and countless other ways to flash recovery image nothing has worked! this is the message I always get .

"bash:cd/Users/erickkrigsvold/android-sdk/tools: No such file or directory"

I have android sdk and eclipse with adt plugin in my home folder amons recovery image and flash_image in tools section in sdk and on the root of my sd card Please advise as to what it is that I may be doing wrong!


put a space between cd and /users

cd /users/...../tools then press enter
 
Upvote 0
I am getting completely confused. I installed the root image pb00 etc, i can't figure out how to use terminal to instal the recovery image. i tried both the fastboot method and adb, neither is working. how do i use terminal to specify a certain directory. can someone whose rooted their eris please tell me, starting with a blank terminal window and my phone plugged in what specific commands to type. Ive been trying all day and im frustrated, at this point I would give up but my phone feels dog slow on stock 2.1. Thanks
 
Upvote 0
I am getting completely confused. I installed the root image pb00 etc, i can't figure out how to use terminal to instal the recovery image. i tried both the fastboot method and adb, neither is working. how do i use terminal to specify a certain directory. can someone whose rooted their eris please tell me, starting with a blank terminal window and my phone plugged in what specific commands to type. Ive been trying all day and im frustrated, at this point I would give up but my phone feels dog slow on stock 2.1. Thanks

Where did you download the fastboot-mac file to on your Mac? Assuming that you downloaded to your Downloads folder in your home directory, start Terminal, and type the following command:

Code:
[b]cd ~/Downloads[/b]

(That is letter c, letter d, space, tilde, slash, the word "Downloads", return key.)

This will change the current directory for the Terminal to your downloads folder. To see if the fastboot-mac file is actually in that directory, you can type the following:

Code:
[b]ls fastboot-mac.*[/b]

(That is letter L, letter S, space, "fastboot-mac", period, asterisk, return.)


It should list

Code:
fastboot-mac
(and maybe) fastboot-mac.zip

If you see just the fastboot-mac.zip file, you need to open that file from the Finder to extract the actual fastboot-mac application that you will use in the steps to install the recovery image.

If you downloaded the fastboot-mac.zip file to another location, just let me know where, and I will tell you what command to type into the terminal. Some people download to their Desktop; if that was the case, your command would be:

Code:
[b]cd ~/Desktop[/b]
 
Upvote 0
its in my downlaods folder, but im only seeing fastboot-mac.zip when i do ls fastboot.mac.*

Oops, I forgot that it doesn't work that way. Instead,

Code:
[b]ls fastboot-mac[/b]

and it should say something like:

Code:
[b][i]computername[/i]:Downloads [i]username[/i]$ ls fastboot-mac
fastboot-mac[/b]

You also want to make sure that you have downloaded Amon's Recovery Image and have that in your downloads folder as well. You can download the lastest recovery image from:

HTC Droid Eris ROM Site

(Scroll down and download the file "recovery-RA-eris-v1.6.2.img").

Now, you can follow the instructions (I've slightly altered them.)

(3) Restart the phone in FASTBOOT-USB mode by:

- Hold down Vol-down and End/Power simultaneously
- Press Send key to Enter Fastboot Mode

(4) You can plug and replug the USB cable at this point to see if the phone is aware of the computer (you will see only FASTBOOT without the cable, and "FASTBOOT USB" if the phone senses the computer

(5) In Terminal (on the Mac), type the commands:

Code:
[b]cd ~/Downloads
./fastboot-mac devices[/b]

(Note that is period, slash, "fastboot-mac", space, "devices", return.)

If you are not connected, you won't see any messages at all. If you are connected, you'll see a single line which gives your phone serial number (starts with "HT...") and the word "fastboot" in the second column. This output is what you want to see - it tells you you are connected.

(6) Now (in the Mac Terminal window) flash the recovery image to the recovery partition using fastboot:

Code:
[b]./fastboot-mac flash recovery recovery-RA-eris-v1.6.2.img[/b]

It should come back with something like:

Code:
[b]sending 'recovery' (3834 KB)... OKAY
writing 'recovery'... OKAY[/b]

(7) Success! You now have a recovery partition installed on your phone. You can press Volume Down on the phone to go back to Hboot mode. The phone should say, in green, "<VOL UP> Recovery" in the middle of the screen. If so, press Volume Up, you get the skateboarding androids, then a green text on black screen "Android system recovery". (In the future, you can access it by running "adb shell reboot recovery" or by powering off your phone, holding "Volume Up + Power On")
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones