yashsingh1/xdaforums huggingface dataset:
[Droid 2 Android Development] FlyersPh9:
I am trying to run this on my Macbook Pro running OSX 10.6. I followed all the steps (my phone made me run in "Charge Only", not "PC Mode", because the debugging icon would not appear. Anyways, I ran the command in terminal and it appears to have gotten stuck at the "restarting adb" part...I have included a screen shot. Any advice on what to do from here?

img827.imageshack.us/img827/6460/screenshot20100920at735.png
[Droid 2 Android Development] facelessuser:
Update: sorry read your post again. and followed the link.

Just quit the script and reboot phone, and try again. This is helping understand that this may be a exploit issue.
[Droid 2 Android Development] FlyersPh9:
Ok, so I restarted my phone and tried again. I did get a step further, but still did not work. I have included another screen shot.

img836.imageshack.us/img836/294/screenshot20100920at750.png
[Droid 2 Android Development] facelessuser:
If it hangs when it says "waiting for adb to restart". It is important to understand what it is doing.

The exploit is spawning multiple children of adbd on your phone. This means a lot of adbd process are going to be running on your phone. This slows down your phone. This is why your phone might get sluggish. It is trying to exceed a limit of children that will cause the adbd to get killed. When it does all of those children die, and adbd restarts as "root". Now if for whatever reason, I think it can start spawning those children and can't quite reach that limit on occasion.

I think the reason rebooting might help, is that you don't have as many running processes running after a reboot yet. This is just a theory.
[Droid 2 Android Development] facelessuser:
Run it one more time. I have seen the exploit not give you root on occasion. One more time might do it. Don't reboot. Just run again.
[Droid 2 Android Development] FlyersPh9:
I tried it again (but I turned off Juice Defender on my Droid 2...I thought that might have been limiting something, thus screwing it up) but still got the same error as posted above.
[Droid 2 Android Development] facelessuser:
So wait. Are you still running this in charge only mode? Because that shouldn't work.
[Droid 2 Android Development] facelessuser:
You need PC mode, it doesn't matter if you see the debug icon or not. I don't think it shows up in PC mode.
[Droid 2 Android Development] FlyersPh9:
Yes, I am still in charge mode. Should I try changing it back to PC Mode? When I change it to PC Mode, the USB Debug icon does not appear.

EDIT~ Okay, I changed it and it is currently running a second time. For some reason, it is getting stuck at the very very beginning where it says "Checking for devices..."
[Droid 2 Android Development] facelessuser:
Yes yes yes. We will spend all day with it failing if you are in charge only mode. I am actually surprised it didn't tell you that the phone was offline. I am surprised it didn't give the the device not found error.
[Droid 2 Android Development] darkonion:
I think you can get away with Charge only mode with the original process. Just need the USB debugging icon showing!
[Droid 2 Android Development] FlyersPh9:
I have it running in PC Mode (no Debug icon is appearing) and terminal is stuck at the beginning saying "Checking for devices..."
[Droid 2 Android Development] facelessuser:
We should change that. People keep using charge only to see the debug icon, but PC mode is fine. Maybe even necessary for some of the commands.
[Droid 2 Android Development] darkonion:
I just sent you a PM. Hit me up on Google Talk. I'll help you root this sucker!
[Droid 2 Android Development] facelessuser:
Quit the script. Unplug and replug your phone. Type adb devices until you see that your phone is connected, then run the script again.
[Droid 2 Android Development] facelessuser:
I sometimes had to plug my phone in twice to see it.
[Droid 2 Android Development] darkonion:
Just tested. Charge only works. Just make sure you can see the USB debugging icon!
[Droid 2 Android Development] facelessuser:
Cool. I've been testing with PC mode. What did you test on? Mac, windows, or Linux?

I may have to revisit this. There seems to be a lot of variables that seem uncertain.
[Droid 2 Android Development] darkonion:
Mac. Yeah. I think as long as USB debugging is active, I think it should be okay. But it ran perfectly on the Mac.
[Droid 2 Android Development] facelessuser:
On your Mac or the Mac of the person having issues? I am curious why some people have issues and some people don't. Like that person was/is trying and trying, and it always worked first time for me.
[Droid 2 Android Development] facelessuser:
I just tried charge only and it is fine here too. One day It wasn't working at all.
[Droid 2 Android Development] darkonion:
The person I remoted in on. On his Mac.
[Droid 2 Android Development] facelessuser:
That's weird. His original issues were while on charge only. I guess it is one of those things. Keep running the script until it works :). I don't get it.
[Droid 2 Android Development] bigtexas13:
Hey just joined the forums because of this topic. I'm going to root my Droid 2 tonight in the next hour using the Mac script. I just had a few questions for you guys before I do.

Is there an app I can download to backup my phone immediately after rooting? I was hoping to make a back up that I can restore to that contains only the rooting tools (Superuser/Busybox etc) and the backup app, removing any mods I make. All the unroot scripts I've seen so far only remove the rooting tools during the process.

I'm just looking for a way, that doesn't involve system restoring, to get my phone back to the same state it is now in case I need to go to Verizon.
[Droid 2 Android Development] facelessuser:
Yes, get Koush's bootstrap from the market. Boot strap your phone, and then boot into recovery (all from his app) There is a backup option.

Remember if it doesn't root the first time, try again. The exploit is sometimes flaky. It works great for some the first time, some have to keep trying.
[Droid 2 Android Development] bigtexas13:
Either of you guys considered making an app for the android market for root and unroot? Or a root and unroot app for the pc platforms?
[Droid 2 Android Development] facelessuser:
I have considered it. I am a firmware engineer by trade. I have lurked in these forums for a while and finally decided to help contribute something.

It's one of those things I just haven't bothered to look into yet.
[Droid 2 Android Development] darkonion:
I've tossed the idea around. But I have no programming background at all. I looked the process to create an app and let's just say that I am going to need a lot of help. Problem right now is that the rooting process isn't 100% success. Maybe 90% Makes it hard to create a reliable app.

With that said, I think an app would be an excellent next step in the progression of root for D2.
[Droid 2 Android Development] bigtexas13:
Regardless, you two made this really effortless. Finally rooted, awesome! Thanks!
[Droid 2 Android Development] facelessuser:
Thanks. It's still spotty sometimes, but I don't think it's the script as much as it is the exploit. But when it works, it sure does make things easier.
[Droid 2 Android Development] herooftimeloz:
I'm receiving the following error:

"ERROR 12: The exploit failed. No root."

I'm trying this process on Windows 7 (32-bit) and have the phone set to USB Debugging and Charge Only mode.
[Droid 2 Android Development] facelessuser:
Run it again. Sometimes the exploit fails. It has happened to me.
[Droid 2 Android Development] Captainkrtek:
Finished the article on this rooting method, it'll be on the XDA Front page portal on Wednesday.

Good work! :D
[Droid 2 Android Development] facelessuser:
Thanks. We appreciate it.
[Droid 2 Android Development] darkonion:
+1 Thanks! Glad that we are getting some recognition for our work.
[Droid 2 Android Development] jones7773:
first ...i'm Glad you guys are getting some recognition .. you're really helping a lot of people ...esp, us "new guys"

.now, reason for this post ..

i wrote yesterday that my script was hanging up when it got to adb

i reset phone (pulled battery) ..tried script again,(& again) and Voila .. it said it was successful .. however, even tho it is rooted (i think) i still get error msgs ..there is no busybox ...could it have skipped a few lines?
[Droid 2 Android Development] facelessuser:
It is possible. I would have had to see your output from the script.

I have there degrees of root.

1. Root failed.

2. You have root with errors. (This means I successfully got su with executable permissions in your system folder; this is the most important thing.)

3. You got root. (This means I did everything.)

So no fear. If you have root, you can fix any of these issues. That is the power of root.:)

My advice, you can place busybox manually from a terminal emulater, or you can go to the market. There is a free busybox installer app by Stericson . It will check if you have busybox, and will install the latest one.
[Droid 2 Android Development] facelessuser:
Heads up, I am hopefully going to release a new Mac/Linux and Windows script today. I want to address some issues.

What they will include.

1. Updated thanks. I really want to get the names of the important people who made this possible in the script. Like the author that wrote the exploit for one. darkonion, please send me a list of important names so I can give them credit.

2. On my computer I have a high success rate, but that isn't always the case on all of your computers, so I am going to tweak the code to see if it helps.

2.a. I am going to update the "waiting for adb to restart" message to tell you it can take up to 5 minutes, so you don't worry and have a gauge if something is going really wrong.

2.b. I am going to put a delay after reconnect to see if maybe I am sometimes missing that the phone has root. Some people are getting ERROR12, and I want to make sure I am giving adequate time before I check for root.

3. I am going to add the option, if you get ERROR12, I will prompt you if you would like to try the exploit again. This will be useful to save you time and frustration. You can safely run the exploit again if you don't have root. I just don't want you to run it again if you have root; it could cause your phone to reboot.

So keep a look out. I am trying for today, but don't be mad if I don't get it out till tomorrow.
[Droid 2 Android Development] darkonion:
Hit me up on GTalk. I want to see what type of problem you are getting. I'll PM you my info.
[Droid 2 Android Development] theskeptik1:
when I attempt the 1 click on windows it says adb not recognized as an internal or external command. Any ideas?
[Droid 2 Android Development] facelessuser:
You need to have adb installed. If it is installed, place the script and files in your tools folder inside your sdk folder.
[Droid 2 Android Development] theskeptik1:
Odd. I do have it installed. I may have to reinstall it I guess.
[Droid 2 Android Development] facelessuser:
If the adb is not in you environmental variables, you can not run the script from anywhere. So place the script and files in the same folder with the adb program.
[Droid 2 Android Development] theskeptik1:
How long should this script take to install? I have been stuck on the 5 seconds notification for about 10 minutes.
[Droid 2 Android Development] facelessuser:
When its counting down? Sounds like something went wrong. Quit and restart. It should never stop there.
[Droid 2 Android Development] theskeptik1:
Seems to keep getting caught up there. I will try a few more times. Thanks for the quick responses by the way.
[Droid 2 Android Development] facelessuser:
May be able to help you a little bit later tonight. Are you on Windows, or what? I will look at the script and see exactly where you are getting hung up.
[Droid 2 Android Development] theskeptik1:
Got it. I just had to do a total reset of the adb and it went right through with no errors. Thanks a bunch man.
[Droid 2 Android Development] facelessuser:
Possibly good news. When I release the scripts tonight.

Win and Mac:

will have a unroot option.

A more robust reconnect like windows.

Side note: People using Linux specifically need to put their phone in PC Mode. Charge Only does not work in linux. It seems on Mac and Windows it does.

Both:

I am trying a new way to keep adb going while we are doing the exploit. I think sleeping is probably not a good way to go. So will try out this new way and hopefully we will have a better success rate.

Update: Forgot to mention. Both all variants will now prompt you to try to root again if the process fails. If I fixed the issues with the exploit hanging, you should easily be able to try again if the first time fails. I am hoping to eliminate people having to battery pull.

Update: Windows unroot coming probably tomorrow evening.
[Droid 2 Android Development] igis10:
I get stuck at the "adb connection will be reset. restard adb server on desktop and re-login. waiting for abd to restart..."

I tried the one click method by facelessuser which was the 1 click method. I am running Windows Vista.

Is it telling me to restart this adb server? I waited for 20 minutes at this step nothing happened. :confused:
[Droid 2 Android Development] facelessuser:
PM me your email. I have a new version that may help that I would like to send you. It will take a while for darkonion to get it posted.
[Droid 2 Android Development] facelessuser:
I sent the new version to darkonion. We now wait for him to post it.

New version

Linux/Mac

-attempted to address the rage hang.

-attempted to address an occasional connect issue

-added unroot option

-added prompt when root fails to try again

-added the ability to run single steps or start from step

Windows

-attempted to address the rage hang.

-attempted to address an occasional connect issue

-added prompt when root fails to try again

-maybe other stuff I forgot
[Droid 2 Android Development] darkonion:
I am in the process of uploading to the server. Same link, different file!
[Droid 2 Android Development] facelessuser:
Please post if you are on windows, mac, linux and if it is working. If people post that it is working, we can know if we are fixing the issues.
[Droid 2 Android Development] No I.D.:
One step root for Windows worked perfectly on the official Froyo for Droid X (2.3.15). Thank you, gentlemen!!!
[Droid 2 Android Development] thepolishguy:
+1000 same here. bless you.
[Droid 2 Android Development] antintyty:
said it worked but no root access with Titanium Backup.....
[Droid 2 Android Development] facelessuser:
Does it work with anything else? Did the script give any errors with the success message? I am curious if it got busybox on your phone or not.
[Droid 2 Android Development] antintyty:
no busy box....for the X
[Droid 2 Android Development] facelessuser:
Hmm, I didn't know it worked for the X, this is cool (makes sense though, same hardware). Okay, if all your missing is busybox, but you have root, we can easily fix this.

There is a program on the market called busybox installer by stericson. It can install busybox for you.

I will revisit this issue in my script. I am launching these commands right after each other. It is possible I need to put a wait between the commands in case the media is busy. Which may be why it failed for you.
[Droid 2 Android Development] mstras:
Is there also an easy unroot method to accompany this for the Droid 2/Droid X Root?
[Droid 2 Android Development] facelessuser:
For Mac and Linux, yes, it is already there. I just haven't done it yet for windows, but it is on the way when I get time. My Priority was working on reliability issues for when this made it to the XDA Portal. There were still some major quirks I was ironing out, but I think I got the major ones. Time will tell.

So, keep an eye out for the easy unroot. It will be in the same script. You just have to send in the parameter "unroot" when you launch the script. I'll have darkonion make it clear in the first post when it is official.
[Droid 2 Android Development] mstras:
facelessuser, Thank you so much for your help. I appreciate all of the hard work you and the other devs have put into this. Thank you also for the quick reply, I will be on the look out.
[Droid 2 Android Development] briankeith513:
I have the exact same issue? Where do I get the adb file that needs to be installed?
[Droid 2 Android Development] facelessuser:
On the opening page, first post it lists the requirements. I should really add a check for this. ADB which is found in the tools folder of the SDK, allows your computer to interface with your phones.

ADB:

Android-SDK for your operating system which can be found here:

http://developer.android.com/sdk/index.html

If you are on windows, you need the Moto Drivers on the first page as well.
[Captivate Accessories] tamanaco:
I'm looking for a "small and lightweight" auxiliary battery or charger that I can use when I have no access to an AC outlet to preserve the phone's battery charge. A small device that I can connect to the microUSB port of the Captivate with a short USB cable while I watch my movies. Preferably with a built-in rechargeable battery, but would consider a device that can take AA or AAA rechargeables. I know I can get a couple extra phone batteries with a charger for a few $$$ in eBay, but I want something I can take out of my briefcase and in a second connect it to the phone without the inconvenience of having to remove my Amzer Argyle case and the back cover of the phone. I'm afraid I'm going to stretch my phone case out shape by taking it off and putting it on, mess up (loosen) the locking mechanism of the back cover or will end up, somehow, bending the simulated carbon fiber back cover. Not to mention the fear of dumping my coffee on the internals of the phone while it sits with the back exposed on the food tray of a plane/train/bus or on whichever surface I happen to be having my coffee. The icing on the cake would be if this auxiliary power source could also serve as a phone stand.

Thanks in advance for your suggestions.
[Captivate Accessories] alphadog00:
I ordered one of these - there are other variations; but this is 4000mAh (so almost 3 times our current battery), The USB port is a full 1A, and will also charge my camcorder battery. They do make one with 2 USB ports:

http://www.amazon.com/gp/product/B0029U2WTG/ref=oss_product

It was $25 when i ordered it last week - now it is more.
[Captivate Accessories] jANjALANi:
Tekkeon MP1550

I've been using this to charge several usb devices on the go. i had it for several years now. its better if you pair it with sanyo eneloops.

its $14.99 @ newegg $22.30 on amazon
[Captivate Accessories] tamanaco:
Many thanks for your suggestions... but is there anything smaller? That Energizer XP4000 looks like an excellent option at $25, but at $50 it is a little too big an expensive.

Edit:

I just ran across the Duracell Powersource Mini.... Anyone using this with a Captivate? Also, does anyone have any details on the specs of the battery in this powerpack? I could not even find any details in the Duracell site.

Amazon

Duracell

I also found this one, but for $1.49 I don't know if it'll end up killing the phone. But it could be nice rechargeable AA batteries.
[Captivate Accessories] alphadog00:
I won't buy anything that I can't find tech specs on - so the Duracell unit could be 1000mAh or 3000mAh - for the price i would say it is around 1000. The 2 AA chargers have to up the 3V to 5V and so the best available power is about 1000 mAh (i base this on the altoids chargers specs using 2 2500mAh AA batteries).

If all you want is a 1000 mAh in a small form factor, Target sells one (the Energizer XP 1000) in the store for about $20 with a bunch of tips. Keep in mind that our batteries are 1500 mAh so you won't get a full charge.
[Captivate Accessories] tamanaco:
The Duracell appears to be the exact same device as the Xantrex Technologies 852 2051 Xpower Mobile Mini. If this is the case, then it appears to be a 3000mAh device. I like this charger because it has a built-in mini USB connector and a separated regular USB which makes it very convenient. I wonder who the OEM is... Duracell or Xantrex?

I also came across the IOGEAR Gear Juice Mobile, but based on some of the users' reviews it appears to have have 2000mAh rechargeable battery.
[Captivate Accessories] alphadog00:
I saw that one that looked like the Duracell but i could not be sure. Wherever you buy make sure you can return if it is not what you want.

It seems hard to find much that is 1500 mah or larger without getting to big.
[Captivate Accessories] MasterN02:
I have attached the Tech Specs for you!

Sorry for the crappy quality...the color original exceeded the upload size limit.
[Captivate Accessories] alphadog00:
It is good enough;

The good news is that Xantrex makes both and they are 3Ah. The only down side is that you are limited to .5A charge - same as USB. I picked the Energizer as it is capable of 1A output, although our phones only draw about 700 mA max.

Wait one other downside - miniUSB not microUSB so it won't fit our phones without an adapter. This must be an "old" product as the spec sheet says it fits "New Motorola phones such as RAZR and ROKR" neither are made any more.
[Captivate Accessories] tamanaco:
Given that the Xantrex appears to be an old product I have continued to look around for an auxiliary power source. I found the Kensington K38056US which has a microUSB and a MiniUSB output connectors and uses a regular built-in USB connector to charge. So the element of convenience is very high given that it can also be charged with the Captivate charger. Only thing is that the battery is 1200 mAh, but it appears to have an output of up to 1000 mAh. Amazon has it for $30. The specs sheet says that it started shipping on 5/1/10 so this one is a "fairly" new device.

In terms of power I have not yet found anything that matches the Energizer XP4001 for its size, but it is a little heavier than the Kensington (5.4 onz vs. 4.0 ) and you also have to carry an additional AC adapter.

The search continues...
[Captivate Accessories] kothrud123:
Splash Intense 5400mAh External Battery Pack

Anyone tried this for the Captivate? at 3.2 oz weight and dual charging it looks very portable!

Splash Intense 5400mAh External Battery Pack
[Captivate Accessories] waghoba:
hey...sorry for irrelevant posting...but your name sounds familiar ..! are you from Pune?

btw Splash Intense 5400mAh should work with captivate, 5400mAh is lot of power, i guess it can recharge captivate at least 3 times considering its 1500mAh battery..