Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41d230ed authored by Pat Erley's avatar Pat Erley
Browse files

ActivityManagerService: Don't export 'system' process in running app list

It is now considered a security risk to include the system process in the
list of active processes by upstream, so exclude it.

LETTUCE-742

Change-Id: I910f33a5efeddce5f3be9c87a2bfa991dd3a1f77
(cherry picked from commit 5b7f0466)
parent 8f266400
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -12516,6 +12516,9 @@ public final class ActivityManagerService extends ActivityManagerNative
                if (!allUsers && app.userId != userId) {
                    continue;
                }
                if (app.processName.equals("system")) {
                    continue;
                }
                if ((app.thread != null) && (!app.crashing && !app.notResponding)) {
                    // Generate process state info for running application
                    ActivityManager.RunningAppProcessInfo currApp =