Skip to content
/ adbs Public

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

License

Notifications You must be signed in to change notification settings

ksoichiro/adbs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
$ 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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published