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

Search This thread

blustosa

Senior Member
Jun 21, 2008
184
3
East Lansing
Hey all,

I just followed the steps and I keep getting the message "adb is not recognized as an internal or external command, operable program or batch file".

I tried with PC Mode, with Charge only, nothing, it keeps giving me that same message. I have updated the drivers, I followed the steps and all.

May this have anything to do with the fact I use ADW home instead of original home?

Any help is very much so appreciated.
 

darkonion

Senior Member
Aug 27, 2010
509
30
Fremont, CA
Your computer is possessed man. :). I mean, if it is in the same folder as adb, it should find it, if it can't find it in the same folder...it is something I would have to remote in to look at or be sitting in front of to troubleshoot. I mean, if it ran once, it should run again.:confused:

Maybe darkonion can swoop in on this one. I know he has remoted in to help others.

Sure, I can help. I will PM you Gtalk info.

-Kevin
 

darkonion

Senior Member
Aug 27, 2010
509
30
Fremont, CA
Hey all,

I just followed the steps and I keep getting the message "adb is not recognized as an internal or external command, operable program or batch file".

I tried with PC Mode, with Charge only, nothing, it keeps giving me that same message. I have updated the drivers, I followed the steps and all.

May this have anything to do with the fact I use ADW home instead of original home?

Any help is very much so appreciated.

You don't have android-sdk or you didn't put the files where you are suppose to.

You need to put the files from the DoRoot zip file into the tools folder of android-sdk.
 

facelessuser

Senior Member
Jan 31, 2009
417
1
Hey all,

I just followed the steps and I keep getting the message "adb is not recognized as an internal or external command, operable program or batch file".

I tried with PC Mode, with Charge only, nothing, it keeps giving me that same message. I have updated the drivers, I followed the steps and all.

May this have anything to do with the fact I use ADW home instead of original home?

Any help is very much so appreciated.

Are you running the batch file from inside the SDK/tools folder? It will not be able to find it unless it is in the same folder as adb.

Or if adb is in your environmental variables, but that is a bit complicated for a lot of people. I am just trying to get the basics right now.
 

JohnnyConfidence

New member
Mar 5, 2008
3
0
Having a little bit of trouble curious if anyone has suggestions. I had a rooted 2.1 Droid X, did the official OTA update this morning and lost root so I'm attempting this method. I have ADB connection and USB debugging all working. The root process seems to be going fine but I get stuck with an error message here

Code:
Remounting system as RW

Copying files to system
-->Superuser.apk
-->su
-->busybox


Rooting failed.
ERROR 06: Failed to give proper permissions system files.

Enter exit once to exit terminal.

Reset everything and attempted again with the same results. Not sure what to try from here.
 

facelessuser

Senior Member
Jan 31, 2009
417
1
Having a little bit of trouble curious if anyone has suggestions. I had a rooted 2.1 Droid X, did the official OTA update this morning and lost root so I'm attempting this method. I have ADB connection and USB debugging all working. The root process seems to be going fine but I get stuck with an error message here

Code:
Remounting system as RW

Copying files to system
-->Superuser.apk
-->su
-->busybox


Rooting failed.
ERROR 06: Failed to give proper permissions system files.

Enter exit once to exit terminal.

Reset everything and attempted again with the same results. Not sure what to try from here.

Hmm, if it got that far, you were almost rooted. Are you on windows? I think I need to put some waits in between those steps. PM if you are on windows, mac, or linux and give me your email, I will modify the script for you to hopefully push past this for you, or if you got that far and want to finish it manually I can tell you how.
 

darkonion

Senior Member
Aug 27, 2010
509
30
Fremont, CA
Hmm, if it got that far, you were almost rooted. Are you on windows? I think I need to put some waits in between those steps. PM if you are on windows, mac, or linux and give me your email, I will modify the script for you to hopefully push past this for you, or if you got that far and want to finish it manually I can tell you how.

Or hit me up. I like to take a look.
 

facelessuser

Senior Member
Jan 31, 2009
417
1
Or hit me up. I like to take a look.

Yeah, a guy earlier never got busybox (chmod I guess), but it appeared to do everything else. I once saw myself it not remount system as RW because the media was busy. So, I think putting waits in between these steps will allow for the system to finish writing and be ready for the next step.
 

facelessuser

Senior Member
Jan 31, 2009
417
1
I have a new sleepy set of scripts I am sending to darkonion.

The script will sleep for a little in between each copy and each time we set a permission. This will give the media ample time to do the next task. I would rather this take a couple seconds longer, than have issues not completing tasks.
 

darkonion

Senior Member
Aug 27, 2010
509
30
Fremont, CA
Seems like Brian problem is due to the rage exploit. The exploit seems to kick him out a little fast. A little skeptical about this, I asked him to check adb shell where he got the $ prompt. Asked him to run ./rage again and that didn't help. Kicked out again, but this time, it gave a device error. Said device not connected or something. It was weird because you run adb device and the device is listed.
 

facelessuser

Senior Member
Jan 31, 2009
417
1
Seems like Brian problem is due to the rage exploit. The exploit seems to kick him out a little fast. A little skeptical about this, I asked him to check adb shell where he got the $ prompt. Asked him to run ./rage again and that didn't help. Kicked out again, but this time, it gave a device error. Said device not connected or something. It was weird because you run adb device and the device is listed.

Odd. What phone is he running this on? This is all strange...does he have the moto drivers. The phone may sorta work without them, but does he have them?
 

Droopie28

Senior Member
Aug 10, 2010
104
0
San Bruno, Ca
I can never get anything to work on my mac's terminal, and when i open terminal it always spits this out at me:

Last login: Wed Sep 22 13:32:52 on ttys000
-bash: sdkfolder: No such file or directory
-bash: sdkfolder: No such file or directory
Drew:~ Drew$
 

facelessuser

Senior Member
Jan 31, 2009
417
1
not critical, but I am going to change the cp commands in the script in the future from "cp" to "cp -f". In case there is a failure during the copying of system files, the script may return an error if it tries to copy a file on top of the existing file.

"-f" will force the copy to occur and not return an error. This will allow people to complete the script in this rare occurrence. With the new waits in place, this may never be an issue, but I want to make sure. I just helped a guy in this scenario before I released the new scripts.
 

facelessuser

Senior Member
Jan 31, 2009
417
1
I can never get anything to work on my mac's terminal, and when i open terminal it always spits this out at me:

Last login: Wed Sep 22 13:32:52 on ttys000
-bash: sdkfolder: No such file or directory
-bash: sdkfolder: No such file or directory
Drew:~ Drew$

You are going to have to be more specific. What do you enter to get that output?
 

chewybang

Senior Member
Sep 24, 2008
111
10
Having a little bit of trouble curious if anyone has suggestions. I had a rooted 2.1 Droid X, did the official OTA update this morning and lost root so I'm attempting this method. I have ADB connection and USB debugging all working. The root process seems to be going fine but I get stuck with an error message here

Code:
Remounting system as RW

Copying files to system
-->Superuser.apk
-->su
-->busybox


Rooting failed.
ERROR 06: Failed to give proper permissions system files.

Enter exit once to exit terminal.

Reset everything and attempted again with the same results. Not sure what to try from here.

That's the exact error I get
 

facelessuser

Senior Member
Jan 31, 2009
417
1
That's the exact error I get

When did you first try this, earlier today. And would you be willing to be a test rat for a new script? I think I know how to fix your issue.

If so, PM your email and tell me if you are Windows, Mac, or Linux.

I helped the last guy manually fix his, but I think I can get the script to correct this.
 

patchm00

Member
Sep 20, 2010
49
1
Hmm, I think I'm in trouble. I rooted using Linux 1 step and it worked fine. I tried to install the new leaked update 2 2..3.1.5 update because I need corporate sync without PIN and now I get stuck at the M logo on boot. I've tried battery pulls, hard reset with factory wipe/reset and nothing is working. I think maybe I did something wrong or out of order :( Where can I find something that may fix this?
thanks

EDITED: When I get to the reset screen I see E:Can't open /cache/recovery/command
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    For Droid 2's on Gingerbread, click link below to find info to Root your phone

    http://www.droid-life.com/2011/09/0...roidx2-droidx-and-droid3-running-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-...tware_and_Drivers/USB-and-PC-Charging-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://xdaforums.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://xdaforums.com/showpost.php?p=7838000&postcount=1

    Tutorial/How-to Root Droid 2 on Windows by DarkOnion
    http://xdaforums.com/showpost.php?p=7865824&postcount=164

    Tutorial/How-to Root Droid 2 on Linux/Mac by DarkOnion
    http://xdaforums.com/showpost.php?p=8103311&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!

    2
    Link to rage here http://wiki.cyanogenmod.org/index.php?title=Install_CM_for_droid2#Install_Bootstrap

    Sent from my XT894 using Tapatalk

    ---------- Post added at 10:56 PM ---------- Previous post was at 10:49 PM ----------

    ROOT] Framaroot, a one-click application to root
    I have verified it works with these Motorola devices running android 2.3.4
    Droid 2 (a955), Droid 2 Global (a956), R2D2 (a957), & Droid X (MB810)

    Sent from my XT894 using Tapatalk
    1
    I was successful using a terminal emulator on the phone running the same steps! Seems with the D2G the ADB connection never resets and allows a computer to connect again.

    Probably going to need to try the z4root method.

    http://www.youtube.com/watch?v=DC8v2SZXpw8
    1
    i want to be sure b4 i possibly do the wrong process. by "this method" you mean the one @the beginning of this thread, correct?
    also the post prior to mine does not have an actual method aside from mentioning to unroot and reroot. i have all of the files for unrooting saved and am ready for that. i just wanted to be sure that 2.3 could be rooted and if by the 'Easier 1-2-3 Droid 2 Root" method.
    thanx for your help :D

    Yes. Post #1. The Z4root version is one of my previous post a little prior to your post.
    1
    Hello,

    I cant seem to get my new Droid 2 Global to go into USB Debugging mode while the USB mode is set to PC. If I change to USB Mass Storage or Charge Only, I see a new icon on the top bar telling me USB Debugging is on, but not when in PC mode.

    Anyone know what I should do about this?

    EDIT: z4root also fails because of this problem. I will try putting the phone into charge mode while doing z4root and see if that works. But this is definitely a problem for those doing the one-click root from the PC.

    EDit 2: Even in charge mode, with the debugging mode icon present, z4root still says im not in debugging mode. The checkbox is definitely checked for debugging, and I've unchecked and rechecked many times and still it says Im not in debug mode.

    Wow. I have no idea. It worked for me and I have a Droid 2 Global.

    Have you ever rebooted the phone with Shift-Alt-Del keys? Sometimes when things get quirky a reboot will do the trick.

    You are on 2.2 (Froyo)?