SkillAgentSearch skills...

Adbs

Small utility for adb(Android Debug Bridge) to choose device easily.

Install / Use

/learn @ksoichiro/Adbs
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

adbs

Build Status

adbs is a simple tool for adb(Android Debug Bridge).
Makes it easy to select one of the multiple attached devices when using adb.

Japanese document

Install

There are several methods to install adbs.

Release binary

Get the latest binary and locate it to somewhere in your PATH.

Go

$ go get github.com/ksoichiro/adbs

Homebrew

$ brew tap ksoichiro/adbs
$ brew install adbs

Introduction

When you are attaching multiple devices to the PC/Mac for testing or debugging, you must specify serial number of the target device to use adb command. So you must use adb devices to look for the device's serial number at first, then copy it, and make the complete command with pasting the number...

adbs makes this process simple. You just specify the first character of the serial number, so you do not have to copy and paste the correct serial number.

For example, if the result of the adb devices is following:

$ adb devices
List of devices attached
304D19E0D41F543F  device
275501700028393   device

Normally, you will see the error like this:

$ adb shell
error: more than one device and emulator
# Oops.. I should specify serial number..

With adbs, you can avoid this problem:

$ adbs -s 3 shell
adbs: serial: 304D19E0D41F543F
shell@android:/ $

or you can execute without -s option. adbs will ask it to you. For example:

$ adbs shell
[1] 304D19E0D41F543F
[2] 275501700028393
Device to execute command: 1
Specified: 304D19E0D41F543F
shell@android:/ $

License

Copyright © 2012 Soichiro Kashima.

Licensed under MIT License. See the bundled LICENSE file for details.

View on GitHub
GitHub Stars15
CategoryDevelopment
Updated3mo ago
Forks3

Languages

Go

Security Score

92/100

Audited on Dec 12, 2025

No findings