ADB error - EVO 4G Q&A, Help & Troubleshooting

I have done everything accordingly but I keep getting this error: 'adb' device is not recognized as an internal or external command, operable program or batch file after typing adb device..... plz help!!

You downloaded the sdk and your device drivers?

If you ran the updates, look in your andoid-sdk\tools\ folder and I bet there's a txt file that says adb tools has moved, or adb.exe or something like that.
Go to the folder where it moved to. Copy the path to that folder.
Go to Control panel\System\Advanced Settings\Environmental Variables and then double click on path in the lower window. If there's something in there, add ;<path to adb tools>
For me, it's C:\Android\android-sdk\platform-tools

The easiest way I got adb to work is when I rooted my friends inspire 4g the .zip came with adb and the program and some other stuff so I unzipped it and went to CMD and typed adb and it worked
Sent from my PC36100 using XDA App

HipKat said:
If you ran the updates, look in your andoid-sdk\tools\ folder and I bet there's a txt file that says adb tools has moved, or adb.exe or something like that.
Go to the folder where it moved to. Copy the path to that folder.
Go to Control panel\System\Advanced Settings\Environmental Variables and then double click on path in the lower window. If there's something in there, add ;<path to adb tools>
For me, it's C:\Android\android-sdk\platform-tools
Click to expand...
Click to collapse
yeah I found a .txt saying exactly that n explaining how to get it, im all good now =) now all I need to do is learn to use adb..... being a newb is hard work jeje thanx every1 for ur replies

No prob.....
There are a lot of tutorials on the web. Google is your friend lol

HipKat said:
No prob.....
There are a lot of tutorials on the web. Google is your friend lol
Click to expand...
Click to collapse
Yeah dats exactly what I used, google (its like everybody always has it in them to always use google ) anyways I found one here on xda n I gotta say its pretty simple once u get used to it =)
-Rr!cAn 3v0

Related

[Q] ADB help!!

So I have no idea why my G2 isn't being found with the htc sync but its not. I followed this thread here (http://forum.xda-developers.com/showthread.php?t=865685) I made sure i had the platform-tools installed before changing the path. I think this is the problem I am having. There are 2 paths that appear; One in user variables and then one in system variables. I have tried altering both but I am having no luck. Does anyone have any clue to what is going on?
HTC Sync will install the correct USB drivers for your G2. Although you cannot actually *run* HTC Sync with your G2 unless it is running a Sense (Desire Z) ROM. So just install it but don't try to actually run it or sync with it.
It's the System Variables path that you want to change, to add the appropriate directories. This just lets you run adb from any directory on your PC. Even if you haven't got it added, it should still work if you "cd" to the directory where adb resides (in which case you will need to put any files into there that you wish to "push" to your phone).
What is the problem you're having, is it saying "no internal command" or similar ?
DressedUpPanda said:
So I have no idea why my G2 isn't being found with the htc sync but its not. I followed this thread here (http://forum.xda-developers.com/showthread.php?t=865685) I made sure i had the platform-tools installed before changing the path. I think this is the problem I am having. There are 2 paths that appear; One in user variables and then one in system variables. I have tried altering both but I am having no luck. Does anyone have any clue to what is going on?
Click to expand...
Click to collapse
The PATH issue, relates to ADB, if you are running into errors like:
'adb' is not recognized as an internal or external command
Click to expand...
Click to collapse
When executing ADB commands that is your issue, it can be resolved by adding the path where ADB lives to either your user or system PATH in Windows. The PATH is irrelevant if you are running ADB from the folder where the ADB files live.
The other (common) issue is drivers, where ADB is working but won't see your device. Do you see an "ADB Device" or similar with a yellow icon in your device manager when your phone is connected to your PC? If so you don't have the correct driver loaded. The only reason you install HTC Sync is to load this driver but the driver can also be loaded separately.
Sorry to hi-jack this thread, and since I'm new to adb I might as well use this.
I have adb running, did the file paths and everything. I'm just trying to test it out, since I'm already rooted using visionaryr13 as well as s-off. Went back and gfree over that, and I've also verified through terminal emulator on my phone, but I'm just testing my skills with adb and failing miserably. I Have d/l the verify file, and unzipped in a folder inside my downloads folder I might add.
When it says:
"
VERIFY (using "gfree_verify")
Now you can try using a new SIM card to verify that it worked.
In addition you can use gfree_verify to verify the state of your locks.
Download gfree_verify.zip from gfree_verify_v01.zip
ON YOUR PC:
Unzip gfree_verify_v01.zip to a place on your computer. Navigate to where the file is on your computer, and type:
$ adb push gfree_verify /data/local
"
I'm having a problem with the navigate to where the file is on your computer and type. I have cmd open, and have tried everyway but the right way to push this through. This is the error I'm getting.
cannont stat 'gfree_verify': no file or directory
EDIT: I got it and I'm sure everyone is laughing at this idiot. So in the cmd prompt you have to navigate to where you put the folder, then push the file to your phone, DUH!
OK, stupid question number two, since I answered number 1.
When you are in a adb shell in your cmd, how do you get out of it besides exiting cmd?
mrbmg said:
When you are in a adb shell in your cmd, how do you get out of it besides exiting cmd?
Click to expand...
Click to collapse
Type "exit".
ty ty.
Ok so I updated something in adb and it's not working. LOL, well restarted, and now the sdk manager is updating some more stuff so hopefully that is the reason I was not getting in.
EDIT: everything is working now.
Ty stevie, really appreciate all your hard work helping us noobies man!
steviewevie said:
HTC Sync will install the correct USB drivers for your G2. Although you cannot actually *run* HTC Sync with your G2 unless it is running a Sense (Desire Z) ROM. So just install it but don't try to actually run it or sync with it.
It's the System Variables path that you want to change, to add the appropriate directories. This just lets you run adb from any directory on your PC. Even if you haven't got it added, it should still work if you "cd" to the directory where adb resides (in which case you will need to put any files into there that you wish to "push" to your phone).
What is the problem you're having, is it saying "no internal command" or similar ?
Click to expand...
Click to collapse
Ya my problem is that when I finally get to do the commands it tells me that "adb is not recognized as an internal or external command.
@raitchison- I checked my device manager and it says that i have the most current driver for the phone. Unfortunately it doesn't say anything about 'adb' it shows my 'portable devices' then into my 'E:/' drive and in the details there it stats 'Android phone'
DressedUpPanda said:
Ya my problem is that when I finally get to do the commands it tells me that "adb is not recognized as an internal or external command.
@raitchison- I checked my device manager and it says that i have the most current driver for the phone. Unfortunately it doesn't say anything about 'adb' it shows my 'portable devices' then into my 'E:/' drive and in the details there it stats 'Android phone'
Click to expand...
Click to collapse
You just need to add the correct directories onto the end of the path in System Variables. Go right to the end of the path, and then separated by semi-colons (do not put spaces in) add the two pathnames of the tools and platform-tools folder of the Android SDK. If you have done that and it is still not working, copy and paste the path variable up here and we can try checking it.
As I said, you could "cd" to the folder with adb in it, and then run "adb devices" from there, and it should work. But setting up the path will make it more convenient.
steviewevie said:
You just need to add the correct directories onto the end of the path in System Variables. Go right to the end of the path, and then separated by semi-colons (do not put spaces in) add the two pathnames of the tools and platform-tools folder of the Android SDK. If you have done that and it is still not working, copy and paste the path variable up here and we can try checking it.
As I said, you could "cd" to the folder with adb in it, and then run "adb devices" from there, and it should work. But setting up the path will make it more convenient.
Click to expand...
Click to collapse
Ok well here is the path that i have set up.
- C:\AndroidSDK\tools;C:\AndroidSDK\platform-tools
I saved the file right to my "C" drive so thats why i didn't go to the program files. I also changed the name of the folder so it was easier to type.
Edit: I got it to finally recognize my device. I went back to my path and found that i had spaced in between my ';' and 'C:/' so thank you very much Stevie on making me double check it!!!

Android-SDK?

Ok, long story short... I had to completely wipe/format my hard drive on my computer so I lost ever single thing I had.
I completely forgot everything I needed to install for my phone as far as things like ADB. I think it was Android-SDK but I really can't remember.
Can someone help get me going in the right direction again? Many [email protected]@!!
Yeah, you need the android sdk. If all you're after is adb, then I'm sure someone around here has posted a download link to just those files. If you can't find them, then download the sdk and use the sdk manager to download and install the platform tools. For a full install of the sdk with Eclipse and ADT, you'll need to consult Google's install docs on the android developer site.
myersn024 said:
Yeah, you need the android sdk. If all you're after is adb, then I'm sure someone around here has posted a download link to just those files. If you can't find them, then download the sdk and use the sdk manager to download and install the platform tools. For a full install of the sdk with Eclipse and ADT, you'll need to consult Google's install docs on the android developer site.
Click to expand...
Click to collapse
See, I can't remember what I had.
I know it was an android-sdk folder with a few sub-folders like tools in it. I had to browse to that directory when I pushed something via ADB.
So I guess I just need to find and install the android-sdk? I'm not even sure what Eclipse and ADT is..
http://developer.android.com/sdk/index.html
Download the sdk. Adb was moved to the platform-tools folder, so you can run your adb from there, or move it to the tools folder.
Thank you!
I appreciate the help guys
Rippley05 said:
Thank you!
I appreciate the help guys
Click to expand...
Click to collapse
You're welcome.
teh roxxorz said:
You're welcome.
Click to expand...
Click to collapse
I hope I'm doing it right. I unzipped the folder, clicked on tools and read where it said adb was moved. Then I clicked on the android guy (sdk and avd manager) and now it is installing a messload of stuff.
After it's done, I should be able to use ADB but instead of going to c:\android-sdk-windows\tools\ like I used to do, I'll have to change the "tools" to platform-tools correct?
EDIT: I feel liek it is downloading a lot of stuff I don't need =p
Rippley05 said:
I hope I'm doing it right. I unzipped the folder, clicked on tools and read where it said adb was moved. Then I clicked on the android guy (sdk and avd manager) and now it is installing a messload of stuff.
After it's done, I should be able to use ADB but instead of going to c:\android-sdk-windows\tools\ like I used to do, I'll have to change the "tools" to platform-tools correct?
EDIT: I feel liek it is downloading a lot of stuff I don't need =p
Click to expand...
Click to collapse
That is correct, and I also just rename the folder to android, cuz typing all that is a pain.
And you can do that, or copy the adb items from platform-tools into the tool folder itself; tis what I did.
Alright, Windows 7 is different and kinda irritating.
All the SDK stuff went into a folder "downloads" and I let everything install, but I can't seem to find it when I run the command prompt. It was much easier in Windows XP.
If anyone is using windows 7 , could you give me the commands you use to get to the directory. I get an invalid path no matter what I type.
Should I move the SDK folders out of my downloads folder and put them on my desktop?
I put it on the root of C. Then I run cd C:\android-sdk\platform-tools. I think you need HTC sync installed as well.
Rippley05 said:
If anyone is using windows 7 , could you give me the commands you use to get to the directory. I get an invalid path no matter what I type.
Should I move the SDK folders out of my downloads folder and put them on my desktop?
Click to expand...
Click to collapse
Its easier from the desktop
OK I'll install HTC sync. That should still be on my phones SDcard right?
The problem is, I don't know what commands to enter in the command prompt to get to the different directories on my computer. If I move it to the desktop, what commands will get me there?
dglowe343 said:
I put it on the root of C. Then I run cd C:\android-sdk\platform-tools. I think you need HTC sync installed as well.
Click to expand...
Click to collapse
You don't need htc sync, just the hboot drivers.
Rippley05 said:
OK I'll install HTC sync. That should still be on my phones SDcard right?
The problem is, I don't know what commands to enter in the command prompt to get to the different directories on my computer. If I move it to the desktop, what commands will get me there?
Click to expand...
Click to collapse
the commands would be:
cd desktop/android/tools
1. change android to whatever you named your sdk folder
2. change tools to wherever your adb is located.
Names are case sensitive
teh roxxorz said:
the commands would be:
cd desktop/android/tools
1. change android to whatever you named your sdk folder
2. change tools to wherever your adb is located.
Names are case sensitive
Click to expand...
Click to collapse
Sweet I got it!
I tried to do a ADB remount and got AdbWinApi.dll is missing from my computer. I don't have my phone hooked up tho so could that be it?
Rippley05 said:
Sweet I got it!
I tried to do a ADB remount and got AdbWinApi.dll is missing from my computer. I don't have my phone hooked up tho so could that be it?
Click to expand...
Click to collapse
No prob. If you got that error, you missed it from copying the files; just double check that its there in the folder.
teh roxxorz said:
No prob. If you got that error, you missed it from copying the files; just double check that its there in the folder.
Click to expand...
Click to collapse
Ahh ok, I just moved it and it started but said device not found. I assume that IS because my phone isn't connected.
One more quick question and I promise I'll leave u alone. Whenever I push something with adb I always close the box and just unhook my phone. Is that the right method? Because I see adb is still running on my pc until I end the process with my task manager.
Rippley05 said:
Ahh ok, I just moved it and it started but said device not found. I assume that IS because my phone isn't connected.
One more quick question and I promise I'll leave u alone. Whenever I push something with adb I always close the box and just unhook my phone. Is that the right method? Because I see adb is still running on my pc until I end the process with my task manager.
Click to expand...
Click to collapse
Naw you're fine; yea, it;ll show device not connected if you have nothing connected. I personally leave it open in the command prompt after opening it just in case I go back to it. It'll close once you close command prompt.
Sweet. Thanks again Rox.
I've has that stuff installed since I first got my Hero... been a long time since I had to mess with it..

[Q] setting up adb

I've been wanting to set up adb for a while, but just don't know how to do it. There are numerous guides, and each say different things generally. Things that hold me back from setting up are:
1) does it make a difference what guide I use if I'm already a root user? *Cause I am.
2) when I run cmd as administrator, I get C:\Windows\system32 instead of just C:\
3) I don't know whether my computer is 32 bit or 64 bit.
4) Which are the right files I need in order to do this?
Could someone please point me in the right direction? My computer runs windows vista.
Just put the sdk on your c drive and rename the sdk folder to android-sdk-windows
Now don't run cmd as administrator, just type this in standard command prompt.
cd c:/android-sdk-windows/tools
and you should be able to use adb. Make sure debugging is checked in settings on your phone. You will find it in manage apps/development.
If that doesn't work maybe this will help.
http://forum.xda-developers.com/showthread.php?t=694250
http://forum.xda-developers.com/showthread.php?t=879701
Sent from my PC36100
Also make sure that your tools folder has the adb.exe file in it or you are going to get a
"adb shell not recognized as an internal or external batch command" took me about 20 minutes of.retyping adb shell to figure it out haha..
The reason i say that is because if you have a fresh dl of SDK within the last.couple of weeks then the adb.exe file has been moved and is no longer in your tools folder.
As for the command prompt. Open cmd then type
Cd/
Will take you straight to your C: directory if your not sure where to go from there type "dir" then cd to whatever folder your sdk is in
or type "cd(space).." like "cd .." Then do it again however many times you need to until it backs you all the way down to the c:
Click start and right click on computer then click properties, it will tell you there if your 64 or 32 bit.
Sent from my SAMSUNG-SGH-I897 using XDA App
Thanks guys for the help. Sorry, but I'm not sure where to get the sdk, is this it: http://developer.android.com/sdk/index.html ?
Also, what drivers do I need to install on my phone?
guih said:
Thanks guys for the help. Sorry, but I'm not sure where to get the sdk, is this it: http://developer.android.com/sdk/index.html ?
Also, what drivers do I need to install on my phone?
Click to expand...
Click to collapse
If you check that first link I posted above it has everything you're about to ask lol. Go to control panel on ur comp, navigate to system, and it will tell you if your machine is 32 or 64bit.
And yes that's the sdk. I'd download the first zip in the post and extract it to your c drive.
Sent from my PC36100
Moving adb to the /tools folder from /platform-tools will will Bork some other features of the sdk.
lol sorry man what threw me off is the "installing drivers" thing. Ok, do I also need to download that installer file as well or do I just take the sdk and extract it to the C drive? I'm sorry for these noob questions, I just don't want to mess up anything.
Don't worry about the questions. That's what we're here for. Yes, extract it to your C: drive. Adb is located in the platform-tools folder.
Sent from my Gin and Tonic using XDA App
guih said:
lol sorry man what threw me off is the "installing drivers" thing. Ok, do I also need to download that installer file as well or do I just take the sdk and extract it to the C drive? I'm sorry for these noob questions, I just don't want to mess up anything.
Click to expand...
Click to collapse
Its cool were just trying not to confuse you as much, maybe a video will help...or not lol
http://www.youtube.com/watch?v=y6K1XLmafPc&feature=youtube_gdata_player
Sent from my PC36100
I have a tools folder and a platform folder.. I'm guessing I use the tools folder?
guih said:
I've been wanting to set up adb for a while, but just don't know how to do it. There are numerous guides, and each say different things generally. Things that hold me back from setting up are:
1) does it make a difference what guide I use if I'm already a root user? *Cause I am.
2) when I run cmd as administrator, I get C:\Windows\system32 instead of just C:\
3) I don't know whether my computer is 32 bit or 64 bit.
4) Which are the right files I need in order to do this?
Could someone please point me in the right direction? My computer runs windows vista.
Click to expand...
Click to collapse
1). It doesn't really matter what guide you use, just as long as they give you correct directions.
2) Press the windows key (between Ctrl & Alt) and type "cmd" then press enter. Then once you're in command prompt, just type "CD\"
3) Right click "My Computer" then go to properties. Look for system type, and it'll tell you whether you're 32-bit or 64-bit. I believe most people have 32-bit.
4) All you need is this file.
guih said:
I have a tools folder and a platform folder.. I'm guessing I use the tools folder?
Click to expand...
Click to collapse
No, run the SDK Manager to get the platform-tools folder.
EDIT:
The SDK Manager is located in the folder that you extracted and probably renamed. For instance, mine is located here C:\AndroidSDK\SDK Manager.exe (If you can't locate it, let me know).
After you run the SDK Manager you only need the Android SDK platform-tools, revision 5 package
(Sorry about the double post)
dirkyd3rk said:
Its cool were just trying not to confuse you as much, maybe a video will help...or not lol
http://www.youtube.com/watch?v=y6K1XLmafPc&feature=youtube_gdata_player
Sent from my PC36100
Click to expand...
Click to collapse
so far this video is helping me incredibly! lol
guih said:
so far this video is helping me incredibly! lol
Click to expand...
Click to collapse
WOW! I must've looked over that post. That's a good video. Well, good luck.
I'm waiting for the platform-tools to download... in the video the guys moves all that is in platform-tools into his tools folder. Should I do that, though someone mentioned it could bork something?
guih said:
I'm waiting for the platform-tools to download... in the video the guys moves all that is in platform-tools into his tools folder. Should I do that, though someone mentioned it could bork something?
Click to expand...
Click to collapse
Follow the video young Jedi.....
Sent from my PC36100
oh my god...IT WORKS. THANK YOU EVERYONE SO MUCH FOR EVERYTHING!
guih said:
oh my god...IT WORKS. THANK YOU EVERYONE SO MUCH FOR EVERYTHING!
Click to expand...
Click to collapse
You're welcome. Congrats. Have fun! LOL
guih said:
oh my god...IT WORKS. THANK YOU EVERYONE SO MUCH FOR EVERYTHING!
Click to expand...
Click to collapse
No problem man. May the force be with you......lol
Sent from my PC36100
guih said:
...Should I do that, though someone mentioned it could bork something?
Click to expand...
Click to collapse
If adb is the only tool you are going to use in the SDK you don't have to worry about it. If you do ever use another tool and you get an error about adb not present in the /platform-tools folder you can always just move it back.

ADB Help

I cannot figure this out to save my life. I have downloaded and installed HTC Sync. I have the folder for android-sdk setup on my local drive. I added the environmental settings so I don't have to change directories each time.
I connect my phone with USB Debugging enabled, and then open command prompt. I change directories to E:\android-sdk\tools (My "E" drive is my default drive). Anytime I try and "Adb" command, it says that ADB isn't recognized as a command. I don't know why. Cannot figure it out to save my life.
I've attached some pictures so you can get a brief idea as to what I am talking about. I am on Windows 7 32 bit, if that makes any difference.
The first thing I noticed from your screenshot that is that you dont have adb application in your sdk tools folder.
adb has moved...try the platform-tools folder instead of just tools.
*Sigh*
I would miss something as simple as that. It's working now, thank you guys.
Edit:
One more question.. I am trying to install the "com.skype.raider-all-in-one-camwidth". I am assuming I need to use ADB to push it to the system files, but how do I go about doing that from CMD? Probably incredibly simple, but I'm lost again. Lol
dpilcher said:
adb has moved...try the platform-tools folder instead of just tools.
Click to expand...
Click to collapse
I wonder if the adb_has_moved.txt file in his screenshot might have given him a clue?!?
JimSmith94 said:
I wonder if the adb_has_moved.txt file in his screenshot might have given him a clue?!?
Click to expand...
Click to collapse
Lol I admitted it was something stupid to miss, forgive me.
Can anyone help me with the file pushing though? I am trying install that Skype .zip file, and I'm assuming it has to be pushed to the system area. Any clues as to how I go about that?
If you need to get it into system apps,
Adb push filename /system/app
Make sure you put a space between the end of the filename and the /
And make sure the file is located in the platform-tools folder.

[Q] Please Help!!

I recently purchased a nexus and i am new to this, i have tried everything to root this on a mac and had no success. Has any one else rooted this on a mac? If so could you walk me through it. Thanks in advance!
Are you sure you have ADB and fastboot setup correctly?
What part are you getting stuck at?
I dont think so, i downloaded some things called superboot and i keep messing up in terminal i think...did you use superboot?
Yes sir I did, also on a mac. Here, you might want to checkout this link to make sure you have everything set up properly before you start the superboot process:
http://forum.xda-developers.com/showthread.php?p=9842005
The guide will talk about fastboot towards the bottom, you can download a fastboot file from this page:
http://blog.wapnet.nl/2011/05/setup-adb-and-fastboot-with-android-sdk-on-mac-osx/
Okay, thank you very much, i will try it out and let you know if it wprks
Sounds good, let me know
on the (export PATH=${PATH}: part when your are supposed to drag the folder into text edit im getting just the folder icon instead of (export PATH=${PATH}:/Users/siedkins/android-sdk-mac_86/platform-tools) like the guy said his looked, is that okay, or do I need to start over?
Nevermind, I got it!
Sorry! I was asleep haha if you need more help I'll be checking in
Sent from my Galaxy Nexus using xda premium
Thats fine lol, okay on the Fastboot part when you find SDK/platform-tools in terminal , i type in ls> desktop> SDK > platform-tools and it says its not there and its on my desktop. Am i skipping anything in terminal?
I actually can't get the ls part to work.. I just ignore that part haha but the fastboot file should be in your tools folder of platform-tools I believe
im on the superboot part now...is this a good method? http://www.helloandroid.com/content/root-galaxy-nexus-superboot
Yessir, that is the method I used but I found the instructions in the development forum of the galaxy nexus section.. should be the same method though
Sent from my Galaxy Nexus using xda premium
Okay , last question and ill leave you alone lol, where it says (MAC - Open a terminal window to the directory containing the files, and type 'chmod +x install-superboot-mac.sh' followed by './install-superboot-mac.sh')
I have the sdk located on my desktop, how would i type that in terminal to find it so i can do this step?
Haha, no worries
To get to that folder in terminal, you want to type "cd ~" without the quotation marks, and then you can drag the folder into the terminal window and it the path to that folder should pop up in the terminal, then just hit enter
Okay, thanks alot man, i really appreciate your help
Anytime! Feel free to PM me if you have any other questions!

Categories

Resources