Forrest logo
back to the adb tool

adb-shell:tldr:3a7d0

adb-shell: Start the home activity on an emulator or device.
$ adb shell am start -W -c android.intent.category.HOME -a android.intent.action.MAIN
try on your machine

This command is used to start the default Home screen on an Android device using the Android Debug Bridge (ADB) shell.

Here is a breakdown of the command:

  • adb shell: This is the command to access the shell of an Android device using ADB.

  • am start: This is the Activity Manager command used to start an activity on the device.

  • -W: This option stands for "wait" and tells the command to wait for the launched activity to finish before returning.

  • -c android.intent.category.HOME: This option sets the category of the intent to android.intent.category.HOME, indicating that the activity started should be the default Home screen.

  • -a android.intent.action.MAIN: This option sets the action of the intent to android.intent.action.MAIN, which is the main entry point for the activity.

In summary, this command launches the default Home screen activity on an Android device and waits for it to finish.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the adb tool