Merge "Add a command to clear recent apps" into tm-qpr-dev am: 541595b936 am: 7967407ca0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20550643 Change-Id: I543adbbedea65bf9e698322c1c655bacbf9c929e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -257,6 +257,8 @@ final class ActivityManagerShellCommand extends ShellCommand {
|
||||
return runForceStop(pw);
|
||||
case "stop-app":
|
||||
return runStopApp(pw);
|
||||
case "clear-recent-apps":
|
||||
return runClearRecentApps(pw);
|
||||
case "fgs-notification-rate-limit":
|
||||
return runFgsNotificationRateLimit(pw);
|
||||
case "crash":
|
||||
@@ -1239,6 +1241,11 @@ final class ActivityManagerShellCommand extends ShellCommand {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int runClearRecentApps(PrintWriter pw) throws RemoteException {
|
||||
mTaskInterface.removeAllVisibleRecentTasks();
|
||||
return 0;
|
||||
}
|
||||
|
||||
int runFgsNotificationRateLimit(PrintWriter pw) throws RemoteException {
|
||||
final String toggleValue = getNextArgRequired();
|
||||
final boolean enable;
|
||||
|
||||
Reference in New Issue
Block a user