[Droid Eris Android Development] wag3slav3:
Big thanks to tereg for the toolkit and the guys who rooted the EVO with a file write/chmod race condition exploit that gave me the idea for this.

jcase noticed that a race isn't actually necessary to exploit the chmod 777 on the file I've been working with, simplifying the script alot.

I used the files from the adb development pack that Tereg put together. Download them here. You don't need them for this root process as long as you have a working adb install.

THE SCRIPTS HAVE BEEN UPDATED MANY TIMES! Please be sure to re-download the new hack-v4.zip before you start if you a returning root seeker.

You will need adb access. Install the android sdk for your platform (macos, windows, linux) get it for your OS here.

If you don't know how to install the sdk, search xda, there are a ton of howtos for that.

Also, if you want to root and can't get your computer to talk to the phone or have some other weird computer related issue you can now try this method, which doesn't require a computer at all!

Unzip hack-v4.zip to somewhere, copy/move the files into your adb-sdk/tools directory/folder.

*updated files to hack-v4.zip @ 7-14-2010 10:43AM Central*

Files to download:

hack-v4.zip

A ROM file, I suggest EvilEris if you want to flash the whole phone OR EngTools.zip If you just want to be root. (Thanks jcase!)

Android SDK (skip if you have a working adb)

Instructions for linux/OSX. - Alternate instructions specifically for MAC

Have adb in your path, or move the files contained in hack-v4.zip into your sdk/tools directory so your pushes will work properly.

FOR ALL OS's Make sure your phone has Applications->Development->USB Debugging turned on.

Do NOT have your phone in Disk Drive Mode, have it in Charge Only.

Open a terminal window in your /tools/ directory. Type this at the prompt.

sh runinlinuxfromtools.sh

This will take a few minutes, follow the instructions on your screen.

If you get adb: command not found, try

sh runinlinuxadb.sh

Some people get a permission denied error. Try

chmod +x ./runinlinuxfromtools.sh
./runinlinuxfromtools.sh

Instructions for windows (thanks tereg!)

Download the hack.zip file and extract it to the desktop. So, you have a folder on the desktop called hack. I would recommend moving or copying those files (EDIT: that are contained in the hack folder) to the C:\android-sdk-windows\tools folder. Why? Because the script runs "adb ____" commands, and unless you've set up adb to be able to run anywhere within the command prompt, the script won't run. So, it will universally work if the files in the hack folder are placed in C:\android-sdk-windows\tools

So, open a command prompt by pressing WindowsKey+R, or going to Start-Run (in WinXP) and typing

cmd

in the text box there and press OK

If you are in Windows Vista/Windows 7, go to the Start Menu, then type in

cmd

in the search bar in the lower right-hand corner of the start menu and press enter, and locate Command Prompt in the search results, or go to Start -> All Programs -> Accessories -> Command Prompt

Type

cd C:\android-sdk-windows\tools

and press enter

Now, I recommend pushing the ROM you want to flash to the SD card now. So, if you download EvilEris3.0 for instance, make sure you download it to the C:\android-sdk-windows\tools folder, and then execute

adb push EvilEris3.0.zip /sdcard

Replace EvilEris3.0.zip with the name of the .zip file that you choose to download.

Then, type

runindos.bat

to execute the script.

You might have to run it 2 or 3 times for it to work. If it fails, just reboot the phone normally, then run

runindos.bat

again once the phone is booted back up and you're ready.

----------(Thanks again tereg!)

If your device reboots into a new screen with options on it, you now have root in recovery mode. At this point you will be flashing your Eris's brains, so YOUR PHONE WILL BE BLANK AFTER LOADING A NEW ROM! All of your apps/numbers will be gone from the phone.

I suggest a nand backup first.

Download and copy one of these ROM's to your sdcard as update.zip and flash it with flash zip from sdcard by selecting "Install zip from sdcard".

The first boot after loading a new ROM takes quite a while to show any activity to the screen. Give it a good 5 minutes before you start wondering if it's ever going to come back.

Eris ROMS

More things you can now do.

Replace that hateful HBOOT 1.49, and get a rooted STOCK phone.

Donate of you luv me!

-----------------

And some love for tereg! Donate a bit to him too, if you're feeling generous.