Forrest logo
back to the adb tool

adb-shell:tldr:8c3fd

adb-shell: Start an activity on emulator or device.
$ adb shell am start -n ${package}/${activity}
try on your machine

The command "adb shell am start -n ${package}/${activity}" is used to start a specific Android application component from the command line on an Android device.

  • "adb" stands for Android Debug Bridge, a command-line tool used to communicate with an Android device connected to a computer.
  • "shell" refers to running a command or script in the remote shell of the device.
  • "am" stands for Activity Manager, which manages all the application components and lifecycle events in an Android device.
  • "start" is the action to start an activity or service.
  • "-n" is a flag that specifies the next arguments as the component name.
  • "${package}" denotes the package name of the application. Replace it with the actual package name.
  • "${activity}" represents the activity name of the application. Replace it with the actual activity name.

By replacing ${package} and ${activity} with the real package name and activity name of an application, you can launch that specific component directly from the command line using adb.

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