• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Command Prompt : Adb Devices error

NickBaragona

Well-Known Member
Feb 6, 2010
155
7
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!
 
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":thinking:
 
Upvote 0
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.)
 
Upvote 0
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:thinking:
 
Upvote 0
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

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
 
Upvote 0
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
 
  • Like
Reactions: D13
Upvote 0
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:D:D:D:D
Wait second still not working:(:(:(:eek:
 
Upvote 0
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
 
Upvote 0
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.
 
Upvote 0
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?
 
Upvote 0
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)
 
Upvote 0
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
 
  • Like
Reactions: D13
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones