ADB Application Management Commands

Here we document some of the most useful ADB commands in order to control applications.


Activity Manager Service

force-stop <PACKAGE>
Force stop everything associated with <PACKAGE> (the app's package name).

kill [options] <PACKAGE>
Kill all processes associated with <PACKAGE> (the app's package name). This command kills only processes that are safe to kill and that will not impact the user experience.
Options are:
–user <USER_ID> | all | current: Specify user whose processes to kill; all users if not specified.

kill-all
Kill all background processes.


Package Manager Service

clear <PACKAGE>
Deletes all data associated with a package.

disable <PACKAGE_OR_COMPONENT>
Disable the given package or component (written as “package/class”).
For example if we disable com.android.browser, it disappears from our app list.
However, the app seems to still be accessible from the main menu page.


http://developer.android.com/tools/help/adb.html#shellcommands