[Q] Help using ADB - Atrix 4G Q&A, Help & Troubleshooting

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

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.

accessing the root directory from pc?

ok im rooted and can access my sdcard from my pc. how do i do the same with the internal memory of the phone?
thanks
mark
Check out androidcommander.
Sent from my ThunderBolt using XDA Premium App
ADB is all you need.
Sent from my ADR6400L using XDA Premium App
keith.mcintyre26 said:
ADB is all you need.
Sent from my ADR6400L using XDA Premium App
Click to expand...
Click to collapse
i know i can adb pull but what would be the command to actually browse the system...
Use the command "adb shell" and browse as you would on your OS through the command prompt.
ex: for PCs for listing use the command "dir" and "cd" to navigate through folders
ex: for Macs you would have to use "ls"
tflogic said:
Use the command "adb shell" and browse as you would on your OS through the command prompt.
ex: for PCs for listing use the command "dir" and "cd" to navigate through folders
ex: for Macs you would have to use "ls"
Click to expand...
Click to collapse
does anyone know of a graphical interface...ive tried droid commander and another i just forgot the name but were laggy and wouldnt display everything correctly
B3L13V3 said:
does anyone know of a graphical interface...ive tried droid commander and another i just forgot the name but were laggy and wouldnt display everything correctly
Click to expand...
Click to collapse
im also hoping for something with a gui. i stopped using dos commands or whatever when i scrapped my ibm 286 with it's 10mb hd.
It's ridiculously easy to use lol
tflogic said:
It's ridiculously easy to use lol
Click to expand...
Click to collapse
ok, so i'm attempting to post an adb logcat output at another forum regarding an app. at the cmd prompt (of course directed to the proper tools folder) i use the following
adb logcat -f /sdcard/output.txt
hit return and i get a blinking cursor. nothing else appears to happen. am i mssing something? is there another way to create and view/save the logcat output?
thanks
mark
wouldn't it be:
Code:
adb shell
logcat > /sdcard/logcat.txt
markkal123 said:
ok im rooted and can access my sdcard from my pc. how do i do the same with the internal memory of the phone?
thanks
mark
Click to expand...
Click to collapse
http://www.appbrain.com/app/sshdroid/berserker.android.apps.sshdroid
http://www.netsarang.com/forum/xshell/list
http://filezilla-project.org/
*method only works on wifi since your phone is behind NAT

[Q] Noob sdk question :X

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

[SCRIPT] ADB, Fastboot and mFastboot directly in Terminal - MacOSX

Hello all
So here I am in my first topic :laugh:
For Mac users can be tough to work with commands, which most of it has to be done in order to perform stuff in our Moto X.
Instead of having to mount virtual machines in order to have access to Windows' stuff. Or the Android SDK has to be installed, browse to specific folders to run commands from them, etc.
We can work directly in our precious Terminal! :victory:
So, I made a little script that will allow Mac users to work directly on Terminal, no matter which folder we are working on. I've included the following files:
adb
fastboot
mfastboot (Motorola's modified version of fastboot)
To Install
Run Terminal (/Applications/Utilities/Terminal.app)
Browse to the folder in which the script resides, i.e., if it’s in Desktop, then type in Terminal “cd Desktop/ADBInstall” (without quotes).
To run the script type “./install.sh” (without quotes).
You will see input on the screen.
That’s it
To Uninstall
You can safely remove the 3 files in one command, just run the uninstall.sh script by following step 1 and 2 from the Install section. Instead of following step 3, type the following in Terminal: “./unistall.sh” (without quotes).
Hope you like it
Hey, thanks for creating this script. However, I am running into a problem. I run ./install.sh, it runs through the install text, but when I try to run an adb command to test it out, I get the following error: -bash: ./adb: No such file or directory. I went into /usr/bin/ and adb, fastboot and mfastboot all show up there and can run when I'm in the directory, but if I'm outside of the directory, it won't run. Any suggestions? Cheers.
HeroOfTime said:
Hey, thanks for creating this script. However, I am running into a problem. I run ./install.sh, it runs through the install text, but when I try to run an adb command to test it out, I get the following error: -bash: ./adb: No such file or directory. I went into /usr/bin/ and adb, fastboot and mfastboot all show up there and can run when I'm in the directory, but if I'm outside of the directory, it won't run. Any suggestions? Cheers.
Click to expand...
Click to collapse
It's weird, though.
Did it ask for your password? You can force root access by typing: "sudo ./install.sh" instead.
Can you show me your input screen on Terminal after running the installer?
MoisesPerez said:
It's weird, though.
Did it ask for your password? You can force root access by typing: "sudo ./install.sh" instead.
Can you show me your input screen on Terminal after running the installer?
Click to expand...
Click to collapse
Thanks for looking into this for me. Yes, it did ask for my password. Here is what I get after running the installer:
Jareds-MBP:ADBinstall Jared$ ./install.sh
This will install ADB, Fastboot and mFastboot on your computer.
Root Permissions required. Please type your password.
Password:
Changed directory to /Users/Jared/Desktop/ADBinstall
Copying ADB...
ADB copied to /usr/bin/adb
Copying Fastboot...
Fastboot copied to /usr/bin/fastboot
Copying mFastboot...
mFastboot copied to /usr/bin/mfastboot
You may now run Android Debug Bridge, Fastboot and mFastboot commands
Have a nice day
I'm attaching a screenshot of the output as well, but that is the output I get, which seems correct.
Np! Yes, it seems correct.
So, if you run, let's say, "adb devices" you get the bash error?
Did you try to close session and open a new one?
Regards
MoisesPerez said:
Np! Yes, it seems correct.
So, if you run, let's say, "adb devices" you get the bash error?
Did you try to close session and open a new one?
Regards
Click to expand...
Click to collapse
Exactly. adb devices has been my test command. Yeah, I tried closing out the session, I logged off using the 'exit' command and quit Terminal.
Just odd that it installs fine and shows up in /usr/bin, but I can't get it to work. I am running the beta of OS X Yosemite, but I doubt that would impact anything, since it installs.
Hmmm... Weird stuff.
HeroOfTime said:
Exactly. adb devices has been my test command. Yeah, I tried closing out the session, I logged off using the 'exit' command and quit Terminal.
Just odd that it installs fine and shows up in /usr/bin, but I can't get it to work. I am running the beta of OS X Yosemite, but I doubt that would impact anything, since it installs.
Hmmm... Weird stuff.
Click to expand...
Click to collapse
Really weird! I'm using Mavericks, but I also doubt this may cause the script not to work.
Here's my Terminal window running from my user's main folder.
I don't know what else to try man. The only option is to take them out of usr/bin and just create a "work" folder to use them. That's how I started
Best
MoisesPerez said:
Really weird! I'm using Mavericks, but I also doubt this may cause the script not to work.
Here's my Terminal window running from my user's main folder.
I don't know what else to try man. The only option is to take them out of usr/bin and just create a "work" folder to use them. That's how I started
Best
Click to expand...
Click to collapse
Well thanks a lot for your help. Still a great resource. I will keep playing around with things and maybe get it to work.
Thanks again!
Not a problem my friend. Good luck!
worked great for me on 10.9!
worked for me as well on Yosemite 10.10.1. thanks!
Glad it did! Regards.

[Q] Spent the last 3 hours trying to unlock bootloader... Please help

I followed the directions here
http://www.htcdev.com/bootloader
on 2 different computer. Installed the 3 links
Google Android SDK zip:
Java Runtime Environment:
HTC Sync (Windows Only):
Made sure fast boot off.
Tried with/without USB debugging on (even tho there is no directions for that)
Typed in Command Prompt: fastboot oem get_identifier_token.
I get same message "fastboot is not recognized as an internal or external command, program or batch file"
Tried to do the rumrunner thing as well but it says i need to get past bootloader 1st.
arrrggg
What do I do I have tried googling with no help.
All my phones in the past i could find rather easy "how to" instructions but not this phone.
crap
Put your device to fastboot mode ( switch off the device volume down and power together)
Else
Usb debugging on and type the command in cmd (adb reboot bootloader)
Sent from my SM-N7505 using XDA Free mobile app
saeroner said:
I followed the directions here
http://www.htcdev.com/bootloader
on 2 different computer. Installed the 3 links
Google Android SDK zip:
Java Runtime Environment:
HTC Sync (Windows Only):
Made sure fast boot off.
Tried with/without USB debugging on (even tho there is no directions for that)
Typed in Command Prompt: fastboot oem get_identifier_token.
I get same message "fastboot is not recognized as an internal or external command, program or batch file"
Tried to do the rumrunner thing as well but it says i need to get past bootloader 1st.
arrrggg
What do I do I have tried googling with no help.
All my phones in the past i could find rather easy "how to" instructions but not this phone.
crap
Click to expand...
Click to collapse
You aren't running the cmd from th correct folder. Browse to the folder where fastboot is. Hold shift key and right click. Select open cmd prompt here. Then run your commands.
dottat said:
You aren't running the cmd from th correct folder. Browse to the folder where fastboot is. Hold shift key and right click. Select open cmd prompt here. Then run your commands.
Click to expand...
Click to collapse
Ok i did that but get this message
"program can't start because AdbWinApi.dll is missing from your computer. Try re-installing"
I reinstalled/downloaded "Google Android SDK zip:"twiceusing to different extraction programs. I placed the folder in the same android folder as the fastboot.
still stuck. any help?
thanks
saeroner said:
Ok i did that but get this message
"program can't start because AdbWinApi.dll is missing from your computer. Try re-installing"
I reinstalled/downloaded "Google Android SDK zip:"twiceusing to different extraction programs. I placed the folder in the same android folder as the fastboot.
still stuck. any help?
thanks
Click to expand...
Click to collapse
Download this. Extract it. Run your command prompt and commands here.
https://www.androidfilehost.com/?fid=23501681358559711
^ Thanks that worked!
saeroner said:
^ Thanks that worked!
Click to expand...
Click to collapse
You are welcome ☺

Categories

Resources