• 端末との接続確認
    • adb devices

  • シェル起動
    • adb shell

  • log出力(時刻付き)
    • adb logcat -v time

  • 手動で時刻設定
    • adb shell date -s YYYYMMDD.hhmmss

  • 起動中のActivity一覧
    • adb shell "dumpsys activity | grep Run.#"

  • インストールされているパッケージの一覧
    • adb shell pm list packages -f

  • ファイルを抜く
    • adb pull [端末のパス]
      ※ディレクトリ指定も可

  • ファイルを入れる
    • adb push [PCのパス] [端末のパス]
      ※ディレクトリ指定も可

  • パッケージインストール
    • adb install -r [apkファイル]
      ※-rは上書きインストール許可

  • Activityの起動
    • adb shell am start -n [パッケージ/.クラス名]
    • adb shell am start -a [action]

  • ファイル内容を表示
    • adb shell "cat [ファイルパス]"

  • ファイルに1行出力(上書き注意!)
    • adb shell "echo [行] > [ファイルパス]"

  • キーイベントを送る
    • adb shell "input text [送る文字列]"

最終更新:2015年02月13日 01:06