Seamless work with multiple Android devices using android debug bridge.
Android Debug Bridge is a versatile command-line tool that lets you communicate with a device. It's included in the Android SDK Platform-Tools package. Must-have tool while developing android apps.
Although adb
is great, it becomes a bit cumbersome when used with more than one android device (connected real phone/emulator to host). You have to specify a "target device", by providing it's unique device number.
adbs
ease this pain by giving you a nice UI for selecting "target device". Can be used interchangeably with adb
itself.
- Helps distributing
adb
commands to multiple devices/emulators - If more than one device/emulator is running, prompt will ask for target
- You can specify targets upfront (see Usage)
- Can be used interchangeably with
adb
To install adbs
, you'll need Node.js and one of package managers: npm (comes with node) or yarn. Next, using command line:
$ npm install --global adbs
# or
$ yarn global add adbs
$ adbs [adbs options] [adb command]
Options
all Run commands on all devices
dev Run commands on all physical devices
emu Run commands on all running emulators
help | -h Displays this screen
version | -v Display current adbs version
Examples
$ adbs all shell netstat
$ adbs emu install app.apk