yashsingh1/xdaforums huggingface dataset:
[Droid 2 Android Development] Runbigmama:
update safe

hey guys. i got all this working, and feel like i want to worship you now after bing without root for a week after switching from the D1.

anyway, big questin, that i cant really search for(computer is down and typin from the D2)

is this root sequence safe for the latest update verizon has sent our way?

i dont want to update if i'll loose root access, but will if we need to find out.

thanks in advance, and im sorry if this got covered in the past 20 pages, i just didnt have the time to read each on the phone.
[Droid 2 Android Development] joeld82:
Woohoo! Just got my D2 4 days agho and I'm already rooted!
[Droid 2 Android Development] Redbeard09:
Looking to run the vanilla version of android on my droid 2. Will rooting make this possible or what exactly will this allow me to do?

If the question doesn't belong here please point me in the right direction.
[Droid 2 Android Development] sk0rnt:
Works on 2.2.20 also

I successfully rooted my Droid 2 when it had the 2.2.19 update, then got the OTA update for 2.2.20. Was hesitant at first to install the update since I didn't want to lose root. But finally got tired of the nagging screen every 12 hours so went ahead and installed the update..

The update DOES remove root (the setuid permisions on su and busybox)

But it does NOT prevent you from re-rooting, follow the same instructions but you don't need to copy files anywhere, just fix the permissions on su & busybox

- connect phone as usual

- adp shell

- cd /data/local/tmp

- ./rageagainstthecage-arm5.bin

- let the process run until it 'kicks' you out (may take a minute or two)

- adb devices (to verify the connection)

- adb shell (you should now have a # prompt, if not return to ./rage step above)

- mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system

- chmod 4755 /system/bin/su

- chmod 4755 /system/bin/busybox

- ls -l /system/bin/su (you should see -rwsr-xr-x, the s is the most important part that indicates the file is setuid, ie runs with root permissions)

- mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system

- exit

That's all I did, and was able to restore the root on my phone.
[Droid 2 Android Development] Sinzia:
following the directions on page 17 worked flawlessly for me after a hard reset of the D2 (pulled the battery out and all that stuff)

Barnacle tether works a-ok and so does titanium backup!
[Droid 2 Android Development] actingbiz1:
Question... Now I got all the way to the part where i need to type in ./rageagainstthecage-arm5.bin and I get CVE-2010-EASY Android local root exploit

yadda yadda

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

And does nothing. I let it sit for like 5 minutes and nothing happened. Im using my Droid X and its on USB Debugging and Windows Media Sync
[Droid 2 Android Development] heartlessmcfly:
your phone will shut off and turn back on. just go ahead and start the next step after this happens. the same happened to me.
[Droid 2 Android Development] actingbiz1:
But my phone doesnt restart... Literally, nothing happenes.
[Droid 2 Android Development] darkonion:
This step takes awhile. Just let it sit awhile longer. I don't know how long it takes me to do dishes, but it took a little while and when I came back, it was still going. Eventually finished, and kicked me back to MS-DOS.
[Droid 2 Android Development] darkonion:
I was wondering if anyone can tell me what I am doing? I rooted my phone on Wednesday and right now, I am trying to update the phone, but it says that the update failed.
[Droid 2 Android Development] Zmanz:
Confused

So I thought all this was fairly straightforward and easy, but I am running into a problem when it comes to pushing the files onto the sdcard. Whenever I tell it to push a certain file (Superuser.apk, busybox, su, or the rageagainstthecage-arm5.bin) it brings up the adb information, like how to use it and what all the inputs do. I'm not sure if that's right or not, but then when I get to:

$ chmod 0755 rageagainstthecage-arm5.bin

It comes up with this:

Unable to chmod rageagainstthecage-arm5.bin: No such file or directory

I added adb to the path and it never tells me permission denied or anything, I have USB Debugging on and am on PC Mode, what am I doing wrong?

Edit: I was missing a space in my input commands. :/ but now it works!
[Droid 2 Android Development] Lulzi:
Never mind, I'm an idiot.

Just got rooted, thanks so much!
[Droid 2 Android Development] rennnsymbol:
Is there any attempts yet to flash the droid 2 to another carrier?
[Droid 2 Android Development] chavvydiv:
Worked for me. Had to try it twice but got it working in less than an hour.

The instructions on page 17 of this thread did a really excellent job of walking me through it.

Heads up, when it says it's rebooting, give it time (mine took like 6 minutes to come back to the command prompt.)

Also, not sure if it makes a difference but you might want to put your phone in airplane mode when you're doing this.
[Droid 2 Android Development] Wolfhere:
Yes. It worked for me after the update. I lost root right after updating. Followed the steps once again...and voila :)
[Droid 2 Android Development] ljbaumer:
nandroid?

can we make nandroid backups without having a recovery?

I remember on my eris that you could make a nandroid backup before you root so that if you screw up you could just enter a few commands and it would restore your non-rooted nandroid backup without even having amon's or clockwork installed on your phone.
[Droid 2 Android Development] kaoticg2k10:
Maybe I missed something

First off I am new to this.

Secondly, I was able to to the following:

Setup:

- Install adb (here) and Motorola drivers for windows(32-bit or 64-bit)

- Download attached archive

- Extract to a directory, I used c:\Droid2Root

- Make sure you have USB degugging enabled

- Change connection to PC Mode

Process:

- Open command prompt

- cd c:/wherever-your-sdk-tools-folder-is

- adb devices (to verify the connection)

- cd c:/Droid2Root

But when i get to this part i get this error in the cmd line:

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

So basically I cannot go further since it wont push.

- adb push Superuser.apk /sdcard/Superuser.apk

Any help woould be appreciated. :D
[Droid 2 Android Development] darkonion:
Go to post #164. Essentially, you have to put superuser.apk and the other files into the tools folder. Read my notes on that post.
[Droid 2 Android Development] bryanthebold:
So I've tried this method about 3 times, and I keep ending in a similar spot. Once I exit cmd and restart the phone I go into Superuser and it displays nothing. It opens a screen that says Superuser Permissions on top and just a black screen under it. Where did I go wrong?
[Droid 2 Android Development] darkonion:
I think you are set. Go download Adfree or Wifi Tethering (Google). If you can run those two, you are rooted. When I opened my SuperUser, it shows me a list of all my apps that require root/superuser.
[Droid 2 Android Development] blueb0x1:
I can't wait to try this when I get home.

*edit - just tried it, hit a few snags. had to leave phone on 'Media Sync' so computer would see it. Also followed the one on #164 (?), since i'm new to the droid life [apple convert :)]

thanks guys!!
[Droid 2 Android Development] skipwagner:
rooting

i actually got the chmod step to work. now im on the step right before it kicks you back to normal dos command. the ./rageagainstthecage-arm5.bin step. it keeps saying permission denied. anyone know why?
[Droid 2 Android Development] skipwagner:
im getting the same thing...i have no idea what to do
[Droid 2 Android Development] darkonion:
I am glad that my notes helped. It isn't perfect, but I am glad you had less trouble with my notes.
[Droid 2 Android Development] kaoticg2k10:
Thank you, I believe I am now rooted. So will you point me in the right direction on how to remove the stuff I dont want on my phone and other tips/goodies I can do since I am rooted.

Thanks again :D:cool:
[Droid 2 Android Development] skipwagner:
rooting

ok sorry for the third post. i got everything and now im at the part where it kicks you back to dos. the first time it didnt give me the # so i did it again and its been like a half hour. anyone else have this happening ?
[Droid 2 Android Development] darkonion:
Hmmm... I wouldn't remove stuff just yet. But you could use Titanium BackUp or another program that can do it.
[Droid 2 Android Development] kaoticg2k10:
Getting it now. I see my superuser icon, when i go to it it just comes up with special permissions and then blank... is that normal? Remember I am new and sorry if my questions are redundant or annoying.

Thanks again.

EDIT: I answered my own question lol!
[Droid 2 Android Development] knoxx:
I now have root!!!! Didn't even take 15 minutes and there weren't any hiccups in doing so.. I am grateful ;]
[Droid 2 Android Development] Silex73:
I was just wondering if anyone knew a way to unroot the droid 2 yet?
[Droid 2 Android Development] sipfurb:
I, too, am completely new to rooting. I followed darkonion's directions and everything went exactly as it should as far as I can tell. I do see the Superuser Permissions icon in my apps drawer but when I open it nothing happens. It's completely black with the app name at the top. Where did I go wrong?
[Droid 2 Android Development] darkonion:
I don't think you went wrong. I think you are good. Go install some apps that require root!
[Droid 2 Android Development] Pathian:
Hello all,

I followed the instructions here and the phone works like a dream. The only issue I'm having is that now when I plug my phone into the computer (drivers installed, usb debugging toggled on), USB debugging won't activate in PC mode. It turns on in USB Mass storage mode and Charge only, but it always turns off in PC Mode. Is anyone else experiencing that issue or have a solution?

thanks much,

Justin
[Droid 2 Android Development] vandeec5:
Just curious, on the droid 2 once its rooted, can you remove unwanted programs?
[Droid 2 Android Development] dldunckel:
I have the same exact issue, but I'm not too concerned because I am rooted!

It just means I have to navigate through Settings->Applications->Development and check or uncheck the "USB debugging" checkbox. So the feature isn't really lost; it's just the notification icon is only working in USB Mass Storage mode.

However, if there is a solution out there, that'd be much appreciated.

Thanks again to DarkOnion for his notes and Sebastian Krahmer for the root process.
[Droid 2 Android Development] darkonion:
Yup. I suggest using this method:

http://xdaforums.com/showthread.php?t=765750

Be careful of what you remove. I made the mistake of removing the Mynet.apk through Titanium BackUp and that is what lead to me not being able to update. And on top of that, I haven't found a way to reinstall Mynet.apk.

I like karnovaran's way because you are moving/renaming the file as opposed to completely deleting it.
[Droid 2 Android Development] jairitodr:
Something is wrong about this Command Prom.....

Ok, so after installing both file and extracting them to cd c:/Droid2Root

i would like to get to the next step and adb device but it just says adb is not a recognized...........

The Droid 2 is under PC Mode and USB debuggin is enable but this wont work. Im using windows 7 ultimate. What could posibly be wrong.

Im the past i've had and HTC Pro 2 and u was able to unlock it to add custom roms and that went well. Whats up with this?

Is there any video that could be made for youtube showing all these steps being done with a Droid 2?(that will make a difference) Most say it worked for them and thats all.

Other than this, hopefully someone will come up with and easier method or maybe even an application to this just like they have to jailbreak iphones.
[Droid 2 Android Development] darkonion:
You should read post #164 if you haven't already. It might be because there is no adb program in the the folder you are currently in. It is in the tools folder. If it isn't that. Try adb.exe.

As for your other comments, I think a YouTube video is kind of difficult. This whole process is command line. There really isn't that much more to it. As for an easier process? Sure, I've simplified it as much as I can. Still got to do command line though.

Anyways, please tell us which numbered step you are stuck on and what the full error is. Your description is kind of vague.
[Droid 2 Android Development] fibofan:
Small Problem

I Rooted my Droid 2 a few days ago... followed the directions to a tee and it worked perfect, except now all of a sudden I'm getting some random quick reboots. Not sure why, I downloaded Android System monitor and in the "logs" sections it shows an reoccurring error W/System.err(1884)

Any idea's??

Is there an update to the Busybox, superuser or su that would fix this?

If not I might just unroot it for now and see if that helps.
[Droid 2 Android Development] vedwed:
Great guide, will give it a go soon as my droid2 arrives tomorrow. Thanks much!
[Droid 2 Android Development] jmonte345:
Just rooted and did my first Nandroid backup. Thanks to everyone that made this possible and come one vanilla roms.
[Droid 2 Android Development] IDrinkV8:
I followed the process exactly as described and didn't work like it should. Everything went fine until execution of the exploit itself. It brought a banner up like

[*] CVE-2010-EASY blah blah blah

[+] RLIMIT_NPROC={3815, 3815}

[*] Searching for adb ...

[+] Found adb as PID 20615

[*] Spawning children. .....

/../

[*] adb connection will be reset...

The problem is it never reset the connection by itself, but instead returned to prompt but not with long awaited hash sign but regular user dollar sign.

So I tried to kill adb manually and reconnect, but I still get dollar sign prompt instead of root hash sign.

Tried to execute the exploit few more times, still to no avail.

Help please.

I hope this rootable stuff didn't get patched by the update I received like 2 days ago...

Edit:

Your screenshot shows you already had that patch applied and it still worked for you. I don't know what's wrong...

Help
[Droid 2 Android Development] darkonion:
I was getting that too. I think the phone was trying to auto update. After each reboot, my phone told me the update failed. The reason the update failed was because I removed the Mynet.apk.
[Droid 2 Android Development] darkonion:
Root is still good for 2.2.20.a955!!!
[Droid 2 Android Development] IDrinkV8:
OK, to anybody that experienced what I did in the post 3 posts up - you didn't wait long enough!!!

I did it one more time, after reading post from a guy like 3 pages back. It did the same thing - took me back to $ prompt. BE PATIENT! It's supposed to. Do not close nothing. The exploit is still working in the background. Wait until it kicks u back to DOS (C:\Blah). Wait regardless how long it takes.

PS: OP, please update first post with this info.

Thanks again, and there will be a donation coming your way for the exploit.

PS2: From what I understand, the exploit don't change nothing permanently, instead it hacks some process in RAM gaining root access. It's the further steps - copying Superuser app, busybox and of course the su tool. Without root access you couldn't cop them since you wouldn't be able to remount the file system in read-write mode. So really unrooting should be as easy as remounting file system in rw mode and deleting the three files you deployed on it.

Correct me if I'm wrong.

Thanks again
[Droid 2 Android Development] darkonion:
Hahaha. Yeah. I mentioned something about that in post #164. It does take awhile!
[Droid 2 Android Development] IDrinkV8:
The confusing part is that it's taking you back to prompt, so I thought to myself "crap, it didn't work"
[Droid 2 Android Development] darkonion:
The first time I did root, I was like... what is it doing... is it done, yet?
[Droid 2 Android Development] vandeec5:
I have been waiting 30 minutes for ./rageagainstthecage-arm5.bin to kick me out, should I keep waiting or continue on?
[Droid 2 Android Development] darkonion:
I'd go ahead and exit out. Type exit, and press enter, and read the note on #164 under ./rageagainstthecage-arm5.bin. I don't think it should take more than 10 minutes.
[Droid 2 Android Development] vandeec5:
I followed your instruction, I typed exit, got back onto dos mode, I typed adb devices and its listed BUT when I type adb shell, nothing happens the cursor just blinks...

Edit: Never Mind I seen your other instruction, hopefully this works....
[Droid 2 Android Development] vandeec5:
I get the following error now

mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system

mount: Operation not permitted.

Can someone help?
[Droid 2 Android Development] darkonion:
I remember coming across this problem. I think it was because I missed a step. I'd go ahead and exit the shell. You can probably exit the MS-DOS prompt and restart everything. Essentially the Kirby <('.'<) steps in #164. Make sure you are in your tools folder. Anyways, type exit and press enter. Then type in adb shell. Make sure you have # and not $. If not, try ./rageagainstthecage-arm5.bin steps again. Make sure you don't skip commands. I think that is why you are getting a permission error.
[Droid 2 Android Development] vandeec5:
I did the rageagainstthecage step again and it works :) finally rooted

Now to do nandroid backup and remove bloat!
[Droid 2 Android Development] darkonion:
Cool. Glad to hear.What is this nandroid thing you speak of? And if you thought the walkthrough was helpful, please consider a donation to darkonion! He needs to pay rent! And pay off the phone. Haha.
[Droid 2 Android Development] Pathian:
just wanted to confirm before I did anything else.

Is it okay to delete the install files (busybox, su, etc) from the SD card after the phone is rooted?
[Droid 2 Android Development] Deevis:
Thanks Guys!!!

To Sebastian, Karnovaran, Darkonion, and all the folks that have chimed in. Big thanks and major kudos to you all. Thanks for making this first rooting experience an easy one. Darkonion, I dont think i could of done it without your notes, cheers!
[Droid 2 Android Development] darkonion:
I would just hang onto those so when you update and root is lost, you can skip steps to reroot.
[Droid 2 Android Development] doomedromance:
THanks for all the Help!!! I'm Rooted again, but this time on a Droid2 not Droid.

and yeah....

After this part

./rageagainstthecage-arm5.bin

DO NOT TOUCH ANYTHING. Seriously. When you hit the enter key don't touch a single thing on you computer. Don't even breathe near it.

I went back to my browser was reading posts in the how to root thread.

My first attempt failed to return to c:/Droid2Root. After 10mins I woke it up and unlocked it and it showed some crazy stuff. I put it to sleep and tried to wake it again and it turned off and back on. And went to c:/Droid2Root. I did the other steps and it failed to have a # prompt it was still $

I did the whole process all over again. (Make sure you kill adb.exe from processes in task manager) Got to that point hit enter and didn't touch a thing. It took 20secs or less to get back to c:/Droid2Root and bam all the rest of it worked fine and dandy.
[Droid 2 Android Development] justarealguy:
edit: got it working, lol.
[Droid 2 Android Development] saantomoh:
Ive tried and tried tiger adv shell to work on my vista 64bit but after I upgraded to froyo it doesn't work any more. I downloaded the drivers you listed and it still wouldn't work. Is there a way to do this in the terminal on droid x?
[Droid 2 Android Development] saantomoh:
Oh by the by you mentioned a one touch root creature...do you know whenthat is going to come out?
[Droid 2 Android Development] HollowSow:
Changing Carriers

Hello guys and gals, I wanted to know, since the droid 2 has been rooted, are we now able to change the phone over to another carrier? Also, what is the use of an sbf file?
[Droid 2 Android Development] darkonion:
I am unsure about your first question, but as for the .sbf file. It is for recovery. If you did something your phone and your phone is no longer functioning, you follow the steps in the recovery tutorial and flash the sbf file to your phone to bring it back to life.
[Droid 2 Android Development] grayson11:
Help!

When I do this step

chmod 0755 rageagainstthecage-arm5.bin

it just say Unable to chmod rageagainstthecage-arm5.bin: No such file or directory

whats wrong here?

i did everything rite it up to this point that i know of please help!
[Droid 2 Android Development] darkonion:
No file there. I know that's kind of obvious. I'd do the push commands again. Make sure you type it in exactly as it is on the tutorial. Don't forget the cd command after the push commands.
[Droid 2 Android Development] ericjccna:
I just successfully rooted my Droid 2 and so far all things working top notch. Bluetooth, Wi-Fi & GPS working perfect. I followed the instructions here **xdaforums.com/showpost.php?p=7865824&postcount=164**

The first time it failed and I was typing the commands. DO NOT TYPE THE COMMANDS!! DO NOT!! DO NOT!! DO NOT TYPE!!!

Second time using cut and paste worked like a champ!

Wireless Tether is working wonderfully to. Only issue is that I can't seem to get encryption or access control working.

I LOVE MY DROID!!!!!:D
[Droid 2 Android Development] darkonion:
Yeah. I am going to add that note in. Things need to be copied exactly!
[Droid 2 Android Development] asavitzk:
Based on this I went ahead and updated it but I think I lost root access. The WiFi Tether app won't work anymore and when I go into terminal and type "SU" I get access denied.

Any ideas? Safe to re-do the whole rooting process?
[Droid 2 Android Development] TAfirehawk:
I have my Droid 2 rooted with some apps installed and running with it. But I go to "adb remount" to setup the FM radio and I get "Operation not permitted", any ideas?
[Droid 2 Android Development] darkonion:
Just reroot. Go to post #164 and start from where the first Kirby is. Directions are also on top of the page. Second or third bolded part in the post.
[Droid 2 Android Development] darkonion:
Yeah. Hold up.

Edit: You need to push the file to the sd card first.

So.. ex.

adb push su /sdcard/su

Then you need to open the shell

adb shell

Hopefully, I think, you should have # as the beginning of the command.

Then go:

mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system

Copy it over from the SD card to the phone.

cp /sdcard/su /system/bin/su

chmod it!

chmod 4755 /system/bin/su

and dismount!

mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system

And I think that will at least get you closer!
[Droid 2 Android Development] TAfirehawk:
I must be missing something obvious because going through the entire root procedure isn't helping. I still have the # prompt in adb shell so i don't run the ./rageagainstthecage-arm5.bin again, but other than that I follow the procedure exactly. Root works because I have granted access to 5-6 apps already but "adb remount" is still "remount failed: Operation not permitted".

When I try to "adb push app/FMRadio.apk /system/app" it says the system is read-only, obviously because the "remount" failed.
[Droid 2 Android Development] TAfirehawk:
I went back and copied the FM Radio files to the /sdcard like the root procedure and that worked since I didn't need "adb remount".

The fact that I can't "adb remount" isn't fixed but I do have the FM Radio working :)
[Droid 2 Android Development] soleicey:
when im in pc mode on my droid 2 it doesnt show the debugging icon, help please
[Droid 2 Android Development] karnovaran:
You have to grant superuser permissions to abd. Next time you do adb remount, see if the phone is asking for permission.
[Droid 2 Android Development] karnovaran:
Same for all of us - no worries.