Loading services/core/java/com/android/server/am/ActivityManagerShellCommand.java +7 −0 Original line number Original line Diff line number Diff line Loading @@ -248,6 +248,8 @@ final class ActivityManagerShellCommand extends ShellCommand { return runForceStop(pw); return runForceStop(pw); case "stop-app": case "stop-app": return runStopApp(pw); return runStopApp(pw); case "clear-recent-apps": return runClearRecentApps(pw); case "fgs-notification-rate-limit": case "fgs-notification-rate-limit": return runFgsNotificationRateLimit(pw); return runFgsNotificationRateLimit(pw); case "crash": case "crash": Loading Loading @@ -1192,6 +1194,11 @@ final class ActivityManagerShellCommand extends ShellCommand { return 0; return 0; } } int runClearRecentApps(PrintWriter pw) throws RemoteException { mTaskInterface.removeAllVisibleRecentTasks(); return 0; } int runFgsNotificationRateLimit(PrintWriter pw) throws RemoteException { int runFgsNotificationRateLimit(PrintWriter pw) throws RemoteException { final String toggleValue = getNextArgRequired(); final String toggleValue = getNextArgRequired(); final boolean enable; final boolean enable; Loading Loading
services/core/java/com/android/server/am/ActivityManagerShellCommand.java +7 −0 Original line number Original line Diff line number Diff line Loading @@ -248,6 +248,8 @@ final class ActivityManagerShellCommand extends ShellCommand { return runForceStop(pw); return runForceStop(pw); case "stop-app": case "stop-app": return runStopApp(pw); return runStopApp(pw); case "clear-recent-apps": return runClearRecentApps(pw); case "fgs-notification-rate-limit": case "fgs-notification-rate-limit": return runFgsNotificationRateLimit(pw); return runFgsNotificationRateLimit(pw); case "crash": case "crash": Loading Loading @@ -1192,6 +1194,11 @@ final class ActivityManagerShellCommand extends ShellCommand { return 0; return 0; } } int runClearRecentApps(PrintWriter pw) throws RemoteException { mTaskInterface.removeAllVisibleRecentTasks(); return 0; } int runFgsNotificationRateLimit(PrintWriter pw) throws RemoteException { int runFgsNotificationRateLimit(PrintWriter pw) throws RemoteException { final String toggleValue = getNextArgRequired(); final String toggleValue = getNextArgRequired(); final boolean enable; final boolean enable; Loading