yashsingh1/xdaforums huggingface dataset:
[Droid 2 Android Development] nylyon:
According to the Fedx website, my phone is out for delivery. I'm planning on running the one-click on the phone (after all the registration stuff that comes with a new phone). I will test out the Linux version on Unix (Mac OSx Snow Leopard) today and let you know how it went.
[Droid 2 Android Development] facelessuser:
Cool. If it works that saves me the trouble :). It is one of those things; it "should" work because I am not calling anything linux specific, but who knows until it has been validated. I just used adb stuff and basic shell scripting.

I would have already tested it myself, but after unrooting and rerooting my phone multiple times to get the bugs ironed out in linux, I just didn't feel like testing Mac yet.

If you have any issues let me know.
[Droid 2 Android Development] surfaholic:
OS: Win 7 64 Bit

When I run Doroot1.bat the ADB window tells me that everything is pushed to the phone.

Then I run: ./data/local/tmp/rageagainstthecage-arm5.bin (Copy/Paste)

The terminal window closed quickly for me. I figured it must have finished, so then I ran doroo2.bat. Terminal Window opens and then closes very quickly.

I don't think I am doing it right.

Thanks for the effort and hard work.

micah.nies@gmail.com on Google Talk.
[Droid 2 Android Development] facelessuser:
There is no way rage did its work. Did you do this through the ADB shell? The rage binary must be run on the phone through ADB. ADB must stay connected to the phone until rage causes adb on your phone to die.

If you are running rage manually, you must do the following:

1. adb shell (now you are in adb shell)

2. ./data/local/tmp/rageagainstthecage-arm5.bin

3. Don't touch anything. Not anything. Even if it appears to be done, don't touch anything until you are kicked back to your adb directory on your windows box. You will no longer see the $ sign. The exploit is trying make the adb server on your phone die so it restarts as root.

I haven't looked at windows side yet. So I don't know what it is doing. I am trying to get a reliable linux/mac one first since I have easy access to those machines.
[Droid 2 Android Development] nylyon:
You can now rename the one click linux, to one click linux / Mac. I got my phone and after activation I ran over to my Mac. It took me a little while to find the "Enable Debugging" option (first droid) but after that it was smooth sailing. My new droid is now "rooted". Excellent script!
[Droid 2 Android Development] facelessuser:
Great! That's what I like to hear...no issues!

darkonion - I think we now have a working Mac and Linux script :D

Looks like I may be starting work on windows quicker than I thought.
[Droid 2 Android Development] darkonion:
Sounds good! I will update the original post!
[Droid 2 Android Development] jdmba:
Removal?

So far I cannot get rageagainstthecage to boot me. I see that I need to try again for 15 minutes.

Out of curiosity, if it never boots me out, and I just want to give up on this, is there any way to remove the rageagainstthecage from the directory? The files on the SD card are easy, of course, but that one was saved to the phone per the instructions.
[Droid 2 Android Development] darkonion:
I think you could just open the shell.

adb shell

cd data/local/tmp

rm rageagainstthecage-arm5.bin

Something like that.

You need to be patient with the rage step. Sometimes you need to run it multiple times to get the desired effect.
[Droid 2 Android Development] facelessuser:
If things didn't quite go right with rage. I would try to reboot the phone, and then try again. If done right, rage doesn't have to be done multiple times. But I do understand the frustration. It may be better to wait until we have the one click going on windows if your having trouble. I should have it done over the weekend.
[Droid 2 Android Development] jdmba:
Wait I Shall

Then I will certainly wait. I really wish we had some custom ROMs because I am suffering from the calendar bug as well (Calendar doesn't show up on the GMAIL list; just email and contacts) and I can't get that resolved either :)
[Droid 2 Android Development] facelessuser:
Cool, we are going to try and have it verified as working when we release it. I want to minimize issues on release. When I released the Linux/Mac one, I attempted to root my phone over and over until I was confident it would work well.

I really want it to be easy. I'm not afraid of getting dirty in the terminal, but a lot of people are. So we're doing it so you don't have to.:)
[Droid 2 Android Development] darkonion:
If you need help, just let me know. We can use team viewer and I can help you get your stuff done. Email me at darkonion@kimete.com if you need help.
[Droid 2 Android Development] kurtle:
Trouble

I am relatively new to the Droid Community. Only have had it 3 weeks or so. I followed the steps, downloaded the drivers, installed them. I plug in my phone via USB, turned on Debug and PC Mode and not all the drivers appeared to install. It failed on "MTP USB Device." I'm not sure if this is the reason I am having the problem. But I run the first batch script. Get to the shell. Enter in the path to the .bin. It ran for about 10 seconds, then the prompt just disappeared and my phone had been "Disconnected" from USB... it didn't physically get disconnected but it it tried to install the drivers again.

Any ideas???

I'm on Window 7 32 bit.
[Droid 2 Android Development] kurtle:
This is what I See before it closes

C:\android-sdk-windows\tools>adb shell

$ ./data/local/tmp/rageagainstthecage-arm5.bin

./data/local/tmp/rageagainstthecage-arm5.bin

[*] 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 1122

[*] 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.

Also, I am running 2.2.20.A955.Verizon.en.US
[Droid 2 Android Development] event121:
That has to be your drivers. Make sure you get the drivers from here:

http://www.motorola.com/Support/US-E...arging-Drivers

Click "Motorola 4.7.1 Driver with MotoConnect*" link (it's pretty small).

After you install the drivers, reboot the computer.

When it comes on, plug in your phone and put it on Charge Only. Then make sure you have USB debugging Enabled. Then switch to USB Mass Storage Mode.

Turn your volume up so you have hear the windows sounds for plug in and unplug of a device. Tone up = recognized so wait for a driver bubble. Tone down = unplugged which is what charge only will do.

Switching to PC Mode will Tone Down then Tone Up so wait for everything to happen and verify the drivers are installing before jumping into the commands.
[Droid 2 Android Development] Rennert:
Yeah, with terminal emulator on my phone the root process works. Fine;-)
[Droid 2 Android Development] wildman:
I have a few quick questions,

1. I am about to use the option to root my Droid X and I want to run a full backup as soon as I root, what is the best way to do this?

2. Is there a process to unroot my device after doing this, I have searched but I do not see any instructions to do this.

3.Also I may considering installing a black status bar and I was wondering if any special app is needed to do this..

Forgive me if this has been asked but I am new to Android... Any assistance would be appreciated.

Thank You.
[Droid 2 Android Development] aliaselchore:
does it work on droid 1

i tried it on the droid-2 and droid-x but im wondering if it works on the droid-1

has anyone tried it on the first droid? (frg22d)
[Droid 2 Android Development] facelessuser:
No one has tried yet. I almost tried it on a coworkers phone, but he had other issues and decided to not root. So, let us know if it works.
[Droid 2 Android Development] RAGINA:
I'm going to be getting the D2G in a week or so, and I was just wondering if the One Click method is successfully rooting the D2g. thanks.
[Droid 2 Android Development] mikegoldnj:
Trying to root my friend's DroidX using the Mac method. Keep getting multiple "Bad CPU Type in Executable" errors on different lines off the program.

example:

./doroot.sh: line 167: ./adb: Bad CPU type in executable

./doroot.sh: line 168: ./adb: Bad CPU type in executable

Transfering payload.

-->Superuser.apk

./doroot.sh: line 188: ./adb: Bad CPU type in executable

-->su

./doroot.sh: line 191: ./adb: Bad CPU type in executable

-->busybox

./doroot.sh: line 196: ./adb: Bad CPU type in executable

-->rageagainstthecage-arm5.bin

./doroot.sh: line 201: ./adb: Bad CPU type in executable

./doroot.sh: line 209: ./adb: Bad CPU type in executable

./doroot.sh: line 107: ./adb: Bad CPU type in executable

It appears you have an ADB session with root. Skipping exploit.

Remounting system as RW

./doroot.sh: line 270: ./adb: Bad CPU type in executable

Copying files to system.

-->Superuser.apk

./doroot.sh: line 281: ./adb: Bad CPU type in executable

-->Copying su

./doroot.sh: line 301: ./adb: Bad CPU type in executable

-->Copying busybox

./doroot.sh: line 320: ./adb: Bad CPU type in executable

./doroot.sh: line 321: ./adb: Bad CPU type in executable

./doroot.sh: line 322: ./adb: Bad CPU type in executable

Setting permissions

-->su

./doroot.sh: line 344: ./adb: Bad CPU type in executable

-->busybox

./doroot.sh: line 359: ./adb: Bad CPU type in executable

Remounting system as RO

./doroot.sh: line 375: ./adb: Bad CPU type in executable

Clean up: deleting temp files

-->su

./doroot.sh: line 402: ./adb: Bad CPU type in executable

-->busybox

./doroot.sh: line 407: ./adb: Bad CPU type in executable

-->Superuser.apk

./doroot.sh: line 413: ./adb: Bad CPU type in executable

-->rageagainstthecage-arm5.bin

./doroot.sh: line 419: ./adb: Bad CPU type in executable
[Droid 2 Android Development] facelessuser:
It should, but no one has actually done it yet. Just don't give up if it doesn't work the first time. It doesn't always work the first time on D2 and DX either.
[Droid 2 Android Development] facelessuser:
Sounds like there is some kind of connection issue. I would try another cable, or try another computer. Can you give any specifics about the system you are trying this on. I have seen this issue before, and I think that person just tried it on a different computer and it worked.
[Droid 2 Android Development] mikegoldnj:
I figured it was probably a connection issue. Phone won't go into USB Debugging in PC Mode, only in Charge only.

I was trying this on a G5 iMac...I guess I will try it on a Windows machine.
[Droid 2 Android Development] facelessuser:
Note: the adb tool found in the Mac version is for Intel Macs, not Power PC Macs. We should probably package up a Power PC version. Now the bad CPU error makes much more sense.
[Droid 2 Android Development] mikegoldnj:
Yet another reason for me to upgrade to a new Mac! :D
[Droid 2 Android Development] golfnz34me:
An even easier way to root your D2. Dowmload z4root from the app market, run it, and tell it to root your phone. It should root your phone and auto-reboot.

If it seems to get hung up, reboot the pone manually, rerun the program, and it should work OK now.

Voila! You now have a rooted phone.

Hope this helps some.

Mike
[Droid 2 Android Development] james.jones:
Need to unroot to update files

Gentlemen, thanks for all the hardwork that you do. I will send a donation to show my appreciation.

I have a question regarding the unrooting procedure. I have a Droid 2 and I've downloaded one of the early versions of the 1 step root process for windows. It does not have an "unroot" option.

My phone recently downloaded an update file from verizon. Before I install it, I believe I should unroot my rooted phone to prevent any problems. The only application I use on my unrooted phone is the wireless theter.

Do I also have to remove the wireless thether prior to unrooting?

Can you tell me an easy way on how to unroot my rooted phone so I can install the new updated files from verizon?

Thanks again for your assistance. I really appreciate your help.
[Droid 2 Android Development] darkonion:
You should get the new version of DORoot. It is a lot leaner, and more refined and has the unroot option (dounroot.bat). You just have to double-click the dounroot.bat. Ofcourse, you need to have your phone in PC Mode with USB Debugging. Yes, you should unroot your phone before installing updates. You don't need to uninstall your rooted applications. That is not necessary. If you are unrooted, they will be there. They just won't run.
[Droid 2 Android Development] fitness12:
Quick ? for an expert as I have the Dinc and my GF just got the Droid 2. Since rooting is totally different I want to confirm things so I don't bork hers. She just got it so it has the newest update already and I have it rooted and bootstrap recovery loaded on it but to get it deoxeded to I just use this from MDW? Droid 2 (2.3.20) Deodexed Update.zip format.

I did post in 2.3.20 SBF but don't see a lot of activity so sorry to double post just want to get working on it :)

Thanks,

Torrey
[Droid 2 Android Development] james.jones:
Darkonion, I know this is a stupid question, but how do I update my unrooted Droid2 with the new version of DORoot? Do I have to delete my old files first or do I just simply just click on the new version 1 step process to download?

I'm a newbie to this stuff, so please bear with me. I have no idea what I should do to update my unrooted Droid1 to the newer version of DoRoot.

Thanks.
[Droid 2 Android Development] darkonion:
DORoot is a program you run on your computer to root your Droid 2. You just download the latest version for your OS, and run it on your computer. And yeah... there are youtube videos to help you, too.
[Droid 2 Android Development] fitness12:
Any insight dark onion on easiest way to get deodexed if already rooted and have bootstrap?

Thank you
[Droid 2 Android Development] darkonion:
That is a question that you have to ask Angdroid. I haven't really looked into it, so I couldn't tell you.

-Kevin
[Droid 2 Android Development] fitness12:
Ok sounds good, appreciate it!

Torrey
[Droid 2 Android Development] xblahblahx:
Hi,

I'm having a little trouble running the doroot file. Whenever i run it, it immediately says:

Transfering payload.

-->Superuser.apk

cannot stat 'Superuser.apk': No such file or directory

-->su

cannot stat 'su': No such file or directory

-->busybox

cannot stat 'busybox': No such file or directory

-->rageagainstthecage-arm5.bin

cannot stat 'rageagainstthecage-arm5.bin': No such file or directory

Rooting failed.

No Errors

Weird thing is, i clearly see those files in the doRoot folder. I extracted everything from the zip file. If it helps i'm trying to do this on Windows 7 64 bit.
[Droid 2 Android Development] wildman:
Did you make sure to run as administrator? I had no issue rooting or unrooting with this process on Windows 7 x64.. Give the administrator a try also make sure you disable antivirus because some detect a false positive on one of the files that causes issues with loading...
[Droid 2 Android Development] darkonion:
I'd try redownloading and going through the steps again. My best guess is that you opened the wrong doroot.bat, or you didn't extract. But I don't think it is either. Yeah, I try first redownloading and rerunning.
[Droid 2 Android Development] xblahblahx:
After re-dling and retrying at least 10 times on my desktop. I decided to try it on my netbook. It rooted the first time i ran it.

Thank you darkonion and facelessuser!!!
[Droid 2 Android Development] james.jones:
I found the easiest way to root & unroot a Droid2 is to go to your phone's Marketplace application and download "z4root". All it takes is one simple click and you're done, it's fool proof for newbies like myself.
[Droid 2 Android Development] 2k10MBC300SPT:
Much easier process, Took literally less than 2minutes:( Thanks
[Droid 2 Android Development] RaptorMD:
Does z4root work on the D2G? I did the manual root method since I could not find a clear answer to that question. Of course now I am in search of how to manually unroot so that when a one click option appears or I have to visit a Verizon store I can restore it.
[Droid 2 Android Development] rodi1981:
Easy fast and free root for people who can't root

I was trying for few day root my Motorola Droid 2 with this and other one click and always had problem today I was try app to open all levels in Angry Bird but application told me that I need rooted phone and suggested me app "z4root" is free in android market and took only 20s to root my phone.Try it if this one is not work for you.
[Droid 2 Android Development] pijes:
I'm happy to say that this method also works for rooting the Defy. Mine is a UK set, took less than 5 minutes to complete.

Great job and many thanks!!
[Droid 2 Android Development] darkonion:
Glad it works! Tell your friends!
[Droid 2 Android Development] firebrain:
Cant get it work on D2G xp 32 bit. Cannot find device after restart of adb
[Droid 2 Android Development] firebrain:
bump? I couldnt get it work on mine?
[Droid 2 Android Development] darkonion:
Where does it fail? Does you have a log of the session? Have you tired running the script multiple times?
[Droid 2 Android Development] facelessuser:
If it hangs on trying to reconnect, unplug phone, and then replug it in.
[Droid 2 Android Development] facelessuser:
Nice. It should work on almost any phone that runs Froyo, and as long as there are no extra HW securities like locked NVRAM etc.
[Droid 2 Android Development] botnryan:
pardon me giving the TL;DR to this 82 page topic, but does this work on the D2 Global?
[Droid 2 Android Development] darkonion:
It should. It isn't any different than any other root method for the D2G.
[Droid 2 Android Development] botnryan:
Well...it get stuck at the "detecting devices" part... i tried pc mode but USB debugging turns off, so i did like it says and tried charge only, USB Debugging came on but the doroot program wont detect it, even tho motoconnect does and says its successfully connected.
[Droid 2 Android Development] facelessuser:
What system are you on? Windows, Mac Intel, Mac Power PC, Linux ?
[Droid 2 Android Development] botnryan:
im on windows
[Droid 2 Android Development] facelessuser:
Hmm. If you have enabled and debugging is showing up and your device cannot be found, I would suggest getting a new cable, or trying it on a different computer.
[Droid 2 Android Development] botnryan:
well, the first time i ran it, it detected it, then once adb restarted..or well..it got to the line that said "daemon succesfully loaded' or something to that effect, then it did "searching for devices" again and never found it. Now everytime after that that i have tried it never finds it at the first "searching for devices"
[Droid 2 Android Development] facelessuser:
Since we are going through the adb layer stuff like this can happen. I suggest restarting your phone and trying again.

If it hangs at the second reconnect again, don't quit the script. Unpug your phone, and replug it. See if it reconnects and continues.
[Droid 2 Android Development] botnryan:
alright giving that a shot now, thanks for your continued help :)

ok so that didnt do the trick, so i left the script running and unplugged and restarted the phone, then reconnected, now it detected the phone but then said root failed try again y/n? i typed y and *enter while praying to the root god* and of course it hung after adb reset again. just seems the D2G cant make it past 2nd reconnect

edit: ive tried unplugging and replugging it at so many different points thruout the script and nothing works, it makes it to the "root failed" part over and over again.
[Droid 2 Android Development] facelessuser:
I never said unplug and restart the phone. I said restart the phone and try again (Before doing the process again). If it hangs again unplug (Do Not Restart) and then replug. Sorry if there was some confusion there.
[Droid 2 Android Development] botnryan:
oh no i did both. unplugged then immediately replugged it in, didnt work...so i tried the unplug and restart..i just came up with that on my own, obviously not knowing what im doing.

EDIT: i was messing around with manually rooting it, i get to the part just before where i would type "adb shell" and it should change from $ to # and i type "adb devices" to see whats connected. my phone shows up as connected but "offline"...dont know if that helps or means anything but jsut thought i'd mention it.
[Droid 2 Android Development] firebrain:
Just use this method http://www.droidforums.net/forum/dr...root-custom-recovery-sim-unlock-tutorial.html
[Droid 2 Android Development] botnryan:
Thank you! We REALLY need to get a D2G section up and going here at xda. its a whole 'nother animal from the regular D2 and i really like xda and would rather not have to go to other sites like that, nothing against it..just i like xda :D
[Droid 2 Android Development] cinaibur:
Can anyone tell me how to unroot my Droid 2? I used this method to root and I need to send my phone back to Verizon. Can anyone help me out?
[Droid 2 Android Development] facelessuser:
download latest version

windows

dounroot.bat (I believe, I don't have it sitting in front of me, but it should have an obvious name)

Mac Windows

./doroot.sh unroot
[Droid 2 Android Development] Tuxinator09:
Hello,

I just wanted to know if I can root my Milestone 2 (Android 2.2) with this? Or ist there a better way for this?
[Droid 2 Android Development] darkonion:
Probably could. Go ahead and give it a try.
[Droid 2 Android Development] Tuxinator09:
What if it goes wrong? Is it brick then?
[Droid 2 Android Development] darkonion:
Either it works or it doesn't. Is there a chance of bricking... sure... but I haven't seen one yet on the D2 or DX because of this method. This method works on the Motorola Defy.
[Droid 2 Android Development] sinistersai4d4d:
I find it odd the instructions make no mention of what to do on ur phone or what to do with ur phone in order to root. As if Terminal on a mac is magically connected to your Droid.

Sent from my T-Mobile G2 using telepathy and unicorn dust!
[Droid 2 Android Development] darkonion:
It does. Read the directions again. It tells you to put your phone into PC Mode or Charge Only with USB Debugging enabled. What is happening is the script sends a bunch of files to your phone, then tells your phone to run it. Why is this so? Because it is more efficient than you copying commands letter by letter. Less work, more efficient, and the script doesn't make human errors.
[Droid 2 Android Development] sinistersai4d4d:
Under the heading "This is outdated information?"

Then it goes on to say use the SDK, which doesn't seem to be the case. Might want to consider adding what we do to with our phones in the post with the current directions...

I'm guessing we follow steps 1 and 2 in "outdated" post #2, and then follow steps 1 through 5 in post #1? (Mac).

Is that it? Thanks in advance for your reply.
[Droid 2 Android Development] darkonion:
All relevant information is in the first post of this thread. You can disregard the second post. All information/instructions AND VIDEOS are in the first post.
[Droid 2 Android Development] sinistersai4d4d:
Ok. Although I watched the video and saw no reference to what to do with the phone. Infact the video didnt even show the phone in it.

P.s. I was thrown off by the "how to for mac" steps being seperate from the "instructions for mac" steps...

I think i have it figured out now.

Thanks.

Sent from my T-Mobile G2 using telepathy and unicorn dust!
[Droid 2 Android Development] walcs:
Disregard the video for now, its just a quick demo and not a extensive video. please follow the post as in how to root your Droid 2/X
[Droid 2 Android Development] darkonion:
Go to version 2.2.1. The 3.x version is just a testing thing that will never come out.