Windows 7 ADP help - EVO 4G Q&A, Help & Troubleshooting

Ive downloaded and reinstalled all drivers, pretty much tried everything. in the command prompt i keep getting adb is not a valid file. Please help. ive already use the adb tutorials and done all the stuff they said, im using windows 7 32 bit

If you downloaded the evo-recovery.zip, the file you need is in there, it's just has a different name.
The instructions where written w/ adb.exe in mind, but the file in the packet is called "adb-windows.exe."
All you have to do is substitute "adb-windows" when the command calls for "adb"
Like this -
"adb reboot recovery"
should be
"adb-windows reboot recovery"
For me to have it work, I had to go to the command prompt and be in the same folder.
If you're not familiar w/ DOS, do it this way and it will save you sometime.
Unzip the evo-recovery.zip to the C: Drive
Go to a command prompt and type the following
cd\ {ENTER}
cd evo-recovery {ENTER}
Now you'll be at the C:\evo-recovery>
Here you can type the command "adb-windows reboot recovery"

You need to set the environment in order to execute abd under any folder
-------------------------------------
Sent via the XDA Tapatalk App

I am having trouble myself on the Vista. With both my G1 and the Evo.
-------------------------------------
Sent via the XDA Tapatalk App

Can someone please help me, I can not get the ADB drivers installed. I have done everything I can think of. Tried uninstalling them using usbdeview, tried uninstalling them through device manager but nothing I do is working. I am running a bootcamp windows 7 64 bit. Oh I do have USB debugging selected.
Any help would greatly be appreciated.
-Cory

finally
appreciate the help guys finally got it to work by manully putting adb.exe, adbwinapi.dll, and adbwinusbapi.dll in my windows/system32 folder. took me about 6 hours of googling

chandlerw88 said:
appreciate the help guys finally got it to work by manully putting adb.exe, adbwinapi.dll, and adbwinusbapi.dll in my windows/system32 folder. took me about 6 hours of googling
Click to expand...
Click to collapse
It's been so long since I've had to do that with any version of Windows, I think the last was Win95, that I didn't even think to do that! I'll throw it in there just to make things easy!

Related

Adb help

Hi.i am trying to set up adb on my compaq laptop vista,i tried everything,youtube videos,guides
Still dont work,please help me if there,s any other metod.any help ill bappreciated,
Sent from my HTC Vision using XDA App
Have you tried this ?
http://forum.xda-developers.com/showthread.php?t=865685
Prob solvd thanks so much.
Sent from my HTC Vision using XDA App
Please help me on this one too
Hi,i am running vista trying to use gfree 2,seems to b everything working finr,adb starts fine,prob is when I run a cmd it says no file or directory found.please I m new on droid,please help me how to execute files through adb.
Sent from my HTC Vision using XDA App
imranbandial said:
Please help me on this one too
Hi,i am running vista trying to use gfree 2,seems to b everything working finr,adb starts fine,prob is when I run a cmd it says no file or directory found.please I m new on droid,please help me how to execute files through adb.
Click to expand...
Click to collapse
Have you been through the guide that I linked above, and done all the steps to get adb setup on your PC ?
If you're having a problem with the gfree procedure it would be best if you post up a question in it on that thread. Are you sure you're typing the commands exactly as it says there ?
the only thing i wanna know how to execute files,where should i put gfree on my comp and on my phone so the adb cmd recognize it,thanks once again .adb working fine it recognize my device the only thing it dont recognize any cmds,file or directory not found..
imranbandial said:
the only thing i wanna know how to execute files,where should i put gfree on my comp and on my phone so the adb cmd recognize it,thanks once again .adb working fine it recognize my device the only thing it dont recognize any cmds,file or directory not found..
Click to expand...
Click to collapse
When you are running adb, if for example you do "adb push gfree", where you are trying to copy (push) the file "gfree" from your PC to your phone, it will look in your current directory for gfree. So given you are usually doing this at the command prompt, in Windows do a "cd" (change directory) to change to the directory where you have put gfree.
For example, if gfree is in "\users\fred\desktop", then do "cd \users\fred\desktop", then run your "adb push gfree" and it will find the file.
If you do "adb shell" does that work, does it come up with a $ prompt ? If so, then it's working and has started a command "shell" on your phone.

G2; How to initiate/ launch adb

ok,,,noob here.. but not a dummy. I want to load music on my sd card. I have downloaded everything I think I'm supposed to have.. SDK, adb, drivers eclipse java program...I'm running vista 32 and have created C:\program files\Android\android-sdk-windows. I have extracted all files I think all the drivers. I have spent some considerable time (wee hours ..) I can start the sdk .exe and the java eclipse but how do I use it to connect to my usb connected phone? I want to load data onto my sd card. BTW I have temprooted with VISIONary r14.
The cmd prompt window that comes up with the sdk .exe does not respond to typing in it. Commands typed into the computer's cmd prompt are not recognized. Or maybe I'm typing the wrong thing. I can't navigate to the android folder, to find my usb'd phone. I have read a lot of posts here trying to figure this out..I'm really at wits end anybody please help!!! I thought there'd be a desktop lauch icon..haha.
There's a guide for using ADB in the dev forum: http://forum.xda-developers.com/showthread.php?t=865685
If you are just trying to put music on your SD card though, I don't think you need to do all of this. Just mount the SD card once your phone is connected to your computer (there will be an option that appears in your notification drawer to do this). Your SD card will then show up as a drive on your computer...
I saw that guide..Step 4 doent apply on vista.."My Computer" and the path that is described is not on Vista, or anything similar. I can't "update your Path variable." It did not say HOW TO LAUNCH! What is it application that I need to work from for adb? I have read every post I could find here..and that one maybe four or 5 times. I want to use adb I can see and browse my SD card as drive F..thanks..I still want to run adb.. I cant type into the sdk cmd pane.
captmack007 said:
I saw that guide..Step 4 doent apply on vista.."My Computer" and the path that is described is not on Vista, or anything similar. I can't "update your Path variable." It did not say HOW TO LAUNCH! What is it application that I need to work from for adb? I have read every post I could find here..and that one maybe four or 5 times. I want to use adb I can see and browse my SD card as drive F..thanks..I still want to run adb.. I cant type into the sdk cmd pane.
Click to expand...
Click to collapse
Whoa whoa whoa! If all you want to do is load music on your phone and your using Windows, either just install Doubletwist on it. It's kind of like iTunes for everything. Or just make a music folder and load your music onto that. No adb needed.
Now, about adb; there is no program to run. You don't really need to set your path either, it just makes things easier. Just cd to the sdk tools folder.
Sent from my HTC Vision
It's not all i want to do...i should not have mentioned it.
cd to the ??
If I wish to make an adb command, what and where do I go/do to do that....on a vista puter....thnkx
I can see tghe adb android interface is there ...I figured out to right click on "computer" "manage", which opens Computer Manager. There in the left column is "Device Manager" clicked on that and I see the Android Phone listed, with subcatagory android adb interface. and down at the bottom under "Portable Devices" HTC is shown. All drivers are showing up and say they are functioning properly.
appreciate the help..
captmack007 said:
It's not all i want to do...i should not have mentioned it.
cd to the ??
appreciate the help..
Click to expand...
Click to collapse
Oh I see. You first mentioned simply putting music on your phone and the next thing you've got a full development emvironment! Lol!
Cd to the tools folder of the android sdk. (Bear with me as I haven't done this on windows in a good long while). For example, open command prompt, then type "cd C:\androidsdk\tools", where the androidsdk part is whatever the sdk is called.
Sent from my HTC Vision
Once you have the android sdk on your computer- change the folder name to something simple so typing is easier. You'll also want to edit the enviornment variables (google is your friend, but I'll post a link tomorrow to help). The latest sdk is missing a dll file - I'm sure one of us can upload it, I just don't remember which one it is right now.
Now that you've got that done open command prompt an type:
cd c:\where\you\put\it (the sdk)
Then type:
adb devices
Or
adb start-server
If you get an error it means you did something wrong.
"cd C:\androidsdk\tools
I'll ad that to the list of command that do nuttin...lol
I downloaded all the sh*t I was told in these threads to dowload...yeah..everything to create an app. lol
I still am waiting to read or be informed of the precise command line that will let me into adb... tfn
thks KCRic... I will give that a shot.. nice tip on renaming the folder..I did not type cd C: first.. (the tuts I've been rackin my brain on did not say that..
I had read that it was missing and found it downloaded it and put it in tools..
the edit the environment variables is what I can't find where to do that.. thanks.
I added the missingAdbWinApi.dll and AdbWinUsbApi.dll and Adb.exe (of course) into the tools folder...
I renamed the folder in Programs\Android..."android-sdk-windows" simply "sdk"
I typed in:
cd c:\program files\Android\sdk\tools
I got in..opened a port..gave me my phones serial #
so this is where adb commands are made? (stupid question perhaps)
I thought the other cmd screen that opens with the sdk.exe was it. And I cant type anything there anyway.
If you have got "adb devices" to show you your phone's serial number, then adb is working find, and you can start using the other adb commands.
Sent from my HTC Desire Z
captmack007 said:
I renamed the folder in Programs\Android..."android-sdk-windows" simply "sdk"
I typed in:
cd c:\program files\Android\sdk\tools
I got in..opened a port..gave me my phones serial #
so this is where adb commands are made? (stupid question perhaps)
I thought the other cmd screen that opens with the sdk.exe was it. And I cant type anything there anyway.
Click to expand...
Click to collapse
Just type "adb", no quotes, and that will give you an output of all the adb commands.
captmack007 said:
I renamed the folder in Programs\Android..."android-sdk-windows" simply "sdk"
I typed in:
cd c:\program files\Android\sdk\tools
I got in..opened a port..gave me my phones serial #
so this is where adb commands are made? (stupid question perhaps)
I thought the other cmd screen that opens with the sdk.exe was it. And I cant type anything there anyway.
Click to expand...
Click to collapse
Yeah you're up and running now. If you typed adb devices or adb usb and got it to list your phones serial # then it's connected and running.
As far as adb commands, you can type adb help to get a list of some and they're pretty easy. Some of them are:
adb push <path\to\file> <where\to\push> - copies files to your phone
adb pull <path\to\file> <where\to\put\it> - copies files from the phone to your computer
adb remount - remounts your device
adb reboot - self explanatory
adb install <path\to\file> - self explanatory
adb start-server - starts adb service
adb kill-server - kills adb process (I always type this in when I'm done, sometimes it doesn't terminate and causes issues)
adb shell <linux type command> - runs command in the device shell
adb shell [enter] - operates in the devices shell until you type {exit}
Once you enter the shell you can type {su} to enter superuser. All commands in the shell are in linux format so if you're unfamiliar with that then do some reading.
HERE is a link that should help with adb also.
KCRic said:
As far as adb commands, you can type adb help to get a list of some and they're pretty easy. Some of them are:
adb push <path\to\file> <where\to\push> - copies files to your phone
adb pull <path\to\file> <where\to\put\it> - copies files from the phone to your computer
adb remount - remounts your device
adb reboot - self explanatory
adb install <path\to\file> - self explanatory
adb start-server - starts adb service
adb kill-server - kills adb process (I always type this in when I'm done, sometimes it doesn't terminate and causes issues)
adb shell <linux type command> - runs command in the device shell
adb shell [enter] - operates in the devices shell until you type {exit}
Once you enter the shell you can type {su} to enter superuser. All commands in the shell are in linux format so if you're unfamiliar with that then do some reading.
HERE is a link that should help with adb also.
Click to expand...
Click to collapse
Apologies if you've seen it already, but most of that is covered in the adb guide on the dev forums, with that link also - http://forum.xda-developers.com/showthread.php?t=865685
Thanks for the great info... Now I'm standing at the gate (maybe the precipice..lol)
As far as completing the pathway...
I found (through excrutiating trial and error) the Vista path for step 4 on that tut.
So under "Environment Variables" there are two editable windows, and the bottom with the "Path" that the tut says to edit says to ad the path to the tools folder and the platform folders...
The question is, when I double click to edit the Path line,(C:\Program Files\JavaFX-sdk1.3....) it changes to a different path (~1C:\Program Files\Quicktime\QTSystem\
So am I to delete that line and ad a new path or ad to the Quicktime line..
ty
The existing path was probably just too long to show up on the screen (so you saw the beginning of the line initially and the end of the line when you tried to edit it). Just add a semi-colon and then the path you want to add. You don't want to delete what you already have there since it might mess with other software installed on you computer.
So for example:
...C:\Program Files\Quicktime\QTSystem\;C:\android-sdk-windows\tools
Quicktime and android are both separatefolders under program files... so....no.. that's not it. I don't even know why java showsthere... my sdk is in C:/Program Files/Android/sdk/tools...
p.s. how you do backslash on this keyboard....lol
Sent from my T-Mobile G2 using XDA App
The path is simply a listing of directories separated by semi-colons. When executing a command, Windows will check the local directory you are in first for the program, and then parse through the directories listed in your path. This is why this step is even needed (it allows you to run adb.exe from any directory instead of always having to change to the tools directory). This is also why I said it's not a good idea to simply delete what is already there. You just want to add the tools directory where adb.exe is located to the existing listing.
So in your case, the end of the path variable will look like this:
...C:\Program Files\Quicktime\QTSystem\;C:\Program Files\Android\sdk\tools
Alternatively, you could stick it in the beginning of the path (so double-click to edit the variable, hit Home to go to the beginning, and add the directory there with a semi-colon). It should look like this in your case:
C:\Program Files\Android\sdk\tools;C:\Program Files\JavaFX-sdk1.3...
And there is no backslash on the G2 hardware keyboard (as you noticed), but you can access it by hitting the Alt key and then space to pull up a dialog box of additional symbols.
Word of advice to anyone reading this:
When adding the adb to your path make sure and don't put a space after the the semicolan. When I set mine up I spent 4 hours trying to figure out why it wasn't working, and it was the stupid space lol.
I haven't looked at the wiki since I did it back in October so maybe they've updated it to be clearer but just want to throw it out there.
Sent from my HTC Vision using XDA App

Adb

Hey guys I'm getting setup to root my buddies Evo shift. I Dloaded android sdk followed the instruction. I've opened cmd.exe when I type in a command it says it says 'adb ' is not recognized as an internal or external command, operable command or batch file.
I'm trying it out on my Evo first just to get familiar with the system any direction is greatly appreciated
Sent from my PC36100 using XDA App
30bushido1 said:
Hey guys I'm getting setup to root my buddies Evo shift. I Dloaded android sdk followed the instruction. I've opened cmd.exe when I type in a command it says it says 'adb ' is not recognized as an internal or external command, operable command or batch file.
I'm trying it out on my Evo first just to get familiar with the system any direction is greatly appreciated
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
What version of windows are you on? You followed all of the instructions on setting up adb from that thread in the Shift forums? I also rooted my roomate's Shift, and I read that adb setup tutorial when I was over there. It was pretty solid. I already had adb set up, but read it through to see. When I set up adb, I had someone advise to me to place the adb.exe, and that .dll file (found in platform tools, in the SDK download) in my 'system32' folder of my PC. Once I placed those two files in the 'system32' folder, adb has worked flawlessly.
Also, have you made sure you have all the correct drivers installed? I believe I also had to install HTC Sync, because that installed some drivers that were necessary. Once it installed, I uninstalled it (the drivers will remain installed) because it can interfere with adb communication, apparently. Hope you get it set up. Once you do, rooting the Shift wasn't hard. Just follow the instructions to the t, and just copy and paste the commands, to eliminate the possibility of messing up the commands.
Thanks man I'm gonna give the HTC sync thing a shot
Sent from my PC36100 using XDA App
30bushido1 said:
Thanks man I'm gonna give the HTC sync thing a shot
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
You're welcome, feel free to PM me if you have any more issues.
to get adb to work, you need to be in the same directory as all of the sdk tools to use my setup as an example, my stuff is located in
C:\SDK\platform-tools
when I open the cmd prompt, it starts in
C:\Documents and Settings\Chris>
to change directories, type
C:\Documents and Settings\Chris>cd \
the display will change to
C:\>
type (in my example, yours may vary unless you set your folders up the same way)
C:\>cd SDK\platform-tools
it will change to
C:\SDK\platform-tools>
then you will be able to use adb commands like push/pull, shell, devices, etc.
Muellersirch said:
to get adb to work, you need to be in the same directory as all of the sdk tools to use my setup as an example, my stuff is located in
C:\SDK\platform-tools
when I open the cmd prompt, it starts in
C:\Documents and Settings\Chris>
to change directories, type
C:\Documents and Settings\Chris>cd \
the display will change to
C:\>
type (in my example, yours may vary unless you set your folders up the same way)
C:\>cd SDK\platform-tools
it will change to
C:\SDK\platform-tools>
then you will be able to use adb commands like push/pull, shell, devices, etc.
Click to expand...
Click to collapse
By putting the adb.exe and the .dll files in the 'system32' folder, that will allow you to execute adb commands from any directory in the command prompt. I don't have to navigate to my sdk tools to use adb. It saves a few steps, so you can just open up your command prompt and command away.
Or you can put the directory that contains adb in your system PATH. This will let you execute adb in a command prompt anywhere...
Sent from my ADR6300 using XDA App
I'm running wd7. I've gone through it again and installed the drivers then uninstall HTC sync I'm still not able to access sdk through the command prompt. I know its something simple I'm missing how do I move adb to the system path
Sent from my PC36100 using XDA App
C:\user\paul>
Is what the terminal reads any command I enter is not recognized as an internal or external command.
I have got the command list to show up but cannot exicute any of them
Sent from my PC36100 using XDA App

(q) adb

I know this is a noob question but I installed the sdk on my windows vista 32bit PC I've read like everything I could about doing this but I can't seem to get adb working when I run cmd adb it says 'adb' is not recongnized as an internal or external command, operable program or batch file. I'm pretty new to this but want to be able to use this any help would be great thanks in advance..
Sent from my PC36100 using XDA App
Are you running adb from within the /platform-tools directory?
The basics of adb
http://forum.xda-developers.com/showthread.php?t=694250
You have to run the commands from wherever you extracted the sdk ex I put mine on the main c drive so I have to type this first:
cd c:/android-sdk-windows/tools
Sent from my PC36100 using XDA Premium App
bender1077 said:
Are you running adb from within the /platform-tools directory?
Click to expand...
Click to collapse
I tried it from the start menu and that was what it said I also tried it in platform-tools it just flashes the screen for a second and thats all..
Sent from my PC36100 using XDA App
You're getting that error because you're not in the folder where adb is. Look in the platform-tools folder. You can run it from that folder, or just copy it into the tools folder.
teh roxxorz said:
You can run it from that folder, or just copy it into the tools folder.
Click to expand...
Click to collapse
If all you are using from the SDK is ADB, then moving ADB to the /tools directory is not an issue. This will bork the functionality of other tools in the SDK though.
U can also add it to ur command lines so u don't have to always be in ur sdk folder to use it. Google adb and there r instructions on how to do this. Its very easy

[Q] ADB don't see my phone

Hi, I have a problem with ADB: when phone connected check if adb sees it with the command 'adb devices' shows me the error 'can not connect to daemon, Create Process failure, error 2'. Of course, all of the drivers installed, even i installed a lot of unnecessary packages to be sure sdk is installed correct. I have tried many ways but it's all for nothing. The important thing is that before starting play with the Desire Z went without any problems, without any errors adb seen the phone. Unfortunately, because of the desire goes to sell had to restore it to factory condition, but I had to get rid of the other phone so the Desire Z came back to me. Since then the problems started. If anyone would have any idea kindly ask for help. Thanks in advance.
I assume you made sure adb is turned on on the phone. Try uninstalling then reinstalling the drivers. If that doesn't work (i assume you have windows) change the path in environmental variables. You can try adb kill-server then adb start-server
See if any of this helps
Sent from my Desire Z using xda premium
Which ROM are you using? I had similar issues with some CM7.2 builds.
If you have the option “ADB over network” in “Developer options” try to switch it on/off. It helped for me.
Thanks a lot for answers but i already did all this methods :/ Realy dont help. And about my rom i have stock 2.2 at the moment, that's why i need adb...for root,S-OF
Have you tried a different USB cable? Sometimes it will work for charging and such but will not work for adb or fastboot, only poorly made cables are like this so its rarely an issue. I still think the problems lie in th drivers, did you uninstall and manually install the right ones? Don't let windows do it
Sent from my Desire Z using xda premium
Yes sure i tried with 3 different cabels and always install drivers manual on system partition C:
Looking back over your posts it looks like you can even start adb on your computer, phone/cable makes no difference if you can't open adb. What exactly is your path in environmental variables? My guess is this is set up wrong. Find the folder that adb.exe is in on the computer and make sure the path is set correctly to this.
And just for fun, find the folder, find adb.exe, hold shift and right click within that folder. Now choose open command here. Now type just
adb
What happens?
If you need help setting adb up I wrote a fastboot guide (includes setup for adb/fastboot) http://forum.xda-developers.com/showthread.php?t=1728208
Check out the third post for instructions
Sent from my Desire Z using xda premium
Listen i read about installing sdk 2 years ago, i have of course path edited correctly to the folder where adb is...
Which API do you have? Older ones put adb in tools, newer in platform-tools, if you just open a command and type adb (without phone even connected) it should open. If not then you will need to change directories (or the path) if it still won't run then you don't have adb.exe installed correctly.
What happens when you open a command prompt from within the folder adb.exe is in? Have you tried that?
Adb does not need a phone connected just to run, having the right drivers won't matter if adb isn't even running on pc.
Sent from my Desire Z using xda premium
Btw. now im installing again sdk, tell me is it normal on start of installing packages i see: "Installing Android SDK Platform-tools, revision 14
Stopping ADB server failed (code -1)."
Or is it a problem and that's why i cant work with adb ?
Completely uninstall all of the SDK and remove your path in environmental variables. Then install SDK directly from google, install all the platform tools (the whole first section) make sure you check you updated java (jdk needed?) Open a command window where adb is and type adb and check for error codes, if all is good then update path in environmental variables
Sent from my Desire Z using xda premium
Tell me if i delete PATH accidentally can i create it again in environment variables ?
Yup, and just so you know creating a path just makes things easier, it isnt needed. If you want just open the command where adb.exe is located or change directories.
Sent from my Desire Z using xda premium
And in PATH i should only add "C:\SDK\platform-tools" nothing more ? Sorry for my noobish questions, i didnt work with Android for 7 months i lost a lot of memories
I remember i should always add backslash on the end right like: "C:\SDK\platform-tools\" ?
yep and don't forget to seperate the values with a ;
Sent from my Desire Z using xda premium
About drivers i should install HTC Driver installer and HTC BMP Driver ? All in same location ? Best on partition system C or other ?
EDIT: I tried so hard as i can and now everything work, adb se my phone and my Desire Z is rooted Thanks a lot for all answers.

Categories

Resources