この記事では、Android Debug Bridge (ADB)およびFastbootツールで使用される一般的なAndroidコマンドを一覧表示します
1. `adb devices`: 接続されているAndroidデバイスまたはエミュレーターを一覧表示します。
2. `adb shell`: 対象デバイスでコマンドシェルを開きます。
3. `adb install`: デバイスにAndroidアプリケーション(.apk)をインストールします。
4. `adb uninstall`: デバイスからAndroidアプリケーションをアンインストールします。
5. `adb push`: コンピュータからデバイスへファイルをコピーします。
6. `adb pull`: デバイスからコンピュータへファイルをコピーします。
7. `adb reboot`: デバイスを再起動します。
8. `adb logcat`: デバイスのログメッセージをリアルタイムで表示します。
9. `adb backup`: デバイスのデータのバックアップを作成します。
10. `adb restore`: 以前に作成したバックアップをデバイスに復元します。
11. `adb shell am`: アクティビティマネージャ(AM)コマンドを実行します。
12. `adb shell pm`: パッケージマネージャ(PM)コマンドを実行します。
13. `adb shell input`: ユーザー入力イベント(例:キー押下、タッチ)をシミュレートします。
14. `adb devices -l`: 詳細情報付きで接続されているデバイスを一覧表示します。
15. `adb forward`: デバイスとホストマシン間のソケット接続を転送します。
16. `adb connect`: ネットワーク越しにデバイスに接続します。
17. `fastboot devices`: fastbootモードで接続されているデバイスを一覧表示します。
18. `fastboot flash`: デバイスの特定のパーティションにフラッシュします。
19. `fastboot erase`: デバイスの特定のパーティションを消去します。
20. `fastboot reboot`: fastbootモードからデバイスを再起動します。
21. `fastboot oem`: OEM特有のコマンドを実行します。
これらのコマンドは、主に開発者や上級ユーザーがデバッグ、アプリケーションのインストール、デバイスの内部へのアクセスなどの作業に使用します。これらのコマンドを使用するには、Androidデバイスで開発者オプションとUSBデバッグを有効にする必要があります。また、一部のコマンドはデバイスがブートローダー/fastbootモードで接続されている必要があります。
Please report any broken links by emailing support@elotouch.com and include a link to the knowledge article