help setting up adb - Hero CDMA Q&A, Help & Troubleshooting

im using windows 7 and cannot for the life of me figure out adb, i never used it on the hero, but with the optimus its the only option, i have the sdk installed, and all the device drivers. But when i try to do " adb devices" i get,
'adb' is not recognized as an internal or external command,
operable program or batch file.
i did edit the path, i think i did it correctly
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Teleca Shared;C:\Program Files (x86)\QuickTime\QTSystem\;c:\android-sdk-windows\tools;c:\android-sdk-windows\platform-tools
thats what is is now.
will some one please helpppp mehhhh
and i know its not HTC but this community is the best ever so i thought id still ask here

jadenj5 said:
im using windows 7 and cannot for the life of me figure out adb, i never used it on the hero, but with the optimus its the only option, i have the sdk installed, and all the device drivers. But when i try to do " adb devices" i get,
'adb' is not recognized as an internal or external command,
operable program or batch file.
i did edit the path, i think i did it correctly
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Common Files\Teleca Shared;C:\Program Files (x86)\QuickTime\QTSystem\;c:\android-sdk-windows\tools;c:\android-sdk-windows\platform-tools
thats what is is now.
will some one please helpppp mehhhh
and i know its not HTC but this community is the best ever so i thought id still ask here
Click to expand...
Click to collapse
Try this:
cd C:\Program Files (x86)\android-sdk-windows\platform-tools
I have old adb so my path is different, but maybe that'll work? Otherwise someone using sdk rev10 needs to chime in...

Do I put that in the path thing? I'm new to all of this so sorry if I ask 5920274010 questions LOL
Sent from my LS670 using XDA App

jadenj5 said:
Do I put that in the path thing? I'm new to all of this so sorry if I ask 5920274010 questions LOL
Sent from my LS670 using XDA App
Click to expand...
Click to collapse
You just need to do a dir of c:\
locate your android-sdk_r10-windows directory. cd to it, then cd to android-sdk-windows, the cd to platform-tools. Do a dir and make sure adb is in that directory.
You can also use windows explorer to locate it or "search programs and files" for adb..
If you remember which directory sdk is installed in that would be where you'll have to look.. PM me if you need more help.

Related

How to get DDMS working?

I am trying to get DDMS working so I can send cmd line code to my phone via the desktop pc. I installed Eclipse IDE and added Android SDK. Someone in another thread said you get a DDMS tab with an icon. I dont see this. I also tried running the DDMS.bat in the "Tools" folder in SDK dir and get this message.
'java' is not recognized as an internal or external command,
operable program or batch file.
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.
androidmonkey said:
I am trying to get DDMS working so I can send cmd line code to my phone via the desktop pc. I installed Eclipse IDE and added Android SDK. Someone in another thread said you get a DDMS tab with an icon. I dont see this. I also tried running the DDMS.bat in the "Tools" folder in SDK dir and get this message.
'java' is not recognized as an internal or external command,
operable program or batch file.
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.
Click to expand...
Click to collapse
well for starters, do you have either the java idk or ire (forget which one you need)
but once you have java installed then just open up command prompt and then
1. if you already have the folder where you're tools are located set up in Environment Variables you can just type ddms
2. otherwise cd to the folder where ddms is located and then once you're there, type ddms
xidominicanoix said:
well for starters, do you have either the java idk or ire (forget which one you need)
but once you have java installed then just open up command prompt and then
1. if you already have the folder where you're tools are located set up in Environment Variables you can just type ddms
2. otherwise cd to the folder where ddms is located and then once you're there, type ddms
Click to expand...
Click to collapse
Thanks, my Environment Variables wasnt setup. Any ideas why the install didnt do this? Weird...
androidmonkey said:
Thanks, my Environment Variables wasnt setup. Any ideas why the install didnt do this? Weird...
Click to expand...
Click to collapse
the install never did this afaik ... does ddms work now though?
xidominicanoix said:
the install never did this afaik ... does ddms work now though?
Click to expand...
Click to collapse
ddms loads just fine now but my phone doesnt show up. My phone is connected with "USB debugging connected" enabled.
Any ideas?
did you mount your sd card?
Got it working, the windows driver wasnt installed.
I didnt realize I just needed to use the cmd line to install Navigation, not ddms. Thanks for the help
all you need is the command line to run ddms. Just put it where you have adb, go there via command line, and type"
ddms
Tada. eidt: it's not perfect, but it's mostly there.
Cannot mount SD card in terminal / console
delete ......

[SOLVED] Simple SDK question (Linux)

I recently switched to Ubuntu, and I can't figure out how to set up the SDK in linux, ^^' (at least adb, I need to push some files) could somebody help me out here?
EDIT: It's much simpler than I thought, I got some help from the guys at #hero-cdma on irc.bikcmp.com
<Obelisk79> download it, unzip it to your home folder
<Obelisk79> then you can run terminal and cd to the sdk/tools folder and run ./adb
Click to expand...
Click to collapse
Now to figure out how to rename the thread XD (I'm new, obviously)
edit in advanced mode

[Q] New laptop...Issues with ADB

Ok so, my old HD crashed, completely unrecoverable. I now have a new laptop with W7HP. I set up the SDK folder and when I try to do ADB commands it fails. I get - ADB is not recognized as an internal or external command, operable program or batch file.
Can anyone help me?
Pauper7 said:
Ok so, my old HD crashed, completely unrecoverable. I now have a new laptop with W7HP. I set up the SDK folder and when I try to do ADB commands it fails. I get - ADB is not recognized as an internal or external command, operable program or batch file.
Can anyone help me?
Click to expand...
Click to collapse
R u in the sdk tools folder or have u set it up to run adb from any folder. If not that could be a reason why. Also make sure u install the Java jdk and jde files too.
Papa Smurf151 said:
R u in the sdk tools folder or have u set it up to run adb from any folder. If not that could be a reason why. Also make sure u install the Java jdk and jde files too.
Click to expand...
Click to collapse
I was following the instructions in this thread here - (Regaws ROOT instructions)
http://forum.xda-developers.com/showthread.php?t=694572
My phone is Rooted already. Im currently running on Darch's Froyo Nightly 8/23.
Also, I am not sure what you mean by the Java jdk and jde files...
Pauper7 said:
I was following the instructions in this thread here - (Regaws ROOT instructions)
http://forum.xda-developers.com/showthread.php?t=694572
My phone is Rooted already. Im currently running on Darch's Froyo Nightly 8/23.
Also, I am not sure what you mean by the Java jdk and jde files...
Click to expand...
Click to collapse
In order for adb to work I believe u need to install the Java development kit and Java runtime environment. U can find them both at either the Java webisite (Google search for Java JdK) or in my thread everything android in the dev forum. Which is a package of all the tools u need to mess with ur phone. Either way I believe that the Java stuff needs to be put on first
You need to have the tool folder in the path setting on your computer and the android sdk installed.
Or actually be in the tool folder directly.
That should be all that's needed.
Sent from my HTC Desire using XDA App
Papa Smurf151 said:
In order for adb to work I believe u need to install the Java development kit and Java runtime environment. U can find them both at either the Java webisite (Google search for Java JdK) or in my thread everything android in the dev forum. Which is a package of all the tools u need to mess with ur phone. Either way I believe that the Java stuff needs to be put on first
Click to expand...
Click to collapse
Found the Java stuff. do I extract it INTO the android tools folder or just right to the c Drive?
Just install java on your pc & make sure your path is set for the sdk & see where that puts you.
Sent from my phone.
had the same exact issue. all it did to fix it was:
re-unpack the sdk to the C:\ drive
install the HTC sync from the root thread you posted
REBOOT COMPUTER
plus in phone let it do its thing with drivers and such
and BOOM working.
Windows 7 x64

adb command

I have been tryng to set up adb for my N1. I have all the files downloaded and have gone as far as to see if the computer recognizes my phone. I go into device manager and the phone and files are there but when I go to the next step to see if the computer recognizes the phone, I type in certain commands I got from XDA and I got all the way till the last command before the computer pushes out the id #'s to my phone, I type "adb devices" and I get this response "adb is not recognized as a internal or external command, operable program or batch file".
I have studied these commands and I know I have typed in the right ones, I want to learn this process and unlock my bootloader and other things.
any help would be welcomed.
Thank You
Open a terminal in the folder where you have ADB file at.
IE
I have the sdk from froyo still so i navigate my way to the android-sdk-windows folder, go into the tools folder, SHIFT right click and click on open command prompt window here.
Download this, place in the same folder as your adb on the pc, and double click...
http://db.tt/aVW40cy
Sent from my Nexus One using XDA App
danger-rat said:
Download this, place in the same folder as your adb on the pc, and double click...
http://db.tt/aVW40cy
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
I dl file and opened the command prompt, worked fine but still having problem with finding my device, I noticed the adb file was hazed out and it said under it that it had moved, wonder if this is my problem??? I know I'm very close but just getting frustrated. I think I need to reinstall the adb file, I think??????
the problem is that the froyo sdk and the gingerbread sdk have different directory structures. Make sure you are in the right directory. Be it tools or platform-tools. In order to run adb (or fasboot) you need to be in the same directory as the executable (unless you've added the directories to the windows path).
Sent from my Nexus One
efrant said:
the problem is that the froyo sdk and the gingerbread sdk have different directory structures. Make sure you are in the right directory. Be it tools or platform-tools. In order to run adb (or fasboot) you need to be in the same directory as the executable (unless you've added the directories to the windows path).
Sent from my Nexus One
Click to expand...
Click to collapse
I am running gingerbread, I was in the tools folder, what folder should I be in?
If you get stuck, just take a look at this thread. It places all the files you need in one location. Much easier than the sdk...
http://www.nexusoneforum.net/forum/...mple-sdk-setup-manual-root-guide-windows.html
Sent from my Nexus One using XDA App
vinnyjr said:
I am running gingerbread, I was in the tools folder, what folder should I be in?
Click to expand...
Click to collapse
With the Gingerbread SDK, you should be in /platform-tools.

Help with "Path" in windows 7

Can someone using windows 7 that has not changed the "path" for use in adb please copy and paste what they may have. I done erased it on accident. oops.
Hit the windows logo/start>right click on computer>properties>advanced system settings>environment variables>under system variables highlight "Path">edit>and copy variable value and please paste it for me. I sure would appreciate it
I'm using revision 10 of the android-sdk and my path just points to the \android-sdk-windows\tools\ directory.
e.g. it could look like this,
C:\android-sdk-windows\tools\
it just depends where you put \android-sdk-windows\
Thanks c00ller,
What I need is the original default path that must be set by windows. Instead of adding a semicolon at the end of the original path and adding the C:/android-sdk/platform-tools after the semicolon, I erased the original path. Now when starting my computer, I am getting errors.
I just did this today because I installed windows 7 on a partition on my MacBook to do android stuff easier.
I just downloaded android commander and when you open it it gives you the option of setting the path for you. No typing or editing. So try that. Its easy.
www.androidcommander.com
Sent from my HERO200 using XDA App
Ohhh, I see what you're saying. I see how that can be a problem.
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Lenovo\Bluetooth Software\;C:\Program Files\Lenovo\Bluetooth Software\syswow64;C:\Program Files (x86)\Common Files\Teleca Shared;C:\Program Files (x86)\Renishaw\WiRE 3.2;C:\Program Files (x86)\MATLAB\MATLAB Component Runtime\v77\runtime\win32;C:\Program Files\MATLAB\R2010b\runtime\win64;C:\Program Files\MATLAB\R2010b\bin;C:\Program Files (x86)\QuickTime\QTSystem\
I'm sure you don't need much of that stuff, i.e. WiRE and MATLAB, lenovo things... etc
Thanks C00ler,
Looks like you might be using 32bit. If not let me know.
If anyone is using 64bit windows 7 if you could paste the path that windows set by default, I sure would appreciate it.
I did try android commander but it did not give me the option to set the path for me.
I am using Windows 7 64-bit. If i was using 32 bit, I wouldn't have "Program Files (x86)" folders
You can spend more time waiting for an answer or. You could go here
http://forum.xda-developers.com/showthread.php?t=858118
And spend 15-20 min re setting up adb or spend the 45 min doing a system restore. Both will fix your problem.
Yea its me again. With the
Modified Hero
Macanage said:
Can someone using windows 7 that has not changed the "path" for use in adb please copy and paste what they may have. I done erased it on accident. oops.
Hit the windows logo/start>right click on computer>properties>advanced system settings>environment variables>under system variables highlight "Path">edit>and copy variable value and please paste it for me. I sure would appreciate it
Click to expand...
Click to collapse
Default Values on Microsoft Windows
Code:
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
Here's mine:
Code:
C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jdk1.6.0_16\bin;C:\Program Files (x86)\Windows Live\Shared;
Thanks to all above! I did a System Restore from a week ago and copied the path value to note pad, saved it, and then restored again to today and pasted the path back in with the addition of the new adb path. This is what mine ended up being
C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\EgisTec MyWinLocker\x86;C:\Program Files (x86)\EgisTec MyWinLocker\x64;C:\Program Files (x86)\Common Files\Teleca Shared;C:\Program Files (x86)\Windows Live\Shared;c:/android-sdk/platform-tools
Thanks again Gents!
c00ller said:
I'm using revision 10 of the android-sdk and my path just points to the \android-sdk-windows\tools\ directory.
e.g. it could look like this,
C:\android-sdk-windows\tools\
it just depends where you put \android-sdk-windows\
Click to expand...
Click to collapse
im using revision 4.
is there a benefit between revisions? id assume so, but like what?
davidevan said:
im using revision 4.
is there a benefit between revisions? id assume so, but like what?
Click to expand...
Click to collapse
No idea, but probably none for all for non-devs like us
c00ller said:
No idea, but probably none for all for non-devs like us
Click to expand...
Click to collapse
makes sense, i might dl it, just to see what other options i have

Categories

Resources