Post Reply

Easier 1-2-3 Droid 2 Root for Windows / Linux / Mac

OP darkonion

14th September 2010, 06:35 AM   |  #1  
darkonion's Avatar
OP Senior Member
Flag Fremont, CA
Thanks Meter: 30
 
509 posts
Join Date:Joined: Aug 2010
Donate to Me
More
For Droid 2's on Gingerbread, click link below to find info to Root your phone

http://www.droid-life.com/2011/09/01...g-gingerbread/

One Click Root Version for Linux and Works for Mac, too!

This is still a work in progress! Gonna call it 3.3 (I went through 3 previous versions). It takes the 2.2.1 version and adds a user interface. Nice, easy, clean. In order to run this script, you need to chmod (change permission) of the .sh file, and then execute it.

Download the file here: http://kimete.com/droid/beta/dorootv3.sh
It is good for both Linux and Mac. All you have to do is execute it and the script will download all the appropriate files for you!

How to run this in Ubuntu/Linux
How-to video here: http://www.youtube.com/watch?v=gvlB3e_UE8I
Note: General idea. You no longer need to update android-sdk, though.
1. Download the file.
2. Right-click the file, choose properties, choose the permission tab, and check executing file as program, close window
3. Double-click the file, choose Run in Terminal, and it'll start.
4. Choose 1 for install and root. Choose 2 for root process only. Only good if you've rooted using this method before, or you need to reroot your phone. Choose 3 to unroot. Choose 4 for credits/donation information. Choose 5 to exit. Choosing other numbers... :P

How-to for Mac
How-to video here: http://www.youtube.com/watch?v=d7s8dtfYyHI
Note: General idea. You no longer need to download and install android-sdk anymore.
1. Download dorootv3.sh. Best to put it on your desktop.
2. Open a terminal. Go to the magnifying glass and type in terminal, and then select it.
3. Next, you need to change permissions. Type in the terminal chmod 0755 followed with a single space. Then drag the dorootv3.sh into terminal.
You should see something like this chmod 0755 /user/(file path)/dorootv3.sh. Press enter.
4. Now run your file by dragging the file into the terminal again and pressing enter!
5. Now choose and option...

New version of rooting for Linux and Mac! Version 2.2.1!

Linux 2.2.1: http://www.kimete.com/droid/beta/DoRootLinux_221.zip

Mac 2.2.1: http://www.kimete.com/droid/beta/DoRootMac_221.zip

General Instructions:

1. Extract the files.
2. Change the permissions on the doroot.sh file
3. Run doroot.sh file.

Instructions for Linux and Mac

1. Extract the respective files to somewhere accessible. Your home directory or desktop is idea. The file comes in a .zip file. Just open it up and drag and drop the DoRootMac or DoRootLinux folder.
2. Make sure you phone is in PC Mode with USB Debugging enabled
PC Mode: Notification blind -> USB connection -> PC Mode
USB Debugging: Settings -> Applications -> Development -> USB debugging
You need USB debugging icon showing in notifications. Try Charge Only if you can't get PC Mode to show USB debugging.
3. Navigate to the folder in terminal.
example: [cd /DoRootMac or cd /DoRootLinux]
4. enter [chmod 0755 doroot.sh] then run it [./doroot.sh]
5. Let it run.
6. That's it, you are done.

One Click Root for Windows

Here's the Windows version. Facelessuser pushed this through and worked his magic. Give it a try. Very exciting stuff. I haven't used it yet, but according to him, it should work!

Download here, Ver. 2.1.4:
http://www.kimete.com/droid/beta/DoRootWin_2.1.4.zip

Instruction for Windows:
How-to video here: http://www.youtube.com/watch?v=B7RGVikpQ8o

1. Extract the folder from the DORoot zip file to your desktop. You should be moving 7 or 8 files into the tools folder.
2. Install Motorola Drivers
(Tip, to stop the launching of the Verizon/Motorola site, go to the MotoConnect icon in the bottom righ, right click, when phone connects, nothing.)
3. Make sure you phone is in PC Mode with USB Debugging enabled
PC Mode: Notification blind -> USB connection -> PC Mode
USB Debugging: Settings -> Applications -> Development -> USB debugging
You need USB debugging icon showing in notifications. Try Charge Only if you can't get PC Mode to show USB debugging.
4. Double-click and run doroot.bat
5. Let it run.
6. That's it, you are done.

Motorola Drivers (if you are using Windows) which can be found here:
http://www.motorola.com/Support/US-E...arging-Drivers

Many thanks to facelessuser for working his magic!

====
====

How-to Videos

Video of the Rooting Process for D2 and DX by Steve@Wimervision
For Windows/Mac/Linux
http://www.youtube.com/watch?v=u5l3MDomDSc

Video of the Rooting Process for D2 and DX by DarkOnion
For Windows
New: http://www.youtube.com/watch?v=B7RGVikpQ8o
Old: http://www.youtube.com/watch?v=gzlg9a-H42w

How to use the ADBDL.sh file by DarkOnion
For Mac and Linux
http://www.youtube.com/watch?v=9cHpGXfEudM

=====
=====

Frequently Asked Questions

Why does my anti-virus tell me that the files contain Trojan's?
The files are exploits and hack your phone. Don't worry, they are clean. However, to be safe, do not download from any other source than the ones linked in this post.

I've gotten countless hate mail and comments on Youtube users about rageagainstthecage-arm5.bin being detected as a trojan. It is an EXPLOIT. If you are scared that the files I hosted are going to give your computer a virus. Look else where, like Z4Root, though, my understanding is that Z4Root also uses rage.
http://forum.xda-developers.com/showthread.php?t=853704

What is do these files/programs/scripts do?
These scripts will root your Droid 2 or Droid X phone with the least amount of user input as possible.

Why should we use this method and not another method?
All the methods are based off the same process/procedure. If you feel like doing MORE work, we can't stop you. The reason why we wrote all these scripts is to expedite the process, make the procedure easier, and to reduce human input which reduces the chance of human error.

Is there anything I need to know in order to successfully root my phone?
Yes. READ THE DIRECTIONS. Read the directions first. A lot of people make errors because they don't read the directions. I've also provided links to my video and another video which outlines the root process. Both are only a few minutes long.

Root failed! What do I do?
Run the script again! Most people succeed on the first or second try. Usually the rest by the third try.

Do I have to install Android SDK and update it?
It depends. The new Linux/Mac version does not require you to. The windows one, we are still working on.

Does this work on other phones?
I can't answer that. I know it works for Droid 2 and Droid X.

Wait a minute, this isn't really one-click! What's the deal?
Deal with it. Don't like it, try the 25+ step process.

When I open up the Superuser app, I get a blank screen.
That is NORMAL. Superuser lists the processes/applications that you've allowed superuser access to. If you haven't allowed anything, then it will be blank.

How do I test if I have root or not?
Try downloading an app like Wireless Tether (published by Google), and running it.

What USB connection mode do I set my phone to?
PC Mode or Charge Only. Choose the one that comes up with USB Debugging.

I am not very good with computers. Is this something I can do?
Oh yes! The key to success is following the directions.

How do I update Android SDK?
On Windows, you just need to double click the SDK Manager.exe. On Linux/Mac, you need to go into terminal, navigate to the tools folder in the android sdk folder, and run this command ./android update sdk. More information can be found in the SDK Readme text file. On Windows, double-click and run the SDK Manager.

I am getting stuck at the "daemon not found/daemon is starting" part. What do I do?
You need to fumble with the settings on your phone. You don't need to close the terminal. Change between PC Mode and Charge Only mode until it starts to continue. If that still doesn't work, also try disabling then enabling USB debugging for each mode.

=====
=====

Reporting an Error or a Problem

You can report errors right here in this thread. Make sure you give us as much information as possible. List what operating system you are on, what phone you have, at what part of the script you had errors, and anything else you may have tried or done. The more information you provide us, the better we understand situations. Posting up pics or logs of the terminal is extremely helpful.

=====
=====

Change log for 1-2-3 Root

Version 0.0 - 25+ step tutorial on how to root D2 on Windows and Mac

Version 1.0 - Initial scripts to streamline processes and reduce user error in Ver. 0.0.

Version 2.0 - Streamline of multiple scripts into 1 script. Minimal commands. Minimal work. With error checking and reporting.

Version 2.1 - addressed issue where remnants of a previous root would not allow root to complete

Version 2.1.1 -

-Cleanup code.
-Address issue where I thought I was killing a hanging rage, but I wasn't (It was a syntax thing)
-Fix for ERROR6 or ERROR5 (this was drastically different than what I did in windows. I wasn't returning exactly a string in format I thought when doing the check, so I had to do some ridiculous stuff to process it.)
-Better error resolution. (more error checking)
-Refined unroot.
-Reboot if you had files from a previous root
-Now the script will automagically download needed root files if they are not in your folder. (If you are behind a proxy, make sure your mac or linux has curl or wget configured for proxies respectively)
-Longer wait before remount (I had it not remount because it was busy once)

Version 2.1.2 -

Linux and Mac
Contains everything windows 2.1.1
Unroots non bootstrapped phones too

All
Contains option to unroot

Version 2.1.3 - Added dounroot.bat

Vesion 2.1.4 -

-Fix bug where people were getting a false ERROR5 because they already had Superuser.apk
-Hide killing of busybox before unroot

Version 2.1.4 - Files are standalone. No need to download Android SDK anymore.

Version 2.2.0 -
-adb included, no SDK needed
-abort if cannot find adb
-remove alternate busybox at /system/xbin and /system/bin when unrooting
-remove alternate busybox at /system/xbin when rooting and installing busybox at /system/bin
-No more hang in exploit...I hope
-Clean up code

Version 2.2.1 - minor revision to code (curl related)

DarkOnion's DoRootv3

Version 3.0 - set-up menu's, added error checking, will detect which OS you are on

Version 3.1 - fixed issues with ADB SDK User interfaces

Version 3.2 - adapted to DoRoot 2.2.1

Version 3.3 - edited code for easier understanding and modifications

=====
=====

References:

Original procedure produced by Sebastian Krahmer
http://forum.xda-developers.com/show...00&postcount=1

Tutorial/How-to Root Droid 2 on Windows by DarkOnion
http://forum.xda-developers.com/show...&postcount=164

Tutorial/How-to Root Droid 2 on Linux/Mac by DarkOnion
http://forum.xda-developers.com/show...&postcount=340

====
====

Appreciate my work and/or help, feel free to send donations my way! Poor college student here who just got a speeding ticket! Doh!

Last edited by darkonion; 27th December 2011 at 01:05 AM.
The Following 6 Users Say Thank You to darkonion For This Useful Post: [ View ]
14th September 2010, 07:06 AM   |  #2  
darkonion's Avatar
OP Senior Member
Flag Fremont, CA
Thanks Meter: 30
 
509 posts
Join Date:Joined: Aug 2010
Donate to Me
More
This is outdated information and should be used as a reference only! All updated versions have moved to POST #1.

Hi all. Made it to the front page of XDA Developers.

http://www.xda-developers.com/androi...d-for-droid-2/

I just want to make sure credit is given where due. First of all, the original procedure was produced Sebastian Krahmer. From there I wrote an indepth tutorial to root the Droid 2. I took a vague instruction set and help it grown into something that the average person could understand. Understanding the need to simplify the process, I decided to write scripts to further streamline the process. What started out as a 3 part script that involved 8 or 9 commands eventually became a two part script that involved 3 or 4 commands. I have no programming background, by the way. Having trouble getting the process down into one part, facelessuser volunteered to take my work, and put a bunch of neat things into it to get it to work as one thing with error checking! So, with that said, I'd like to thank everyone that had a part in the project, especially facelessuser for his dark magic arts that made the script run, matt4542 for constantly testing my various scripts, and everyone who directly or indirectly ran the scripts!

We are moving forward!

===

Hi all.

We (me), facelessuser, and a few others are working furiously to get an easy one step program out for you guys. In the mean-time, I have a pretty safe, and clean, and easy 2 step method for Windows, Mac, and Linux. I am still cleaning stuff up, but for the most part, it all runs well.

What you need:

Android-SDK for your operating system which can be found here:
http://developer.android.com/sdk/index.html

Motorola Drivers (if you are using Windows) which can be found here:
http://www.motorola.com/Support/US-E...arging-Drivers

And the files/scripts/programs to root for your OS:
Want to try the one step process, go down to post #2!
Windows [1.0]: http://www.kimete.com/droid/DORootforD2Windows.zip
Mac/Linux [1.0]: http://www.kimete.com/droid/DORootforD2Linux.zip

Instruction for Windows:
GO DOWN TO POST #2 AND DOWNLOAD THE ONE STEP

1. Extract and Update Android SDK package to your computer. The file comes in a zip file. Just open it up and drag and drop the android-sdk-windows folder to your C drive. Next, extract the files from the DORoot zip file to the tools folder of Android SDK. You should be moving 7 or 8 files into the tools folder.
2. Install Motorola Drivers
(Tip, to stop the launching of the Verizon/Motorola site, go to the MotoConnect icon in the bottom right, right click, when phone connects, nothing.)
3. Make sure you phone is in PC Mode with USB Debugging enabled
PC Mode: Notification blind -> USB connection -> PC Mode
USB Debugging: Settings -> Applications -> Development -> USB debugging
You need USB debugging icon showing in notifications. Try Charge Only if you can't get PC Mode to show USB debugging.
4. Double-click and run doroot1.bat
5. Follow the instructions. You will enter into the shell and be prompted with a $.
6. enter [./data/local/tmp/rageagainstthecage-arm5.bin] and let it run. Can take up to 15 minutes before it boots you out.
6a. To check if rageagainstthecage worked it's magic, enter the shell with adb shell. You should see a # sign. If you don't, you need to run rageagainstthecage again by entering the command from step six.
6b. If you see the #, exit the shell by typing exit.
7. After being booted from shell and back to DOS, enter or double click doroot2.bat
8. That's it, you are done.

Instruction for Linux and Mac:
GO DOWN TO POST #2 AND DOWNLOAD THE 1-STEP!

1. Extract and Update Android SDK package to your computer. The file comes in a .tar.gz file. Just open it up and drag and drop the android-sdk-linux folder to your home directory or desktop. Next, extract the files from the DORoot zip file to the tools folder of Android SDK. You should be moving 7 or 8 files into the tools folder.
2. Make sure you phone is in PC Mode with USB Debugging enabled
PC Mode: Notification blind -> USB connection -> PC Mode
USB Debugging: Settings -> Applications -> Development -> USB debugging
You need USB debugging icon showing in notifications. Try Charge Only if you can't get PC Mode to show USB debugging.
3. Navigate to the tools folder of your android-sdk
[cd /android-sdk-linux_x86/tools]
4. enter [chmod 0755 doroot1.sh] then run it [./doroot1.sh]
5. Follow the instructions. You will enter into the shell and be prompted with a $.
6. enter [./data/local/tmp/rageagainstthecage-arm5.bin] and let it run. Can take up to 15 minutes.
6a. To check if rageagainstthecage worked it's magic, enter the shell with adb shell. You should see a # sign. If you don't, you need to run rageagainstthe cage again by entering the command from step six.
6b. If you see the #, exit the shell by typing exit.
7. After being booted from shell and back to command prompt, [./doroot2.sh]
8. That's it, you are done.

Enjoy my works? Want to show your gratitude? Just want to help a poor college student out, donate via PayPal to: darkonion@kimete.com. All donations are greatly appreciated. Money will be spent on escorts, food, adult beverages, higher education and its bs fees, paying off my phone, and the wonderful speeding ticket I got this week! :P

Last edited by darkonion; 20th October 2010 at 09:36 PM.
14th September 2010, 09:08 AM   |  #3  
Junior Member
Thanks Meter: 0
 
5 posts
Join Date:Joined: Jan 2009
Hey Thanks alot for writing this! I just tried it out and ran until completion.

A few things I found.

In the dos prompt, part2 the program asks user to input a few commands. Commands 2 and 3 should end in .sh. The program dosent mention this.

Thanks again
Last edited by Disko; 14th September 2010 at 09:19 AM. Reason: Silly questioned self answered!
14th September 2010, 09:15 AM   |  #4  
Junior Member
Thanks Meter: 0
 
1 posts
Join Date:Joined: Jan 2010
Typo in the 3rd step. You forgot to add '.sh'.
14th September 2010, 04:46 PM   |  #5  
darkonion's Avatar
OP Senior Member
Flag Fremont, CA
Thanks Meter: 30
 
509 posts
Join Date:Joined: Aug 2010
Donate to Me
More
Quote:
Originally Posted by lockdownx1x

Typo in the 3rd step. You forgot to add '.sh'.

Doh. Good catch y'all. I will take care of that now!
14th September 2010, 06:25 PM   |  #6  
Junior Member
Thanks Meter: 0
 
3 posts
Join Date:Joined: Sep 2010
Problem
Everytime i type: $ ./doroot2.sh

i get:

./doroot2.sh
./doroot2.sh: not found

thank for the help!
14th September 2010, 08:32 PM   |  #7  
zibrah3ed's Avatar
Senior Member
Flag Kansas
Thanks Meter: 41
 
176 posts
Join Date:Joined: Aug 2010
More
The " ./ " before doroot.sh tells linux to look in the current directory for the file to run. Make sure you in the tools directory of the sdk and that the script is there as well.


Sent from my DROID2 using XDA App
14th September 2010, 09:34 PM   |  #8  
Junior Member
Thanks Meter: 0
 
3 posts
Join Date:Joined: Sep 2010
Yep i definitaly made sure of that but same error. It doesnt matter though i have rooted my droid 2 through the manual proccess
14th September 2010, 09:56 PM   |  #9  
darkonion's Avatar
OP Senior Member
Flag Fremont, CA
Thanks Meter: 30
 
509 posts
Join Date:Joined: Aug 2010
Donate to Me
More
Quote:
Originally Posted by NiteSite

Everytime i type: $ ./doroot2.sh

i get:

./doroot2.sh
./doroot2.sh: not found

thank for the help!

Did you do cd data/local/tmp in adb shell before doing the chmod and ./doroot2.sh?
15th September 2010, 01:09 AM   |  #10  
Junior Member
Thanks Meter: 0
 
3 posts
Join Date:Joined: Sep 2010
Yeah the chmod doroot2.sh worked without a problem. ./doroot2.sh did not tried it several times though

Sent from my DROID2 using XDA App

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes