{"id":20367899,"url":"https://github.com/ksoichiro/adbs","last_synced_at":"2026-02-28T21:32:39.330Z","repository":{"id":4592519,"uuid":"5734927","full_name":"ksoichiro/adbs","owner":"ksoichiro","description":"Small utility for adb(Android Debug Bridge) to choose device easily.","archived":false,"fork":false,"pushed_at":"2014-11-03T13:48:26.000Z","size":212,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-03T17:57:49.820Z","etag":null,"topics":["android","cli"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ksoichiro.png","metadata":{"files":{"readme":"README.ja.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-09T04:31:32.000Z","updated_at":"2024-04-02T17:41:08.000Z","dependencies_parsed_at":"2022-08-04T03:00:23.036Z","dependency_job_id":null,"html_url":"https://github.com/ksoichiro/adbs","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ksoichiro/adbs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksoichiro%2Fadbs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksoichiro%2Fadbs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksoichiro%2Fadbs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksoichiro%2Fadbs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksoichiro","download_url":"https://codeload.github.com/ksoichiro/adbs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksoichiro%2Fadbs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29952276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","cli"],"created_at":"2024-11-15T00:35:22.338Z","updated_at":"2026-02-28T21:32:39.313Z","avatar_url":"https://github.com/ksoichiro.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# adbs\n\n[![Build Status](https://drone.io/github.com/ksoichiro/adbs/status.png)](https://drone.io/github.com/ksoichiro/adbs/latest)\n\n`adbs`は、adb(Android Debug Bridge)のためのシンプルなツールです。  \n接続されている複数端末から1つを選んで`adb`を実行するのが簡単になります。\n\n## インストール\n\n以下のような方法でインストールできます。\n\n### バイナリ\n\n[最新のバイナリをダウンロード](https://github.com/ksoichiro/adbs/releases/latest)してパスの通ったディレクトリに配置します。\n\n### Go\n\n```sh\n$ go get github.com/ksoichiro/adbs\n```\n\n### [Homebrew](http://brew.sh/)\n\n```sh\n$ brew tap ksoichiro/adbs\n$ brew install adbs\n```\n\n## 概要\n\nテストやデバッグの目的で複数の端末をPC/Macに接続しているとき、特定の端末に対して`adb`コマンドでの操作をする場合はシリアル番号を指定する必要があります。\nそのため、まず`adb devices`を実行して対象端末のシリアル番号を探し、コピー＆ペーストしてコマンドを作るという面倒な手順を踏むことになると思います。\n\n`adbs`は、この手順をシンプルにします。\n`adbs`ではシリアル番号の最初の1文字を指定するだけで端末を特定して実行できるようになるので、正確なシリアル番号をコピー＆ペーストする必要がありません。\n\n例えば、`adb devices`の結果が以下のようなものだったとします。\n\n```sh\n$ adb devices\nList of devices attached\n304D19E0D41F543F  device\n275501700028393   device\n```\n\nこの状況では、以下のようなことが起きるはずです。\n\n```sh\n$ adb shell\nerror: more than one device and emulator\n# しまった、シリアル番号を入力しないと実行できない...\n```\n\n`adbs`を使うとこの問題を回避できます。\n\n```sh\n$ adbs -s 3 shell\nadbs: serial: 304D19E0D41F543F\nshell@android:/ $\n```\n\nもしくは、'-s'オプションなしで実行すれば`adbs`が聞いてきます。  \n例えば以下のようになります。\n\n```sh\n$ adbs shell\n[1] 304D19E0D41F543F\n[2] 275501700028393\nDevice to execute command: 1\nSpecified: 304D19E0D41F543F\nshell@android:/ $\n```\n\n## License ##\n\nCopyright (c) 2012 Soichiro Kashima.\n\nMITライセンスでライセンスされています。\n詳しくは同梱のLICENSEファイルをご覧ください。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksoichiro%2Fadbs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksoichiro%2Fadbs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksoichiro%2Fadbs/lists"}