Android - Android Debug Bridge (ADB)

> Android

1 - About

Android Debug Bridge (adb) is a command line tool that communicate with:

  • an emulator instance
  • or connected Android-powered device.

When building (pushing) the app, ABD install and starts the application.

# App installation
adb install - r /app/build/apk/...
# App start
adb shell am start -n com.example.myapp
Advertising

3 - Location

SDK_HOME/platform-tools/adb.exe

4 - Shell

Entering a remote shell:

adb [-d|-e|-s {<serialNumber>}] shell

where:

  • -d means the usb device
  • -e an emulator
  • -s to enter a specific device.

Example:

adb devices
List of devices attached
010dfa948f964f70        device
adb -s 010dfa948f964f70  shell
bullhead:/ $
Advertising