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

Root DETAILED Leak Root Tutorial

MAC/LINUX ROOT TUTORIAL

Many people have said that they are having difficulties understanding the root process, so I typed up a complete tutorial exactly the way I rooted my phone. All credit goes to wag3slav3 over at XDA, Root for ERIS LEAKERS! - xda-developers, I just expanded on the instructions :)

1. Download the Android SDK from here: Android SDK | Android Developers

2. Download hack-v4.zip from here: Multiupload.com - upload your files to multiple file hosting sites!

3. When the hack-v4.zip is done downloading put the files of the folder into the tools folder of the already extracted android sdk. The tools folder can be found at /where ever you put the sdk/android-sdk-86_mac/tools.

4. Download a custom ROM, I recommend KaosFroyo, but you can choose whatever one you want. Place the .zip file on the root of the SD Card (ie. Not in a folder). PS. If your mac automatically decompresses the .zip, you can find the original .zip file in the trash. For this plug your phone into the computer, pull down the notification bar at the top of the screen on your phone and tap the USB connection notification, then tap Mount as Disk Drive. Copy the .zip onto the phone.
LIST OF ROMS: Known Droid Eris Roms, Patches and Hacks - UPDATED 05-11-2010 - xda-developers

5. To change directories to sdk/tools folder:
1. Open a new terminal window and type cd [space]
2. Find the android sdk in a finder window
3. Drag the folder that says tools to the terminal window and press [ENTER]
4. There now should be the word
 
i got everything working up until step 8, the adb and everything worked fine, and was detected i got this [Jayson-Kleins-MacBook-Pro:tools jaysonk411$ runinlinuxfromtools.sh
-bash: runinlinuxfromtools.sh: command not found]
and
[Jayson-Kleins-MacBook-Pro:tools jaysonk411$ sh runinlinuxfromtools.sh
sh: runinlinuxfromtools.sh: No such file or directory]
im using a mac, what do i do very frustrated
 
i got everything working up until step 8, the adb and everything worked fine, and was detected i got this [Jayson-Kleins-MacBook-Pro:tools jaysonk411$ runinlinuxfromtools.sh
-bash: runinlinuxfromtools.sh: command not found]
and
[Jayson-Kleins-MacBook-Pro:tools jaysonk411$ sh runinlinuxfromtools.sh
sh: runinlinuxfromtools.sh: No such file or directory]
im using a mac, what do i do very frustrated

jayro11,

Did you extract your files to the Android SDK's tools directory and change (cd) to that directory?

The hack-v4.zip files need to be placed in the SDK tools dir.

Pending responses from our resident Mac guys (surgeon0214 and doogald), of course :p.

Let us know.
 
i got everything working up until step 8, the adb and everything worked fine, and was detected i got this [Jayson-Kleins-MacBook-Pro:tools jaysonk411$ runinlinuxfromtools.sh
-bash: runinlinuxfromtools.sh: command not found]
and
[Jayson-Kleins-MacBook-Pro:tools jaysonk411$ sh runinlinuxfromtools.sh
sh: runinlinuxfromtools.sh: No such file or directory]
im using a mac, what do i do very frustrated

jayro11,

Did you extract your files to the Android SDK's tools directory and change (cd) to that directory?

The hack-v4.zip files need to be placed in the SDK tools dir.

Pending responses from our resident Mac guys (surgeon0214 and doogald), of course :p.

Let us know.

Just a guess, but when you double-click the hack-v4.zip file in the tools directory, it creates a folder called hack-v4. Open the Finder and navigate to your tools directory; if there is a folder called hack-v4 there, drag the files from that directory up to the tools directory and try the command again.
 
i got onto my phone reboot and ive done every thing now im up to the choose zip to apply and i found the kaosfroyo, but theres so many subfolders what do i choose?
 
i got onto my phone reboot and ive done every thing now im up to the choose zip to apply and i found the kaosfroyo, but theres so many subfolders what do i choose?

Apparently, your browser is automatically unpacking the downloaded .zip files. That is definitely not desirable - Amon_RA recovery works with the complete (packed) .zip file only.

This has been reported before with Safari on Macs, so... either figure out how to get Safari to stop doing that - or use Firefox for the Mac to download the ROM file again.

eu1


PS For anyone else reading this thread - it is ancient, and there are easier ways to root than this. (It still works correctly, but is practically the hardest way to root.)
 
This has been reported before with Safari on Macs, so... either figure out how to get Safari to stop doing that - or use Firefox for the Mac to download the ROM file again.

In Safari, Preferences, General pane. Turn off the "Open safe files after downloading". Don't let Safari decide what is safe.

That said, even though Safari with this setting will automatically expand downloaded zip files, the original .zip file remains - it is not erased. You can simply copy that file to your SD card. And then delete the stuff that was expanded.
 
7. To test if your ADB is working run “ ./adb devices ” . If you get an alphanumeric code that starts with HTXXXXXXXXXX and says device then you are all set.

and this is what i did on the terminal window....

daniel-chant-macbook:~ Daniel$ ./adb devices
-bash: ./adb: No such file or directory
daniel-chant-macbook:~ Daniel$ ./adb devices
-bash: ./adb: No such file or directory
daniel-chant-macbook:~ Daniel$

my phone is plugged in, checked debugging, charge only....why isn't this working?
 
and this is what i did on the terminal window....

my phone is plugged in, checked debugging, charge only....why isn't this working?

Not a Mac expert by any stretch of the imagination, but you need to be in the Android SDK's tools directory. Did you do step #5?:

5. To change directories to sdk/tools folder:
1. Open a new terminal window and type cd [space]
2. Find the android sdk in a finder window
3. Drag the folder that says tools to the terminal window and press [ENTER]
4. There now should be the word “tools” in front of the computer name/your name in terminal.


Let us know. Cheers!

By the way, there is also jcase's 1-click app that you can run right on your phone without needing to use the Android SDK...
 
i've also tried the android sdk directory, how can I get the 1 click app for rooting my Eris?

Last login: Sun Dec 26 10:45:06 on ttys000
daniel-chantloss-macbook:~ Daniel$ cd /Users/Daniel/Desktop/android-sdk-mac_86/tools
daniel-chantloss-macbook:tools Daniel$ ./adb devices
-bash: ./adb: No such file or directory
daniel-chantloss-macbook:tools Daniel$

no idea why this isn't working
 
i've also tried the android sdk directory, how can I get the 1 click app for rooting my Eris?

no idea why this isn't working

The only thing I can think of is that you installed the new r08 version of the SDK which I've heard does not contain the adb.exe utility in the tools directory (actually, I just downloaded the r08 .zip and can't find the adb utility at all in the .zip; it must be required to download / install it from elsewhere).

Perhaps one of the other thread posters will have a version of the r07 .zip that you could use? (I only have the Windows versions).

The 1-click app can be found here: http://androidforums.com/eris-all-t...is-app-apk-no-pcs-no-scripts-needed-easy.html

Please pay attention to where its say to reboot (you should do a controlled (regular) shutdown (power off) of your phone and then a power-up / restart [some folks get a little confused by this...its really just a power off and power on].

Cheers and good luck!

edit: here's a note about the adb utility: http://forum.androidcentral.com/android-applications/47414-adb-exe-missing-new-sdk-r08.html (so, it looks like you'd have to download and install the platform tools to get the adb tool).
 
I'm kind of new to rooting...so I want to try the 1 click root but how do I "run" the apk? Do I put the file on my phone or do I run it on the computer because it wont let me open the file on my computer.
 
I'm kind of new to rooting...so I want to try the 1 click root but how do I "run" the apk? Do I put the file on my phone or do I run it on the computer because it wont let me open the file on my computer.

you would install it on your phone and run it. APK's are programs for android only. your computer wouldnt know what to do with it :D;)
 
Scary alien is right: you are not in the directory that has the adb command.

If you open the finder, go to your home folder, and type adb in the search box in the upper right, there will be a task bar that pops up under the search box - select the item that says "File name" and it will find the location of the adb file. If you click on it once (do not double-click) it will tell you on the bottom of the finder window the location of the adb file. You need to change the directory using the "cd" command to that directory in a terminal window.

If you don't know what all of this means, use the 1-click app to root the phone.
 
I followed steps 1-6 of the mac/linux setup to the letter, however, I get the following:
-bash: ./adb: No such file or directory
when i try to test the adb, i know this is a very broad prob. but does anyone have any tips, btw im new to rooting and i dont want to do 1-click root
 
I followed steps 1-6 of the mac/linux setup to the letter, however, I get the following:
-bash: ./adb: No such file or directory
when i try to test the adb, i know this is a very broad prob. but does anyone have any tips, btw im new to rooting and i dont want to do 1-click root

I think that the new Android SDK puts the adb command in a different folder, but I don't have the new SDK myself. You can use the search in a Finder window to search for adb, tell it to search for a file with that name (as opposed to Contents) and tell it to search the disk. It should find it, from terminal, use the cd command to change to that directory before you issue the ./adb command.

BTW, Universal root for dummies or 1 click is so much easier (and, I think, better) than this old procedure. I'd do that anyway. Not that learning to use adb isn't useful...
 
So when i find the adb file can i just drop it in the tools folder of the sdk folder and proceed with step 5 as normal?

P.S. The only reason Im doing it this way is to familiarize myself with adb
thnx
 
So when i find the adb file can i just drop it in the tools folder of the sdk folder and proceed with step 5 as normal?

P.S. The only reason Im doing it this way is to familiarize myself with adb
thnx

Honestly, what I would do is leave the adb file where it is and drop any files that you want to transfer to the Eris using adb in that directory. There is nothing magical about a folder called "tools"; it's just where the adb ccommand used to be in the older SDK.

It's also possible to run adb using a relative or absolute path; so, for example, if you installed the SDK in a folder called "android-sdk" in your Documents folder in your home folder, you could go to any folder (or directory, whatever you want to call them) where you have files to install and start the adb command from the terminal with this command string:

~/Documents/android-sdk/platform-tools/adb etc.

(where ~, on the mac, represents your home folder.)

The other cool thing about the terminal is that you can start typing out the path like that and press tab to auto-complete the rest. So, you can type "~/Docu", press tab, and it will autofill "~/Documents' (or, it should.)
 
I'm trying this on my Mac and it just isn't working. I get this output from Terminal:


tools dillonsmith$ sh runinlinuxadb.sh
runinlinuxadb.sh: line 2: adb: command not found
runinlinuxadb.sh: line 3: adb: command not found
runinlinuxadb.sh: line 4: adb: command not found
runinlinuxadb.sh: line 5: adb: command not found
runinlinuxadb.sh: line 6: adb: command not found
runinlinuxadb.sh: line 7: adb: command not found
Files copied and permissions set, rebooting HTC Andriod 2.1
runinlinuxadb.sh: line 9: adb: command not found
Your phone will now reboot into normal mode, then reboot into recovery mode. If it does not reboot the second time, wait 10 minutes and manually reboot and begin again.
Your phone is now rebooting in Rooted Recovery mode, do a backup and load your ROMs
runinlinuxadb.sh: line 12: adb: command not found
runinlinuxadb.sh: line 13: adb: command not found
runinlinuxadb.sh: line 14: adb: command not found
dillon-smiths-macbook:tools dillonsmith$ sh runinlinuxfromtools.sh
runinlinuxfromtools.sh: line 2: ./adb: No such file or directory
runinlinuxfromtools.sh: line 3: ./adb: No such file or directory
runinlinuxfromtools.sh: line 4: ./adb: No such file or directory
runinlinuxfromtools.sh: line 5: ./adb: No such file or directory
runinlinuxfromtools.sh: line 6: ./adb: No such file or directory
runinlinuxfromtools.sh: line 7: ./adb: No such file or directory
Files copied and permissions set, rebooting HTC Andriod 2.1
runinlinuxfromtools.sh: line 9: ./adb: No such file or directory
Your phone will now reboot into normal mode, then reboot into recovery mode. If it does not reboot the second time, wait 10 minutes and manually reboot and begin again.
Your phone is now rebooting in Rooted Recovery mode, do a backup and load your ROMs
runinlinuxfromtools.sh: line 12: ./adb: No such file or directory
runinlinuxfromtools.sh: line 13: ./adb: No such file or directory
runinlinuxfromtools.sh: line 14: ./adb: No such file or directory
dillon-smiths-macbook:tools dillonsmith$

But the phone doesn't reboot. I don't know anything about using Terminal, but I get the feeling there's a lot to read between the lines in these instructions. Help!
 
Back
Top Bottom