# シェルを起動 adb shell # コマンド実行 adb shell [コマンド]
adb logcat
adb devices
adb -s [デバイスのシリアル番号] logcat
# 通常インストール(上書き不可) adb install [アプリのapk] # 上書きインストール(アップデート) adb install -r [アプリのapk]
adb uninstall [アンインストールするapk]
# PCから端末へ転送 adb push [PC上のファイル名] [端末上のファイル名] # 端末からPCへ転送 adb pull [端末上のファイル名] [PC上のファイル名]
# 起動 adb start-server # 停止 adb kill-server
adb shell am # 再起動のインテントを送信。再起動と同様の動作(実際は再起動しない) adb shell am broadcast -a android.intent.action.BOOT_COMPLETED
adb shell dumpsys activity activities # フィルタリング adb shell dumpsys activity activities | grep "* TaskRecord\|* Hist"