Forrest logo
back to the adb tool

android:warp:87566cb0607135c0e0136768e657f292

Stop an Android app
$ adb shell am force-stop ${package_name}
try on your machine

This command is used to force-stop a specific application package on an Android device using the ADB (Android Debug Bridge) shell.

Here's a breakdown of each element in the command:

  • adb shell: This is the command to access the ADB shell, which allows you to execute various commands on an Android device connected to your computer via USB debugging.

  • am: It is short for "Activity Manager." The Activity Manager is responsible for managing all aspects of the Android system's activities and managing different applications' lifecycles.

  • force-stop: This is a parameter of the am command used to forcefully stop an application package. When executed, it terminates all activities and processes associated with the specified package.

  • ${package_name}: This is a placeholder variable representing the package name of the application you want to force-stop. You need to replace ${package_name} with the actual package name of the application you want to terminate.

By executing this command, you can force-stop a specific application package, which is equivalent to terminating it forcefully, even if it is running in the background.

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