adb (Android Debug Bridge)
adbはデバッグ用のツールです。この実行ファイルとなるadb.exeは、Android SDKのインストール ディレクトリのplatform-toolsディレクトリにあります。
コンポーネント |
説明 |
adb client |
開発機上で動作するプログラム (ADTプラグインなどの内部で利用) |
adb server |
adb clientとadb deamonとの通信を管理するプログラム |
adb deamon |
エミュレータや実機端末のバックグラウンドプロセスとして動作するプログラム |
コマンド (commands)
adb [-d|-e|-s <serialNumber>] <command>
|
説明 |
-d |
|
-e |
|
-s <serial number> |
|
-p <product name or path> |
|
デバイス コマンド (device commands)
コマンド |
説明 |
adb push <local> <remote> |
copy file/dir to device |
adb pull <remote> [<local>] |
copy file/dir from device |
adb sync [ <directory> ] |
copy host->device only if changed (see 'adb help all') |
adb shell |
run remote shell interactively |
adb shell <command> |
run remote shell command |
adb emu <command> |
run emulator console command |
adb logcat [ <filter-spec> ] |
View device log |
adb forward <local> <remote> |
forward socket connections forward specs are one of:
- tcp:<port>
- localabstract:<unix domain socket name>
- localreserved:<unix domain socket name>
- localfilesystem:<unix domain socket name>
- dev:<character device name>
- jdwp:<process pid> (remote only)
|
adb jdwp |
list PIDs of processes hosting a JDWP transport |
adb install [-l] [-r] [-s] <file> |
push this package file to the device and install it
- ('-l' means forward-lock the app)
- ('-r' means reinstall the app, keeping its data)
- ('-s' means install on SD card instead of internal storage)
|
adb uninstall [-k] <package> |
remove this app package from the device
- ('-k' means keep the data and cache directories)
|
adb bugreport |
return all information from the device that should be
included in a bug report. |
adb help |
show this help message |
adb version |
show version num |