[Q] Noob sdk question :X - Android Q&A, Help & Troubleshooting

I'm trying to update my phone and it won't boot into download mode :X so I'm trying to do it with adb my problem is I can't get adb commands to work because I don't know what the path should be in the variables :C my location for adb is "C:\Program Files (x86)\Android\android-sdk\platform-tools.adb.exe" thats so much in advace!!

Dunphy said:
I'm trying to update my phone and it won't boot into download mode :X so I'm trying to do it with adb my problem is I can't get adb commands to work because I don't know what the path should be in the variables :C my location for adb is "C:\Program Files (x86)\Android\android-sdk\platform-tools.adb.exe" thats so much in advace!!
Click to expand...
Click to collapse
In order for adb to work you need to set the path to where adb.exe is. The code is
chdir C:/Program Files (x86)/Android/android-sdk/platform-tools
adb shell
that will enable you to use adb
Sent from my Optimus Me using xda premium

for adb to work u just needed to be booted up normally with usb debugging selected.
locate to the folder where adb.exe resides. SHIFT + right click on that folder and choose "open command window here"
cmd terminal will open up wid C:/Program Files (x86)/Android/android-sdk/platform-tools
nw run "adb devices"
if ur device is detected with serial no then are good to use adb....
Sent from my Nexus One using Tapatalk

Related

[Q] how to get adb running on my vibrant

i downloaded the sdk and i downloaded a samsung galaxy driver and when i look for my phone in the command line it just doesnt show up. theunlockt just isnt helping. anybody got a good link for dummies?
antonio91282 said:
i downloaded the sdk and i downloaded a samsung galaxy driver and when i look for my phone in the command line it just doesnt show up. theunlockt just isnt helping. anybody got a good link for dummies?
Click to expand...
Click to collapse
Did you put your phone in debug? Settings>Applications>Development
yes. and i been going over the directions repeatedly on theunlockr. im running xp 32 i believe
ADB for Dummies: Download http://de.codeplex.com/
- Once installed... open command prompt:
cd C:\Program Files\Droid Explorer\SDK\tools
Click to expand...
Click to collapse
- <type your ADB command here> e.g.
adb shell
Click to expand...
Click to collapse
^ yeah...
adb devices
Click to expand...
Click to collapse
should show your device...
To the OP, I don't know if this is the case for you but I changed my path on my Windows PC like the guides said to and that didnt completely work. (Maybe neede a restart). But in any case if you go to the command prompt, change directories to were you have adb and run your commands from there, it works like a charm.
For example if you unzip the the SDK in your download directory, open up the command line and type:
cd C:\Documents and Settings\<your user name>\Downloads\<whatever-you-named-the-unzipped-folder>\tools
ADB is in the tools directory you just went to. From here you can run the adb command without having to set up the system paths. This is a quick and dirty explanantion and might not even work for you. I was running this on Windows XP when I had this problem. Same thing had to be done on my Ubuntu Linux box b/c I'm to lazy to set up paths on that one, lol.
zephiK said:
ADB for Dummies: Download http://de.codeplex.com/
- Once installed... open command prompt:
- <type your ADB command here> e.g.
Click to expand...
Click to collapse
Oops, didnt see that you allready posted this. Yea do what zephiK says and it should work.
i have not been able to get adb to work no matter what i did (i am using xp) and i have been trying since i had the htc magic last year. here is how i recently got it working.
i downloaded the one-click root zip file and unzipped it. inside there is a adb.exe file. i clicked it and then then made sure my phone was in debugging mode and connected to my pc and used the command prompt to point to where adb is in my android sdk which for me is cd\androidsdk\tools
adb devices
i hit enter after tools and enter after devices and now it works. not sure why but it does. i couldnt get my magic, my nexus one or even the galaxy to work until i did this.
i got everything done. i think? only problem is im getting $ sign instead of # sign. any ideas?
i got adb working. thanks everyone.
A thread success story without any casualties. Almost makes me weep.

[Q] Help using ADB

iam having trouble using ADB with windows XP. i have downloaded superoneclick program and opened the ADB folder inside. then i turned usb debugging on, then connected, then ran the ADB program, it starts with showing how to run commands, but only stays open for about 5 seconds, then closes, i cant read what the rest of it says because it closes to quickly. iam new to android and have never used adb before but i followed all the steps i think. what iam i doing wrong? thanks
RPK925 said:
iam having trouble using ADB with windows XP. i have downloaded superoneclick program and opened the ADB folder inside. then i turned usb debugging on, then connected, then ran the ADB program, it starts with showing how to run commands, but only stays open for about 5 seconds, then closes, i cant read what the rest of it says because it closes to quickly. iam new to android and have never used adb before but i followed all the steps i think. what iam i doing wrong? thanks
Click to expand...
Click to collapse
you have to open a command prompt in the folder where adb.exe is stored. you don't need to run the program itself, just run commands necessary to do whatever hack you're trying to do. if you just put the apk files in the same folder as adb.exe then use "adb push" commands and such (whatever is detailed in the instructions)
to open a command prompt in the folder, i think you can just right click and select "Open command prompt here" (i know that's in win7, not too sure about xp)
also - this is the wrong section to post this. it should be in the Q&A section, not development.
raybond25 said:
you have to open a command prompt in the folder where adb.exe is stored. you don't need to run the program itself, just run commands necessary to do whatever hack you're trying to do. if you just put the apk files in the same folder as adb.exe then use "adb push" commands and such (whatever is detailed in the instructions)
to open a command prompt in the folder, i think you can just right click and select "Open command prompt here" (i know that's in win7, not too sure about xp)
also - this is the wrong section to post this. it should be in the Q&A section, not development.
Click to expand...
Click to collapse
thanks for your help. when i extracted adb from S.O.C. i gave me 5 files
ADB.exe
ADBmac
ADBlinux
ADBWinUsbapi.dll
ADBWinApi.dll
I right clicked on all of them and couldnt find anything about opening command prompt?
RPK925 said:
thanks for your help. when i extracted adb from S.O.C. i gave me 5 files
ADB.exe
ADBmac
ADBlinux
ADBWinUsbapi.dll
ADBWinApi.dll
I right clicked on all of them and couldnt find anything about opening command prompt?
Click to expand...
Click to collapse
start, run and type cmd. this gives you a command prompt
Why are you using super one click on your atrix? Gingerbreak or gladroot is the preferred method for the atrix.
Sent from my Blue Steeled Atrix
Big-A-Rob said:
Why are you using super one click on your atrix? Gingerbreak or gladroot is the preferred method for the atrix.
Sent from my Blue Steeled Atrix
Click to expand...
Click to collapse
Yes I know iam just trying to get the ADB files from.SOC. iam rooted on gingerbreak.
Sent from my MB860 using XDA App
scorneil said:
start, run and type cmd. this gives you a command prompt
Click to expand...
Click to collapse
Start the. Exe? Because it wont allow me to type any commands it just runs for about 2 seconds then closes.
Sent from my MB860 using XDA App

[Q] need help!! first time using adb and cmd

im using windows 7 64bit and trying to learn adb and cmd
i was watch how to install adb and following..
after installing adb and drivers and added adb on system variables
i type cmd and then typed C:\android-sdk-windows\platform-tools
after that i typed adb devices but got an error
C:\android-sdk-windows\platform-tools\adb.exe is not a valid Win32 application.
what do i have to do here?? T.T
If I'm not mistaken in Win7 64, the Android SDK installs ADB to c:\Program Files(x86)\Android\android-sdk\platform-tools\adb.exe
feedhead said:
If I'm not mistaken in Win7 64, the Android SDK installs ADB to c:\Program Files(x86)\Android\android-sdk\platform-tools\adb.exe
Click to expand...
Click to collapse
that is correct. i'm on win 7 x64 and its there.
Type cd then space in front of C:\....
That changes directories.
Sent from my ADR6400L using XDA Premium App
qudwis said:
im using windows 7 64bit and trying to learn adb and cmd
i was watch how to install adb and following..
after installing adb and drivers and added adb on system variables
i type cmd and then typed C:\android-sdk-windows\platform-tools
after that i typed adb devices but got an error
C:\android-sdk-windows\platform-tools\adb.exe is not a valid Win32 application.
what do i have to do here?? T.T
Click to expand...
Click to collapse
First confirm that adb installed where you think it did.
Code:
C:\android-sdk-windows\platform-tools
Hit the start button in Windows and copy and paste your path from above into the Search programs and files box. If the path is valid, Windows Explorer will open to that directory.
If the path is not valid, try typing adb.exe in the search box to see if Windows knows where it is. If it comes up in the search results, right click on it and select "Open file location" and Explorer will open to where it is installed.
Once you have verified where adb is, you should be able to pick up from where you ran into a problem.
I attached the .pdf that I followed when I first installed adb ... I wish I remembered where I got it so I could credit them appropriately. The screen-shots might be helpful to you.
(Note: there is a typo on page 8 where the System Variables are setup paltform should be platform)
Oops the file was too big.
It is zipped and attached to this post.
Edit: I found where I got the document from. http://forum.xda-developers.com/showthread.php?t=1009419
http://forum.xda-developers.com/showthread.php?p=9959449

[Q] HELP! not about the phone but adb.exe

Hi.
It's not first time for me to root or flash rom or sth like that.
It's also not the first time for me to use the adb.exe or the android sdk.
Today, I installed the sdk and the java and everything I need. Everything works great until I tried to use the adb.exe.
When I click on adb.exe, it pop out for a second and then disappear. I can see a lot of commands within that second.
Then I try to use cmd and the commands are the following:
Code:
-d - directs command to the only connected USB devic
e
returns an error if more than one USB device is
present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is r
unning.
-s <serial number> - directs command to the USB device or emulator w
ith
the given serial number. Overrides ANDROID_SERI
AL
These commands are obviously the command: [abd help]
Why the hack would they show out instead of running the normal adb.exe???
Also, any other adb command turns to the same things above( result of the [abd help] command)
Need help, can't use any adb functions..........................
What command are you typing? What guide are you following? This is all very vague!
Kangburra said:
What command are you typing? What guide are you following? This is all very vague!
Click to expand...
Click to collapse
First, thanks for replying me.
I didn't really follow any guide as i know how it works...
I installed the driver >java pack>sdk and I just run C:\SDK\platform-tools\adb.exe
NokiaBigS said:
First, thanks for replying me.
I didn't really follow any guide as i know how it works...
I installed the driver >java pack>sdk and I just run C:\SDK\platform-tools\adb.exe
Click to expand...
Click to collapse
What do you mean run adb.exe?
adb.exe doesn't run, its a service.
you should set it up your path on your computer to make life easier.
Open a command prompt (search for cmd in start menu) and type "set PATH=%PATH%;C:\sdk\whateverthepathis"
Then once that is set you can just type adb into command without the need for writing the whole path every time.
Like C:\sdk\platform-tools\adb.exe\adb devices becomes adb devices.
Sent from my GT-I9300 using xda premium
NokiaBigS said:
First, thanks for replying me.
I didn't really follow any guide as i know how it works...
I installed the driver >java pack>sdk and I just run C:\SDK\platform-tools\adb.exe
Click to expand...
Click to collapse
succeed code
Code:
C:\SDK\platform-tools>adb devices
List of devices attached
TA53808AMN offline
TA53808AMN offline
nodstuff said:
adb.exe doesn't run, its a service.
you should set it up your path on your computer to make life easier.
Open a command prompt (search for cmd in start menu) and type "set PATH=%PATH%;C:\sdk\whateverthepathis"
Then once that is set you can just type adb into command without the need for writing the whole path every time.
Like C:\sdk\platform-tools\adb.exe\adb devices becomes adb devices.
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
shoot....I don't know about that.....I thought exe is to run........
sorry about that.
So what if I got such result after using command: adb devices
Code:
C:\SDK\platform-tools>adb devices
List of devices attached
TA53808AMN offline
TA53808AMN offline
Glad it is working for you.
NokiaBigS said:
shoot....I don't know about that.....I thought exe is to run........
sorry about that.
So what if I got such result after using command: adb devices
Code:
C:\SDK\platform-tools>adb devices
List of devices attached
TA53808AMN offline
TA53808AMN offline
Click to expand...
Click to collapse
Ya I thought you were going to the platform-tools folder and clicking adb.exe the icon.
Well try set up the path so you don't need to type all the long path to adb.exe whenever you want to use it.
When you set it up all you need to type in is adb devices. That's it.
Its up to you though.
Sent from my GT-I9300 using xda premium
solved issue

[Q] OSX, adb usb, adb devices = error: device not found

when I type adb devices cmd in the terminal it does not list my device and its plugged in....
when I try to type adb usb it says no devices found...
for the record nothing is wrong with my USB connection cable because, I'm able to connect my HTC ReZound via USB cable to my macbook, the CDROM and STORAGE auto mounts to my desktop so i know the connection is working, because I'm able to copy files, update music via winamp sync playlists, also my paid EasyTeather copy works, etc.
I updated & installed most recent Android SDK adt-bundle-mac-x86_64-20130917 and updated the device manager for my ver 4.0.3 and all tools, even tryed using a stand alone platform-osx-tools.zip that contains a adb and fastboot...\
I read up on this and found nothing tryed everything....
adb kill-server > adb start-server - does nothing
adding device in the adb_usb.ini didn't help either.
chmod a+r /etc/udev/rules.d/51-android.rules after creating file didn't help.
rebooted many times .
i've attached a terminal cmd window below to show.
USB debugging is enabled on the device, yes? Does the "USB debugging enabled" notification show up when you plug it into the computer?
MaxxPayne said:
when I type adb devices cmd in the terminal it does not list my device and its plugged in....
when I try to type adb usb it says no devices found...
Click to expand...
Click to collapse
are you doing proper methods in command prompt for sdk's adb such as directing it to the folder its in...example did you type cd c:/androidsdk/platform_tools/ in command prompt for example
I used to have a mac ....but here
Download htc sync for mac
http://www.iskysoft.com/convert-mobile/sync-htc-to-mac.html
Download the sdk and all you need is a folder called platform tools
http://developer.android.com/sdk/index.html
Extract the platform tools folder Put it on your desktop
Open terminal type "cd" then hit space then drag and drop the platform tools folder into the terminal after that hit enter
Then you can run any command just make sure to put "./ " before the command without quotations so if you wanna flash a boot you would put
./fastboot flash boot boot.img and hit enter
Note that adb works perfectly well on my Mac without the HTC Sync drivers.

Categories

Resources