Mac Root for 2.1 guide?

twoaday

Member
Jun 29, 2010
11
0
0
Hi all,

I want to root my 2.1 hero (it doesn't have the .6 update, so I'm good there) on my Mac.

I took a look at the guide that's sticky-marked, but it states it's for Heroes running 1.5, and that the steps for 2.1 are different.

later on in the thread, it said there were instructions here: [GUIDE] How to Root Sprint 2.1 Release for CDMA Hero - xda-developers

However the steps state that it's for windows, and that Mac steps are coming soon.

I have downloaded the root exploit, the SDK, nandroid, and Cyanogenmod rc1.

I think I have the tools on hand, but am not finding steps for a 2.1 root on the Mac.

It's probably out there, but I'm likely missing it somewhere. Can anyone point me to where I need to be? (also, a little help with how to use nandroid would be nice as well - I haven't made any backups for my phone before.)

Thanks everyone!
 
I'm almost through - I have super user permissions, but when I try to execute "su" in my Terminal, I'm asked for a password. The password for my computer doesn't work, and I didn't set one up on my phone, as far as I remember (I don't need to do anything to unlock)

what happens here?
 
Sorry everyone - I figured it out after about 10 minutes of looking around. One of my earilier commands failed, and I had to re run a few commands, then it took.
 
How did you accomplish it? I have a Mac and a Sprint Hero running 2.1 I'd love to root. Can you tell me the steps?
 
How did you accomplish it? I have a Mac and a Sprint Hero running 2.1 I'd love to root. Can you tell me the steps?

[GUIDE] How to Root Sprint 2.1 Release for CDMA Hero - xda-developers

That is root for PC, but is pretty much the same for Mac except you will need to adjust the commands in Terminal.

You will need to download the SDK for Mac and root exploit files that are in the first post. Don't worry about the HTC Sync Drivers since they are not necessary with a Mac. If you have a Mac running 10.4, then you will need to grab an archived SDK package as the newer ones are 10.5+.

You can also review the first post here to setup the SDK/Tools Directory to yoru .bash_profile: Rooting CDMA Hero [Mac] - xda-developers (It's a root guide for 1.5, so don't follow the process, just review the setup since it's the same)

I can try and help out a little more in detail tonight when I'm home. For now, take a look at the two post and familiarize yourself with the process. :)
 
  • Like
Reactions: chefkeyser
That would be great. So really the big difference is adjusting the commands?
So I:

1) Follow the 1.5 setup instructions for Mac
2) Follow the 1.6 processes for P.C. with command adjustments

Is that the long and short of it?
 
Right now i am unable to download and install the .5 ruu on my phone. There are two files:
1) exe-doesn't work on Macs
2) rar-stuffit says isn't compressed
 
Ok the build number is 2.32.651.2, not .6. So the root instructions for .5 are valid I assume.
 
Ok the build number is 2.32.651.2, not .6. So the root instructions for .5 are valid I assume.

The RUU is a PC program that you run and revert the phone back to factory 2.1. You need it to get the phone to build number ".5"

By changing the commands I mean insead of "cd C:\android-sdk-windows\tools", you will need to enter "cd path/of/your/android-sdk"

I'll see if I can put a Mac version together for you shortly.
 
Much appreciated, I downloaded two .5 RUU files but neither would open, presumably because they're PC programs.
 
Ok, after looking through the how-to from XDA, here is a run down of what you need to do in order to root from a Mac (I'm going to follow along with the threads steps, so follow along here [GUIDE] How to Root Sprint 2.1 Release for CDMA Hero - xda-developers:

Follow Steps 1, 2, and 4-8 exactly as explained in the thread (skip step 3 since you don't need HTC Sync when using a Mac and be sure to download the appropriate sdk package for your Mac).

**Note** unpack the appropriate Android-SDK and place it somewhere easily accessible. Mine is located in Users/Johndoe/Desktop/Documents/Android/sdk

On step 8.1, you will need to open Terminal from the computers applications folder (or search Terminal in Finder). Here we will start entering commands. Remember that you will need to enter the commands exactly as described below, including upper/lower cases and spaces. You can also copy/paste the commands below.
When the Terminal window opens, type:

cd location/of/your/sdk/package/tools (for example, mine would be cd /Users/Johndoe/Desktop/Documents/Android/sdk/tools

8.2 type
adb devices

You should see a serial listing of your phone. If you get an error then make sure you have debugging checked and the phone is set to charge only.

8.3 (the next three files should have been placed in the sdk/tools folder) type
adb push unrevoked /sdcard

8.4 type
adb push recovery.img /sdcard

8.5 type
adb push boot-patched.zip /sdcard

8.6 type
adb shell
(you should see a $)

8.7 type
sh /sdcard/unrevoked

8.8 type
su
at this point, a prompt should appear on your phone asking you for privileges, click allow. You now have root access, although not permanently at this point.

8.9 type
flash_image recovery /sdcard/recovery.img

It will take a few seconds to flash, but when it does, you will see this in the terminal window: # flash_image recovery /sdcard/recovery.img
flash_image recovery /sdcard/recovery.img
#

8.10 type
reboot recovery

The phone will reboot into the new recovery and you'll have a few options. scroll down to flash zip from sdcard and select boot-patched.zip

press home to start the flash and when done, you should see the text indicating so on the screen.

It's highly suggested that you create a Nandroid backup by returning to the main menu of the recovery and selecting "backup/restore" > create backup

Once you've done that you can reboot the phone and you'll be fully rooted. It's suggested that you take the backup file and place that on the computer for future use if you ever want to restore it. Read the rest of the first post of the above referenced thread for informational purpose. Never accept a Sprint OTA as it will break root and it's not guaranteed that you'll be able to root in the future.

I hope this helps somewhat. I'll try and clean it up later.
100% Credit goes to the guys at XDA who achieved root access
 
Last edited:
Seems like you didn't "cd" into the right directory.

Go to the sdk package you download and right click it and select "get info". Look at "Where" and copy the location into Terminal. So it will look like:

cd (copied location as described above)
 
I get this:

john-keysers-macbook:android-sdk-mac_86 johnkeyser$ cd /Users/johnkeyser/android-sdk-mac_86/tools
john-keysers-macbook:tools johnkeyser$ adb devices
-bash: adb: command not found
 
See, I navigated to the correct location. USB Debugging is on and charge only.
This is all I ever get:

Last login: Mon Dec 20 07:26:01 on ttys000
john-keysers-macbook:~ johnkeyser$ cd /users/johnkeyser/android-sdk-mac_86/toolsjohn-keysers-macbook:tools johnkeyser$ adb devices
-bash: adb: command not found
john-keysers-macbook:tools johnkeyser$ ./adb devices
-bash: ./adb: No such file or directory
john-keysers-macbook:tools johnkeyser$
 
See, I navigated to the correct location. USB Debugging is on and charge only.
This is all I ever get:

Last login: Mon Dec 20 07:26:01 on ttys000
john-keysers-macbook:~ johnkeyser$ cd /users/johnkeyser/android-sdk-mac_86/toolsjohn-keysers-macbook:tools johnkeyser$ adb devices
-bash: adb: command not found
john-keysers-macbook:tools johnkeyser$ ./adb devices
-bash: ./adb: No such file or directory
john-keysers-macbook:tools johnkeyser$

Navigate to that directory, type the following and hit enter:

pwd;ls -l

Then copy/paste that into your reply.
 
  • Like
Reactions: chefkeyser
Last login: Mon Dec 20 07:26:01 on ttys000
john-keysers-macbook:~ johnkeyser$ cd /users/johnkeyser/android-sdk-mac_86/toolsjohn-keysers-macbook:tools johnkeyser$ adb devices
-bash: adb: command not found
john-keysers-macbook:tools johnkeyser$ ./adb devices
-bash: ./adb: No such file or directory
john-keysers-macbook:tools johnkeyser$ Last login: Mon Dec 20 07:26:01 on ttys000
john-keysers-macbook:~ johnkeyser$ cd /users/johnkeyser/android-sdk-mac_86/toolsjohn-keysers-macbook:tools johnkeyser$ adb devices
-bash: adb: command not found
john-keysers-macbook:tools johnkeyser$ ./adb devices
-bash: ./adb: No such file or directory
john-keysers-macbook:tools johnkeyser$
Last login: Mon Dec 20 07:26:01 on ttys000
john-keysers-macbook:~ johnkeyser$ cd /users/johnkeyser/android-sdk-mac_86/toolsjohn-keysers-macbook:tools johnkeyser$ adb devices
-bash: adb: command not found
john-keysers-macbook:tools johnkeyser$ ./adb devices
-bash: ./adb: No such file or directory
john-keysers-macbook:tools johnkeyser$
johnkeyser ttys000 Mon Dec 20 07:46 still logged in
johnkeyser ttys000 Mon Dec 20 07:26 - 07:45 (00:19)
johnkeyser ttys000 Sun Dec 19 12:46 - 12:49 (00:03)
johnkeyser ttys000 Sun Dec 19 12:41 - 12:43 (00:02)
johnkeyser ttys000 Thu Dec 16 15:41 - 15:49 (00:07)
johnkeyser ttys000 Thu Dec 16 15:31 - 15:32 (00:01)
johnkeyser ttys000 Thu Dec 16 15:22 - 15:26 (00:03)
johnkeyser ttys000 Thu Dec 16 13:50 - 13:50 (00:00)
johnkeyser ttys000 Thu Dec 16 13:41 - 13:50 (00:08)

wtmp begins Tue Dec 14 21:33
john-keysers-macbook:tools johnkeyser$ john-keysers-macbook:~ johnkeyser$ cd /users/johnkeyser/android-sdk-mac_86/toolsjohn-keysers-macbook:tools johnkeyser$ adb devices
-bash: john-keysers-macbook:~: command not found
john-keysers-macbook:tools johnkeyser$ -bash: adb: command not found
-bash: -bash:: command not found
john-keysers-macbook:tools johnkeyser$ john-keysers-macbook:tools johnkeyser$ ./adb devices
-bash: john-keysers-macbook:tools: command not found
john-keysers-macbook:tools johnkeyser$ -bash: ./adb: No such file or directory
-bash: -bash:: command not found
john-keysers-macbook:tools johnkeyser$ john-keysers-macbook:tools johnkeyser$
-bash: john-keysers-macbook:tools: command not found
john-keysers-macbook:tools johnkeyser$ Last login: Mon Dec 20 07:26:01 on ttys000
johnkeyser ttys000 Mon Dec 20 07:46 still logged in
johnkeyser ttys000 Mon Dec 20 07:26 - 07:45 (00:19)
johnkeyser ttys000 Sun Dec 19 12:46 - 12:49 (00:03)
johnkeyser ttys000 Sun Dec 19 12:41 - 12:43 (00:02)
johnkeyser ttys000 Thu Dec 16 15:41 - 15:49 (00:07)
johnkeyser ttys000 Thu Dec 16 15:31 - 15:32 (00:01)
johnkeyser ttys000 Thu Dec 16 15:22 - 15:26 (00:03)
johnkeyser ttys000 Thu Dec 16 13:50 - 13:50 (00:00)
johnkeyser ttys000 Thu Dec 16 13:41 - 13:50 (00:08)
johnkeyser ttys000 Sun Sep 12 19:14 - 19:20 (00:06)
johnkeyser ttys000 Mon Aug 30 15:00 - 15:16 (00:15)
johnkeyser ttys000 Sun Aug 15 10:34 - 10:36 (00:01)
johnkeyser ttys000 Sun Aug 15 10:18 - 10:25 (00:07)
johnkeyser ttys000 Sun Aug 15 10:16 - 10:17 (00:00)
johnkeyser ttys000 Sun Aug 1 22:55 - 22:56 (00:01)
johnkeyser ttys000 Sun Aug 1 22:49 - 22:53 (00:03)
johnkeyser ttys000 Sun Aug 1 22:46 - 22:46 (00:00)
johnkeyser ttys000 Thu Jul 8 01:05 - 01:05 (00:00)
johnkeyser ttys000 Wed Jun 23 02:40 - 02:53 (00:12)

wtmp begins Tue Dec 1 20:53
john-keysers-macbook:tools johnkeyser$ john-keysers-macbook:~ johnkeyser$ cd /users/johnkeyser/android-sdk-mac_86/toolsjohn-keysers-macbook:tools johnkeyser$ adb devices
-bash: john-keysers-macbook:~: command not found
john-keysers-macbook:tools johnkeyser$ -bash: adb: command not found
-bash: -bash:: command not found
john-keysers-macbook:tools johnkeyser$ john-keysers-macbook:tools johnkeyser$ ./adb devices
-bash: john-keysers-macbook:tools: command not found
john-keysers-macbook:tools johnkeyser$ -bash: ./adb: No such file or directory
-bash: -bash:: command not found
john-keysers-macbook:tools johnkeyser$ john-keysers-macbook:tools johnkeyser$
-bash: john-keysers-macbook:tools: command not found
john-keysers-macbook:tools johnkeyser$
 

Forum statistics

Threads
955,494
Messages
6,964,955
Members
3,163,294
Latest member
alphastreamplus