Here we document some of the most useful ADB commands in order to control applications.
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.
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.