Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open adb and use it to send commands

Tags:

android

adb

I use ADT to try to make android apps, and use AVD. I know there is another tool called adb. I know it has been installed, and I want try to use it to send commands. Where is it? How to open it? Which button is used to open ADB in ADT?

Another question is where are the API documents? How to find it except on the website, like download or whatever?

like image 917
eva Avatar asked Jun 27 '13 04:06

eva


People also ask

How do I run commands in adb?

To run the command just type adb reboot-bootloader in the command line and to boot the device in recovery just type adb reboot recovery. 2. Fastboot device command: Fastboot is a diagnostic and engineering protocol that you can boot your Android device into.

How do I open adb mode?

Boot your phone into Android, then connect it to your desktop computer with a USB cable. On your computer, launch the Command Prompt and change the directory to point to the platform-tools folder. Type adb devices and hit Enter. You should now see a list of attached devices, with a serial number.

Can I run adb commands from phone?

8. Finally, you can run ADB commands on your Android device without any computer. You don't need to add adb or adb shell initializers in this app as you are already within the local ADB shell.


2 Answers

You should find it in :

C:\Users\User Name\AppData\Local\Android\sdk\platform-tools 

Add that to path, or change directory to there. The command sqlite3 is also there.

In the terminal you can type commands like

adb logcat //for logs adb shell // for android shell 
like image 54
blganesh101 Avatar answered Sep 21 '22 01:09

blganesh101



In Windows 10 while installing Android SDK, by default latest SDK gets installed.
Platform List is part of Android SDK and the best way to find the location is to open SDK manager and get the path.
It will be available at:
Android SDK Location: C:\Users\<User Name>\AppData\Local\Android\sdk\platform-tools\
In SDK Manager, SDK path can be found by following the below
Appearance & Behaviour --> System Settings --> Android SDK You can get the path where SDK is installed and can edit the location as well.

like image 35
Doogle Avatar answered Sep 20 '22 01:09

Doogle