Is it possible to kill ALL active tasks / applications in the task manager using ADB? This would be equivalent to opening a task manager and killing each task in turn ...
I tried using the following adb shell command , but that did not kill the whole task.
adb shell am kill-all
I cannot use the command adb shell am force-stop <PACKAGE>because I need to know which package / application is running. I want to kill ALL the tasks performed by user applications. Similar to using the task manager and killing each task one at a time.
According to the command description, kill-all kills all background processes. Are background processes equivalent to "services" and tasks of equivalent "activity"?
In addition, is it possible to clear application cache applications using ADB while storing user data? It seems to adb shell pm clearclear all user data. I only want to clear the cache.
The reason I ask is because I am testing several performance tests in multiple user applications. To make each test valid, I want none of the user's applications to perform any tasks, actions, services, and caching in the background.
source
share