Basic usage of the Android Debug Bridge

The Android Debug Bridge is a very usefull tool to test Android apps.

List the devices available (e.g. connected via USB cable)

$ $ANDROID_HOME/platform-tools/adb devices
List of devices attached
ABCG425PCL  device

Install a freshly created Android debug app:

$ $ANDROID_HOME/platform-tools/adb install /tmp/android-debug.apk
[100%] /data/local/tmp/android-debug.apk
pkg: /data/local/tmp/android-debug.apk

Ooops. Seems I created the same app with two different keys...

Find the duplicate app:

$ $ANDROID_HOME/platform-tools/adb shell 'pm list packages -f' | grep

Remove the old version of the Android app from the device:

$ $ANDROID_HOME/platform-tools/adb uninstall

Those are my favorite basic adb commands. Have fun!

Show Comments