yashsingh1/xdaforums huggingface dataset:
[Droid 2 Android Development] stanleyg:
It said much more than that. I'm sorry, I accidentally copied only the end-

My part:

Grace-Stanleys-MacBook-Pro:tools gracestanley$ ./doroot.sh

Response:

Welcome to DarkOnion Root

Presented by: darkonion and facelessuser

Special Thanks to: Sebastian Krahmer at http://c-skills.blogspot.com/

If the following command takes too long to connect, close your terminal.

Disconnect your phone and make sure debugging is enabled, and you are set to PC mode.

Checking for devices...

List of devices attached

015A94580D020004	device

Transfering payload.

-->Superuser.apk

1301 KB/s (27688 bytes in 0.020s)

-->su

1252 KB/s (26248 bytes in 0.020s)

-->busybox

1628 KB/s (1926944 bytes in 1.155s)

-->rageagainstthecage-arm5.bin

740 KB/s (5392 bytes in 0.007s)

We will begin to apply the tears of 1000 unicorns to root your phone.

This could take as long as 5 minutes. Please be patient.

10 seconds.

5 seconds.

4

3

2

1

[*] CVE-2010-EASY Android local root exploit (C) 2010 by 743C

[*] checking NPROC limit ...

[+] RLIMIT_NPROC={3815, 3815}

[*] Searching for adb ...

[+] Found adb as PID 26353

[*] Spawning children. Dont type anything and wait for reset!

[*]

[*] If you like what we are doing you can send us PayPal money to

[*] 7-4-3-C@web.de so we can compensate time, effort and HW costs.

[*] If you are a company and feel like you profit from our work,

[*] we also accept donations > 1000 USD!

[*]

[*] adb connection will be reset. restart adb server on desktop and re-login.
[Droid 2 Android Development] facelessuser:
Okay, follow my last post and let me know if it stalls for longer than 5 minutes. If so we will tweak the process.
[Droid 2 Android Development] stanleyg:
Exactly the same response.
[Droid 2 Android Development] facelessuser:
Okay. It does take a little to get past that point, but assumming it is taking longer than 5 minutes at this point, it is time to tweak. On mac, I have heard some people have better success on PC mode. Let us try that next. Close the terminal, change your phone to PC mode. Open a new terminal, blah blah, but before you doroot, type ./adb devices and make sure the computer can see your phone. If so ./doroot.sh
[Droid 2 Android Development] stanleyg:
It has nothing under "list of devices attached" in PC mode, and the debug icon is gone from the notifications list.
[Droid 2 Android Development] facelessuser:
Okay, try mass storage device. ./adb devices, if it finds the phone, ./doroot.sh
[Droid 2 Android Development] stanleyg:
Debug did show up on phone with Mass Storage, but I don't understand:

My part:

Grace-Stanleys-MacBook-Pro:~ gracestanley$ /Users/gracestanley/Desktop/android-sdk-mac_x86/tools

Response:

-bash: /Users/gracestanley/Desktop/android-sdk-mac_x86/tools: is a directory

Then me:

Grace-Stanleys-MacBook-Pro:~ gracestanley$ ./adb devices

Response:

-bash: ./adb: No such file or directory

Am I doing something wrong?
[Droid 2 Android Development] facelessuser:
You forgot cd

cd /Users/....

Then

./adb devices
[Droid 2 Android Development] facelessuser:
Each platform has their quirks. Windows must be charge only, linux must be PC mode, mac sometimes works better in mass storage mode. Go figure.
[Droid 2 Android Development] stanleyg:
This time, it got stuck here:

Welcome to DarkOnion Root

Presented by: darkonion and facelessuser

Special Thanks to: Sebastian Krahmer at http://c-skills.blogspot.com/

If the following command takes too long to connect, close your terminal.

Disconnect your phone and make sure debugging is enabled, and you are set to PC mode.

Checking for devices...

List of devices attached

015A94580D020004	device

Transfering payload.

-->Superuser.apk

1162 KB/s (27688 bytes in 0.023s)

-->su

1295 KB/s (26248 bytes in 0.019s)

-->busybox

2428 KB/s (1926944 bytes in 0.774s)

-->rageagainstthecage-arm5.bin

918 KB/s (5392 bytes in 0.005s)

We will begin to apply the tears of 1000 unicorns to root your phone.

This could take as long as 5 minutes. Please be patient.

10 seconds.

5 seconds.

4

3

2

1
[Droid 2 Android Development] stanleyg:
I spoke too soon.

Here is the rest, still at that same point, though.

[*] CVE-2010-EASY Android local root exploit (C) 2010 by 743C

[*] checking NPROC limit ...

[+] RLIMIT_NPROC={3815, 3815}

[*] Searching for adb ...

[+] Found adb as PID 26353

[*] Spawning children. Dont type anything and wait for reset!

[*]

[*] If you like what we are doing you can send us PayPal money to

[*] 7-4-3-C@web.de so we can compensate time, effort and HW costs.

[*] If you are a company and feel like you profit from our work,

[*] we also accept donations > 1000 USD!

[*]

[*] adb connection will be reset. restart adb server on desktop and re-login.
[Droid 2 Android Development] facelessuser:
Quit and try again. I am sorry it is taking so long. I've seen the most issues on mac. But I have seen it work many times on mac as well.

At this point we are playing the law of averages. If we try it enough times, it will go through. The hack is exactly that, a hack, so sometimes it works, sometimes it doesnt , so we try untill it goes through.

If you feel you had better luck with charge only mode, try that multiple times. Or keep running with mass storage, but let me know if you hit a new issue. You are almost there.
[Droid 2 Android Development] facelessuser:
Also, sometimes rebooting the phone helps.
[Droid 2 Android Development] stanleyg:
Okay. What should I expect to see when it does work?
[Droid 2 Android Development] facelessuser:
It will get to the point where it hangs, at it will sit there for a little, maybe as long as a minute, then it will say reconnecting in 20 sec. After 10 it will start adb server, after another 10 it will check if it can continue.

You should see at the very end. "Congrats, you should be rooted"

I explain what it is doing so that you will be patient. Many people don't wait and kill it before it does its thing.
[Droid 2 Android Development] facelessuser:
Keep trying though, the script is pretty robust. It will skip things that have already been done if it fails during a previous try, but if you hit something that seems really weird, let me know.
[Droid 2 Android Development] jeessuussjason:
my superuser permissions doesn't say anything i have it installed and it opens but nothing comes up
[Droid 2 Android Development] facelessuser:
Superuser only lists applications you have given supeuser permissions to. It is blank because you haven't run an app that needs root yet. As soon as you do, a popup will ask if you want to allow it, then it won't be blank.
[Droid 2 Android Development] stanleyg:
I keep getting stuck at the same place, over and over. I don't mind continuing to try at all, and I will until it works. However, a few weird things that have occurred I thought I should mention: at one point my phone restarted. Nothing was different, but it did. A few minutes later, it flashed up with COMPLETELY different preferences than it had before (huge clock, different background, altered icons, etc.) I was excited for a moment, but it reverted right back to its usual self a moment later, and still terminal remains stuck at the same point.

Odd, but I'll keep trying.
[Droid 2 Android Development] facelessuser:
Try rebooting your phone and try again. The exploit is having a hard time killing adbd on your phone, once it does that, it can finish.
[Droid 2 Android Development] stanleyg:
Congralations, you should now be rooted.

Enter exit once to exit terminal.

YES!!!! I AM SO EXCITED!!! Thank you so, so much! I just rebooted the phone, put it back in charge only mode, and it worked.
[Droid 2 Android Development] facelessuser:
Congrats. I'm glad you stuck with it. It always works, just not always the first time.
[Droid 2 Android Development] shakez:
is there a way to check if the rooting is done? or successful?
[Droid 2 Android Development] facelessuser:
Yeah. The script at the end tells you you are rooted. I do a number of checks while I am rooting your phone, so when it says you're rooted, you are rooted.

But I get it, you just rooted and you want something a little cooler than a message at the end of a script.

Download a free terminal emulator from the market. Type "su" and press the return key. You should see a superuser dialog popup asking if you would like to give the terminal root privledges. Press accept. Or download an app that requires root from the market.
[Droid 2 Android Development] ojo8:
Thank you for all the hard work you put into this. I had to run it a few times to get it to work but now I'm a proud owner of a rooted Droid 2 =)
[Droid 2 Android Development] CptnFalcon:
Congralations, you should now be rooted.

ERROR 05: Failed to copy Superuser.apk.

Enter exit once to exit terminal.

Press any key to continue . . .

I get that error whenever I run the the doroot.bat file. I'm not entirely sure if I'm completely rooted or if it's failed.
[Droid 2 Android Development] facelessuser:
Curious. Is/was superuser.apk already on your phone before root? If so, reboot. Get a terminal emulator from the market and type "su" and press enter in the terminal emulator. If superuser pops up, you are okay.

If it doesn't work or you never had superuser and the app isn't in your app drawer, try installing superuser from the market, and try again. If it appears you are still not rooted, let me know.
[Droid 2 Android Development] CptnFalcon:
superuser.apk wasn't on the phone I haven't had it for more than 24 hours. I got the terminal emulator and typed "su" and superuser did pop up and does look like it is in my app drawer.

However, for some reason I'm not entirely sure i'm rooted. What app can I try and get to be sure.

Thanks for the quick response.
[Droid 2 Android Development] MauDDM:
Cake - thank you for the ease.

Worked great! THANK YOU.

Windows 7

The only issue I had was when in PC Mode I could not get the USB Debugging icon to show in the Notification bar, even though it was enabled in Settings->Applications->Development. With this issue my device was not recognized and the script hung at "daemon started successfully." I switched over to Charge Only and everything ran successfully.

thank you!
[Droid 2 Android Development] MauDDM:
Wireless Tether (from app market) is what I got to fully test. If that works you're good to go.
[Droid 2 Android Development] ckdino:
Error 5

Wow that error 5 is driving me nuts. I downloaded the emulator as well and ran the su command. The superuser box poped asking to allow or deny. I restarted and tried to root the phone again but getting that same error.Any help for a newb would be much appreciated.
[Droid 2 Android Development] killsforpie:
Sorry if this question has already been asked and answered, but I saw that this process may also work for the droid x. Does anyone know if the linux method would work for the original droid with FRG22D? Thanks!
[Droid 2 Android Development] facelessuser:
Why are you trying to reroot when you said superuser popped up? You are fine; don't try again. If it says you are rooted, you are rooted. I will look into error 5 and see if it may be giving false errors. Is thiis on windows or something else.
[Droid 2 Android Development] facelessuser:
Okay peeps. Here is the what is going on with ERROR05. It is a false error on my part. I am checking if Superuser exists, and in situations where it does I am forgetting to clear my status. Since the status isn't clear, it triggers a false error. Real ERROR05 can still occur, but some people are getting fake ERROR5. I will fix this ASAP. Stop rerooting if it tells you are rooted. That part is fine.

Sorry for the confusion. Things like this can happen when you don't have a second set of eyes checking your code. Sometimes you can be too close to the code to see your mistake.
[Droid 2 Android Development] facelessuser:
Okay, until darkonion posts the new version, for a short time you can get the 2.1.4 version that has the ERROR05 fix from my google docs folder.

Get it here.
[Droid 2 Android Development] dodgerslim:
Just wanted to add to the list of people happy to have this.

Didn't work for me the first try, where I got "could not kill pid 18096: no such process" (don't remember on which part unfortunately), but I tried again and it was good. Like you said, maybe not the first time, but it'll always work :)
[Droid 2 Android Development] facelessuser:
I actually know what that kill pid thing is. I am trying to kill the exploit if it seems like its hanging. The problem is, the exploit isn't hanging, it just didn't work. I need to change it to kill silently, and then actually exit.
[Droid 2 Android Development] darkonion:
I've updated the file! It is already to go.

We courage everyone to post the results of your rooting process. The thread has really slowed down recently, so we are under the impression that the scripts and programs are running spectacularly. Information good or bad is better than no information at all.

Other administrative stuff, I'll be compiling and FAQ in the near future. Going to try to organize some other stuff as well. So please bare with me as I try to get this thing going. School is sucking away my life!

-Kevin
[Droid 2 Android Development] dodgerslim:
Hmm, not sure how or why rooting would have affected this, but when I go to Settings - Battery Manager and then tap on the battery icon, it force closes. Wasn't doing it before I rooted. It's process com.android.settings.

edit: Only thing I changed was started SetCPU after rooting, so I suppose there's a conflict in there somewhere?
[Droid 2 Android Development] facelessuser:
It is a random occurance. Mine does the same thing. Sometimes it force closes, sometimes it doesn't. Plug your phone into to your charger and unplug it; it will probably start working again for a while. I think this is a Froyo issue not a rooting issue.
[Droid 2 Android Development] darkonion:
I've just recorded a quick video how-to on how to root the Droid 2 on Windows. It is currently uploading to YouTube. It's crawling right now, but I'll let everyone know when it is finally up.
[Droid 2 Android Development] dodgerslim:
Haven't tried that yet, but I love the quick feedback :)
[Droid 2 Android Development] sprke:
For the one-click method on a mac I download the adbdl.sh file or the doroot.sh file? I downloaded the latter but it just opened up text edit and didn't run anything. I'm feeling really noobish right now :( When I try the adbdl.sh file it says the file is unavailable.
[Droid 2 Android Development] darkonion:
I'd download the adbdl.sh.

What you need to do is go into terminal and chmod it, then run it.

-Kevin
[Droid 2 Android Development] sprke:
When I click on the link to download it, it says 'sorry the requested page not found'
[Droid 2 Android Development] darkonion:
Fixed the link. Try now.
[Droid 2 Android Development] sprke:
Ok it works now. I need to chmod it before I run it?
[Droid 2 Android Development] darkonion:
Yeah. Usually you have to do that. Just follow the directions and you'll be okay.
[Droid 2 Android Development] Jester822:
I rooted with the one step about a week ago (the version before the unroot option). It failed initially but prompted to try again and it suceeded. Just want to say thanks to you and facelessuser for all your work and patience.
[Droid 2 Android Development] sprke:
I am now rooted, it took 2 tries. Thanks for all your work in this thread!
[Droid 2 Android Development] darkonion:
I added two links to videos. One is m own, which I made before I found out about another video that already existed. The other video is by Steve @ wimervision who has done an extensive video on how to root phones on all platforms. Please use these videos as a supplement reference to the instructions. The videos are meant to aide you and not be a standalone to this procedure.
[Droid 2 Android Development] MattHorner:
I rooted a few days ago when I asked the questions on backups and such and it worked the first time for me perfectly. =]

Thank you so much to you guys for rooting the droid 2 =]

Now its time to get kernels on my droid =D
[Droid 2 Android Development] want a droid:
Please help. I've downloaded the files but when I put "cd android-sdk-mac_x86" into Terminal it always says no such file or directory.
[Droid 2 Android Development] facelessuser:
I will need you to be very specific. Did you unzip the folder? And exactly where did you unzip it?

The reason you are getting error is because the folder is not there or somewhere else.
[Droid 2 Android Development] darkonion:
You need to navigate to the folder. Did you extract/unzip the android sdk? I can help you when I get home in a bit. Going to send you a PM.
[Droid 2 Android Development] darkonion:
I've just posted a video on how to use the adbdl.sh file. Use the file to further simplify your life!
[Droid 2 Android Development] :
I ran all the scripts and it said root successful. But when i downloaded Wireless tether, it says im not rooted? What happened?

(Droid 2, btw)
[Droid 2 Android Development] facelessuser:
All the scripts? There is just one...what process did you follow?
[Droid 2 Android Development] darkonion:
Did you do the adbdl.sh? Sorry, that's just my little script to expedite the download of adb and stuff.
[Droid 2 Android Development] darkonion:
I'd just run the doroot.sh script again. Chances are exploit failed and program gave you a false positive. False positive, right? And not the other one?
[Droid 2 Android Development] facelessuser:
It should never say it is rooted unless its rooted. If it was the one-click script and it said he was rooted, he is rooted. The only way it would say its rooted when it isn't is if adb wasn't found.

I need more info, or he needs to reboot his phone.
[Droid 2 Android Development] darkonion:
I am going to put a note on the original post about error reporting. I think we get a lot of vague descriptions and it is kind of tough to troubleshoot. We just end up waiting for replies for more information.
[Droid 2 Android Development] facelessuser:
I agree. I can't read minds.

I also have never had a root false positive. I do too many checks. The only way it could give a false positive is if adb isn't found, but you get a bunch of errors telling you adb is not found. I really need to add a check for that. It is easy enough to do.
[Droid 2 Android Development] RJPinney:
Hi there. I wanted to thank you guys for creating this simple root method for noobs like myself. I've tried it and I am having problems though and getting "root failed" message. I am running windows 7 32-bit. I've followed instructions carefully except for 1 thing, and that is installing the motorola drivers. I skipped this step because when I hooked up my phone the first time the drivers installed automatically. If there are additional steps I need to take for installing the drivers then let me know. Anyways, I would post a screenshot of what happened but I am a new user so I can't.
[Droid 2 Android Development] facelessuser:
Need more info. What USB mode are you in? What errors are associated with root failed? Is debugging enabled? And please install moto drivers; I'm not sure what drivers windows is installing for your phone.
[Droid 2 Android Development] RJPinney:
I got it to work - I was apparently doing everything correctly. I'm not sure why it kept failing? All I did was unplug my phone from usb, restart my computer, then plugged it in and proceeded to root.
[Droid 2 Android Development] darkonion:
The exploit isn't 100%. Sometimes the exploit (rageagainstthecage) works, and other times it doesn't. Most get it on their first or second try. The rest will get it on their third try.
[Droid 2 Android Development] CurlyDE:
Probably a dumb question ... the "Wireless Tether" app that is mentioned, is it "Wireless Tether for Root Users" by Muller, Lemons, Buxton?
[Droid 2 Android Development] facelessuser:
Pretty sure.
[Droid 2 Android Development] darkonion:
Been working on a little something something. Just passed it off to facelessuser. Gonna let him check my work and see that it is up to par for distribution!
[Droid 2 Android Development] darkonion:
Sneak Peek at a New Version

This is still a work in progress! Going to give out vague details. In order to run this script, you need to chmod (change permission) of the .sh file, and then execute it. PM me if you need help and are up to the challenge. Not recommended for someone that is not decent with computers.

http://kimete.com/droid/beta/dorootv3.sh
[Droid 2 Android Development] OCCOMBILL:
I'm probably going to sound retarded to you people; but how do I download the "motorola drivers"?
[Droid 2 Android Development] davidukfl:
i realized when watching the video i never "updated" the android SDK software. The 1-2-3 root worked fine, and my phone is now rooted. I've installed a bunch of root only apps with no issues. So i'm assuming all is well. I just want to make sure that it isn't gonna screw anything up cos i missed that step
[Droid 2 Android Development] facelessuser:
Don't feel bad, I was a little confused when I went to the site. On the opening page follow the link and click the text that says "Motorola Drivers 4.7.1 with Motoconnect"
[Droid 2 Android Development] CharlesBeebe:
The new version is pretty slick! Great job guys, just wish I could get it to run on my phone! lol. But really, thanks!
[Droid 2 Android Development] darkonion:
Enter 69 instead of 1 2 3 4 or 5. :P Easter eggs!
[Droid 2 Android Development] darkonion:
Sil3ntKi113 has put out a One-Click for Windows

I'd give it a try. I've tested it and it was able to unroot me, but not root me, but maybe you guys will have better luck!

Looky here: DarkOnion and Facelessuser taking over the world!

http://alldroid.org/Default.aspx?tabid=40&g=posts&t=967&find=unread
[Droid 2 Android Development] darkonion:
Added Directions to the first post... and a video... for the new sneak peek interface. I think it works pretty well. I'd say if you have a linux machine or an ubuntu machine, go ahead and run it. I feel pretty good about it!

How to run this in Ubuntu/Linux

How-to video here: http://www.youtube.com/watch?v=gvlB3e_UE8I

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 full install. 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
[Droid 2 Android Development] darkonion:
Just posted how-to for Mac!

How-to for Mac

How-to video here: http://www.youtube.com/watch?v=d7s8dtfYyHI

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...
[Droid 2 Android Development] steelead:
Root Droid X for Mac

Hi i got through the root process but at the end got this Error which im not sure how to fix.

[*] If you like what we are doing you can send us PayPal money to

[*] 7-4-3-C@web.de so we can compensate time, effort and HW costs.

[*] If you are a company and feel like you profit from our work,

[*] we also accept donations > 1000 USD!

[*]

[*] adb connection will be reset. restart adb server on desktop and re-login.

could not kill pid 8428: No such process
[Droid 2 Android Development] darkonion:
I'd check for root. Just get an app that requires it. If you have it, leave it alone. If you don't have root, run the script again.
[Droid 2 Android Development] davidukfl:
anyone?

just wanna make sure nothing will happen to my phone
[Droid 2 Android Development] facelessuser:
As I understand, updating does nothing except pull down what you need for development. Adb should be able to talk to your phone without an update.