Android Forums Command Prompt : Adb Devices error
 Droid X - All Things Root Rooting, ROMS, Overclocking, etc.

July 23rd, 2010, 07:46 PM   #1 (permalink)
Member

Join Date: Feb 2010
Posts: 155

Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 7 Times in 5 Posts
Command Prompt : Adb Devices error

When I type adb devices, it comes up with this error : ' adb ' is not recognized as an internal or external command, operable program, or batch file.

I already installed the adb drivers, and Windows told me the drivers updated successfully. Any idea why I am getting this error? Thanks in advance, I hope to be rooted by the end of the night!

July 23rd, 2010, 07:51 PM   #2 (permalink)
Senior Member

Join Date: May 2010
Location: Elkridge, Maryland
Posts: 2,088

Device(s): Fascinate; Droid 1: w/ bb 0.5
Carrier: Not Provided

Thanks: 98
Thanked 244 Times in 198 Posts

is there a # in the beginning of the line?
__________________
This account may be run by a bot

July 23rd, 2010, 07:55 PM   #3 (permalink)
Senior Member

Join Date: Oct 2009
Location: Central NY
Posts: 1,412

Device(s): ...
Carrier: Not Provided

Thanks: 23
Thanked 71 Times in 60 Posts

you aren't in the correct folder that has the "adb" application
you have to change directories to where ever you unzipped the Android SDK, then go into the Tools folder

July 23rd, 2010, 07:58 PM   #4 (permalink)
Member

Join Date: Feb 2010
Posts: 155

Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 7 Times in 5 Posts

Oh, I thought I just had to open up the command prompt and type that in. So how do I change directories in the command prompt? Sorry for being such a noob, I'm just excited at possibly rooting!

July 23rd, 2010, 08:00 PM   #5 (permalink)
Senior Member

Join Date: Oct 2009
Location: Central NY
Posts: 1,412

Device(s): ...
Carrier: Not Provided

Thanks: 23
Thanked 71 Times in 60 Posts

the command is cd (folder name)
so it would be, for example, cd \Windows..
That's not the location, just an example. I don't know the location you put that folder to give you the exact command line.

July 23rd, 2010, 08:00 PM   #6 (permalink)
Senior Member

Join Date: May 2010
Location: Elkridge, Maryland
Posts: 2,088

Device(s): Fascinate; Droid 1: w/ bb 0.5
Carrier: Not Provided

Thanks: 98
Thanked 244 Times in 198 Posts

Quote:
 Originally Posted by Howie you aren't in the correct folder that has the "adb" application you have to change directories to where ever you unzipped the Android SDK, then go into the Tools folder
I am having a problem in order for me to run mount -o.....etc( to mount system as R/W) I have to do adb shell and then I get the #. When I try to run a adb push it says " adb: not found"

July 23rd, 2010, 08:05 PM   #7 (permalink)
Member

Join Date: Feb 2010
Posts: 155

Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 7 Times in 5 Posts

I put it in C:\DroidX

So would I type cd\computer\C:\DroidX\adb devices

? I know I'm doing something wrong, is it case sensitive?

July 23rd, 2010, 08:12 PM   #8 (permalink)
Senior Member

Join Date: May 2010
Location: Elkridge, Maryland
Posts: 2,088

Device(s): Fascinate; Droid 1: w/ bb 0.5
Carrier: Not Provided

Thanks: 98
Thanked 244 Times in 198 Posts

ok so I
cd C:\Users\Jeff\Desktop\tools
mount -o remount,rw -t yaffs2 /dev/mtd/mtdblock4 /system

All I want to do is a push to the system

July 23rd, 2010, 08:20 PM   #9 (permalink)
Member

Join Date: Feb 2010
Posts: 155

Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 7 Times in 5 Posts

I downloaded the ADB drivers, but the file, did not come with any ADB application. What am I missing here? Thats why I had no idea what you guys were talking about when you referred to the 'Tools' folder.

July 23rd, 2010, 08:21 PM   #10 (permalink)
Senior Member

Join Date: Oct 2009
Location: Central NY
Posts: 1,412

Device(s): ...
Carrier: Not Provided

Thanks: 23
Thanked 71 Times in 60 Posts

you are both having the same problem. Did yous download the Android SDK from android.com?

If you did you aren't getting into the proper directory. Use "Computer" in windows to navigate around and location it. Take note of all the directory names you come across before you find adb.

After that go to the command line and type in "cd \(foldername)\(foldername) etc until you are in the proper location. (I don't remember the exact name of the folder that it unzips as but the word android was in it for me.)

July 23rd, 2010, 08:23 PM   #11 (permalink)
Senior Member

Join Date: May 2010
Location: Elkridge, Maryland
Posts: 2,088

Device(s): Fascinate; Droid 1: w/ bb 0.5
Carrier: Not Provided

Thanks: 98
Thanked 244 Times in 198 Posts

Quote:
 Originally Posted by Howie you are both having the same problem. Did yous download the Android SDK from android.com? If you did you aren't getting into the proper directory. Use "Computer" in windows to navigate around and location it. Take note of all the directory names you come across before you find adb. After that go to the command line and type in "cd \(foldername)\(foldername) etc until you are in the proper location. (I don't remember the exact name of the folder that it unzips as but the word android was in it for me.)
So its not in the tools folder of the android sdk. I see adb.exe in it

July 23rd, 2010, 08:27 PM   #12 (permalink)
Senior Member

Join Date: Oct 2009
Location: Central NY
Posts: 1,412

Device(s): ...
Carrier: Not Provided

Thanks: 23
Thanked 71 Times in 60 Posts

Quote:
 Originally Posted by droider13 So its not in the tools folder of the android sdk. I see adb.exe in it
So you do see adb.exe ? That file is the one you are trying to run in the command line... you need to type in that exact path to get there using 'cd'. Tell me the location of that file and I'll try my best to help you with the command line structure.

July 23rd, 2010, 08:29 PM   #13 (permalink)
Member

Join Date: Feb 2010
Posts: 155

Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 7 Times in 5 Posts

ok thanks, looks like I got one step further! I type in 'adb devices' and it showed this :

*daemon started successfully*

List of devices attached

And thats it. So its not detecting my Droid X, correct?

July 23rd, 2010, 08:31 PM   #14 (permalink)
Senior Member

Join Date: Oct 2009
Location: Central NY
Posts: 1,412

Device(s): ...
Carrier: Not Provided

Thanks: 23
Thanked 71 Times in 60 Posts

did you turn on USB debugging on the device?

July 23rd, 2010, 08:35 PM   #15 (permalink)
Member

Join Date: Feb 2010
Posts: 155

Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 7 Times in 5 Posts

yeah, I don't know why its not even recognizing my Droid anymore under Devices with removable storage. When I plug my droid into the USB port of my laptop, it comes up with a 'Found New Hardware' box. It says 'Windows Needs to Install Drivers for your MB810'. Should I restart my computer?

July 23rd, 2010, 08:38 PM   #16 (permalink)
Senior Member

Join Date: Oct 2009
Location: Central NY
Posts: 1,412

Device(s): ...
Carrier: Not Provided

Thanks: 23
Thanked 71 Times in 60 Posts

I'd restart the computer, make sure Droid X is in "PC Mode" instead of storage, and verify drivers installed successfully after the reboot.

July 23rd, 2010, 08:38 PM   #17 (permalink)
Senior Member

Join Date: May 2010
Location: Elkridge, Maryland
Posts: 2,088

Device(s): Fascinate; Droid 1: w/ bb 0.5
Carrier: Not Provided

Thanks: 98
Thanked 244 Times in 198 Posts

Quote:
 Originally Posted by Howie So you do see adb.exe ? That file is the one you are trying to run in the command line... you need to type in that exact path to get there using 'cd'. Tell me the location of that file and I'll try my best to help you with the command line structure.
So here is how it is. Tools folder on the desktop

mount -o remount,rw -t yaffs2 /dev/mtd/mtblock4 /system (mount system R/W?
adb push droidxsystemapps (in the tools folder) /system/app

July 23rd, 2010, 08:42 PM   #18 (permalink)
Senior Member

Join Date: Oct 2009
Location: Central NY
Posts: 1,412

Device(s): ...
Carrier: Not Provided

Thanks: 23
Thanked 71 Times in 60 Posts

Quote:
 Originally Posted by droider13 So here is how it is. Tools folder on the desktop cd C:\Users\Jeff\Desktop\tools (point at adb.exe) adb shell mount -o remount,rw -t yaffs2 /dev/mtd/mtblock4 /system (mount system R/W? adb push droidxsystemapps (in the tools folder) /system/app adb: not found
what is droidxsystemapps? Is that a directory/folder of files?
The "not found" means it doesn't know what's being asked of it. It thinks the "droidxsystemapps" is a file, but looks to be a folder. You'd have to tell it adb push droidxsystemapp\file1.apk (assuming it's apks)...etc

hope that helps. And remember adb is a linux command so it is caSe SenSitive

 The Following User Says Thank You to Howie For This Useful Post: D13 (July 23rd, 2010)
July 23rd, 2010, 08:46 PM   #19 (permalink)
Senior Member

Join Date: May 2010
Location: Elkridge, Maryland
Posts: 2,088

Device(s): Fascinate; Droid 1: w/ bb 0.5
Carrier: Not Provided

Thanks: 98
Thanked 244 Times in 198 Posts

Quote:
 Originally Posted by Howie what is droidxsystemapps? Is that a directory/folder of files? The "not found" means it doesn't know what's being asked of it. It thinks the "droidxsystemapps" is a file, but looks to be a folder. You'd have to tell it adb push droidxsystemapp\file1.apk (assuming it's apks)...etc hope that helps. And remember adb is a linux command so it is caSe SenSitive
Thank you so much
Wait second still not working

 Last edited by D13; July 23rd, 2010 at 08:51 PM.
July 23rd, 2010, 08:54 PM   #20 (permalink)
Senior Member

Join Date: May 2010
Location: Elkridge, Maryland
Posts: 2,088

Device(s): Fascinate; Droid 1: w/ bb 0.5
Carrier: Not Provided

Thanks: 98
Thanked 244 Times in 198 Posts

Quote:
 Originally Posted by Howie what is droidxsystemapps? Is that a directory/folder of files? The "not found" means it doesn't know what's being asked of it. It thinks the "droidxsystemapps" is a file, but looks to be a folder. You'd have to tell it adb push droidxsystemapp\file1.apk (assuming it's apks)...etc hope that helps. And remember adb is a linux command so it is caSe SenSitive
I cant run any adb commands it seems after I run adb shell

July 23rd, 2010, 08:57 PM   #21 (permalink)
Member

Join Date: Feb 2010
Posts: 155

Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 7 Times in 5 Posts

Ok I restarted my computer. When I plug my Droid into USB, it still comes up with the 'Found New Hardware'. It never did this before I started this whole root process, so I think I know what the problem is. When I initially installed the ADB drivers, I believe I did the process wrong. I must have overwritten the drivers needed for the Droid to connect with my PC. Any idea what to do now? It does not detect my droid at all.

July 23rd, 2010, 09:27 PM   #22 (permalink)
Member

Join Date: Feb 2010
Posts: 155

Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 7 Times in 5 Posts

I reinstalled the Motorola drivers, and now my PC recognizes my droid again. Adb devices, and it listed my droid. However, the next step c:\droidx\adb push Superuser.apk /sdcard/Superuser.apk results in this error :

'adb' is not recognized as an internal or external command, operable program, or batch file.

Was I suppose to Merge the DroidXRoot folder along with the ADB folder? In the instructions, it tells you to download these files, but I did not know if it mattered where I put them on my PC. I have both of the zips I was supposed to download in seperate folders. Both the ADB and DroidXRoot folders are seperate. Is this my mistake?

July 24th, 2010, 09:27 AM   #23 (permalink)
Senior Member

Join Date: Oct 2009
Location: Central NY
Posts: 1,412

Device(s): ...
Carrier: Not Provided

Thanks: 23
Thanked 71 Times in 60 Posts

Quote:
 Originally Posted by NickBaragona I reinstalled the Motorola drivers, and now my PC recognizes my droid again. Adb devices, and it listed my droid. However, the next step c:\droidx\adb push Superuser.apk /sdcard/Superuser.apk results in this error : 'adb' is not recognized as an internal or external command, operable program, or batch file. Was I suppose to Merge the DroidXRoot folder along with the ADB folder? In the instructions, it tells you to download these files, but I did not know if it mattered where I put them on my PC. I have both of the zips I was supposed to download in seperate folders. Both the ADB and DroidXRoot folders are seperate. Is this my mistake?
is the adb program in the droidx folder? Also, are you running that command from a directory that the Superuser.apk is in?

For example: cd in to the adb location. then run adb push \location\of\your\app\to\be\pushed.apk /sdcard (you don't have to do /sdcard/Superuser.apk because it will just assume to keep the same file name)

July 24th, 2010, 05:48 PM   #24 (permalink)
Junior Member

Join Date: Jul 2010
Posts: 51

Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 5 Times in 5 Posts

Quote:
 Originally Posted by droider13 I cant run any adb commands it seems after I run adb shell
the "adb" commands are "C:\" prompt commands only. Once you run "adb shell" you're into the linux command line on your phone. It won't recognize adb commands.

What you want to do is "adb push" whatever files you want on your phone to the sd card (or you can just use the windows exlporer to copy and paste the files to your phone's sd card.)

Once you have all the files on the sd card, THEN "adb shell". You'll have a "$" prompt. Type in "su" and you'll get a "#" prompt (if you're already rooted). Keep an eye on your phone's screen because it may ask you to allow root access. From the "#" prompt you can copy "cp", move "mv", remove "rm" files, and mount as read/write "rw" or read-only "ro" If you don't see a "C:\" (or whatever letter your sdk tools are on) on the command line, you definitely can't use "adb <whatever>". If you see a "$" or a "#" your command line is actually looking at the phone's file system, which is linux-based, and "adb <whatever>" won't work there. (This all assumes you're using windows.)

HTH, Dave

 The Following User Says Thank You to Fenotyp For This Useful Post: D13 (July 24th, 2010)
July 24th, 2010, 07:10 PM   #25 (permalink)
Senior Member

Join Date: May 2010
Location: Elkridge, Maryland
Posts: 2,088

Device(s): Fascinate; Droid 1: w/ bb 0.5
Carrier: Not Provided

Thanks: 98
Thanked 244 Times in 198 Posts

Thanks man I new it was something like that

January 20th, 2011, 10:21 PM   #26 (permalink)
New Member

Join Date: Jan 2011
Posts: 1

Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts

i have a mytouch 3g first edition and i type adb devices in cmd and it only says list of "available devices" does not show my phone. any ideas?

thanks

August 9th, 2011, 05:23 AM   #27 (permalink)
Junior Member

Join Date: Jul 2011
Posts: 19

Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts

list of devices attached
? devices
i get this error , i have installed adb driver
why is it sooooo

August 9th, 2011, 05:29 AM   #28 (permalink)
Junior Member

Join Date: Jul 2011
Posts: 19

Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
? devices

hiee guys
i own micromax a60
i have installed adb drivers of it
when i use
i get a error
-------------------
list of devices attached
? devices
--------------------
why is it soooo

August 9th, 2011, 07:52 AM   #29 (permalink)
Senior Member

Join Date: May 2010
Posts: 3,335

Device(s): Moto X, Nexus 7
Carrier: Not Provided

Thanks: 89
Thanked 1,543 Times in 794 Posts

Hi nikhil -

This is the Droid X forum, so we won't be a lot of help to you.

What I can tell you is that you need two things to get ADB to recognize your device:

- The manufacturer-provided drivers for your device
- And turn on USB debugging on your device (go to Settings > Applications > Development, check off USB Debugging)

August 14th, 2011, 08:34 PM   #30 (permalink)
New Member

Join Date: Aug 2011
Posts: 2

Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts

Hi all,

All the above advice have been terrific; however, I've run into the problem of my command prompt in Windows 7 x64 not being able to recognize "adb" but ok with "adb.exe". Any insight? Thanks in advance for your help.

Drew

August 14th, 2011, 10:08 PM   #31 (permalink)
not really so scary

Join Date: Mar 2010
Location: Indy
Posts: 17,441

Device(s): LG Nexus 5, Samsung Galaxy Nexus, Asus Nexus 7, Moto Droid X, HTC Droid Eris
Carrier: T-Mobile

Thanks: 32,963
Thanked 14,994 Times in 7,359 Posts

Quote:
 Originally Posted by droo Hi all, All the above advice have been terrific; however, I've run into the problem of my command prompt in Windows 7 x64 not being able to recognize "adb" but ok with "adb.exe". Any insight? Thanks in advance for your help. Drew
Drew, welcome to the AndroidForums.

Sounds like either Windows has strangely lost its association of programs with a .exe extension or perhaps you have another file in your directory named "adb" that was mistakenly created (which would explain why an explicity reference to adb.exe works).

If you type a "dir adb*" command, do you see more than one item displayed?

Also, are you trying to run the adb command from the same directory in which it lives or do have its path added to the PATH environment variable?

Anyway, some things to check...good luck!

Cheers!

August 14th, 2011, 10:46 PM   #32 (permalink)
New Member

Join Date: Aug 2011
Posts: 2

Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts

Hi scary alien =)

Thanks for the response. My problem appears to be not only with adb, but any .exe file. Example - "java" is not recognized, but "java.exe" is. I'm trying to root my phone and hence I'm concerned that there is something more fundamental wrong and didn't want to proceed with the possibility of bricking my phone.
The Path is ok; I can call up "adb.exe" from any directory. The "dir adb*" doesn't seem to work; it appears to only search for adb files in the directory I'm immediately in.
Drew

August 14th, 2011, 10:58 PM   #33 (permalink)
not really so scary

Join Date: Mar 2010
Location: Indy
Posts: 17,441

Device(s): LG Nexus 5, Samsung Galaxy Nexus, Asus Nexus 7, Moto Droid X, HTC Droid Eris
Carrier: T-Mobile

Thanks: 32,963
Thanked 14,994 Times in 7,359 Posts

Quote:
 Originally Posted by droo Hi scary alien =) Thanks for the response. My problem appears to be not only with adb, but any .exe file. Example - "java" is not recognized, but "java.exe" is. I'm trying to root my phone and hence I'm concerned that there is something more fundamental wrong and didn't want to proceed with the possibility of bricking my phone. The Path is ok; I can call up "adb.exe" from any directory. The "dir adb*" doesn't seem to work; it appears to only search for adb files in the directory I'm immediately in. Again, thanks for your help! Drew
Drew, hey no problem...I wish I could have been more help...

I did a quick Google search of "windows lost exe file association" and found more stuff (and scary stuff) than you probably want to see. Try this search and see all the results you get...you'll have to sift through the stuff that seems to match your circumstances (I would hate to hazard a guess here...remote debugging is such a pain, LOL).

Good luck with your rooting efforts!

By the way, you know this is the Droid X forum, right? I'm guessing you have a different device (which is cool, but we should probably try to throw in a DX reference to keep the Guides (LOL=me ) or Mods () happy:

"Hey, the Droid X is a pretty sweet device, eh" -- mission accomplished

Cheers!

January 3rd, 2012, 08:35 PM   #34 (permalink)
New Member

Join Date: Jan 2012
Posts: 1

Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts

When you install the sdk file, the adb is no longer in the "adroid-sdk/tools" folder. There is a text document in the android-sdk folder saying it moved to "android-sdk/platform-tools". My "android-sdk" folder is in my "program files" in a folder I named "android."

so, for example: cd c:\program files\android\android-sdk\platform-tools\

I had the same issue today, then i found that note in the android-sdk folder about the adb stuff moving. So, you must use "platform-tools" folder.
If you do not have Android-SDK", search for it on google. It will show up. I hope this helps.

January 3rd, 2012, 08:58 PM   #35 (permalink)
not really so scary

Join Date: Mar 2010
Location: Indy
Posts: 17,441

Device(s): LG Nexus 5, Samsung Galaxy Nexus, Asus Nexus 7, Moto Droid X, HTC Droid Eris
Carrier: T-Mobile

Thanks: 32,963
Thanked 14,994 Times in 7,359 Posts

Quote:
 Originally Posted by GiMortal5 When you install the sdk file, the adb is no longer in the "adroid-sdk/tools" folder. There is a text document in the android-sdk folder saying it moved to "android-sdk/platform-tools". My "android-sdk" folder is in my "program files" in a folder I named "android." so, for example: cd c:\program files\android\android-sdk\platform-tools\ I had the same issue today, then i found that note in the android-sdk folder about the adb stuff moving. So, you must use "platform-tools" folder. If you do not have Android-SDK", search for it on google. It will show up. I hope this helps.
Welcome to the AndroidForums, GiMortal5.

Yeah, subsequent to the above post, I whipped-up some notes about how to get the adb utility installed:

This might be easier for folks (also, the middle section has a downloadable .zip file that has the adb and fastboot utilities for Windows, Mac, and Linux platforms).

Cheers!

 Android Forums Command Prompt : Adb Devices error