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

Commit 191310b7 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android (Google) Code Review
Browse files

Merge "Fix a regression in activity manager regarding killing stopped processes."

parents 8d56b0e1 34db3d65
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -3587,11 +3587,9 @@ public final class ActivityManagerService extends ActivityManagerNative
                // If uid is specified and the uid and process name match
                // Or, the uid is not specified and the process name matches
                } else if (((uid > 0 && uid != Process.SYSTEM_UID && app.info.uid == uid)
                            && (app.processName.equals(packageName)
                                || app.processName.startsWith(procNamePrefix)))
                           || (uid < 0
                               && (app.processName.equals(packageName)
                                       || app.processName.startsWith(procNamePrefix)))) {
                            || ((app.processName.equals(packageName)
                                 || app.processName.startsWith(procNamePrefix))
                                && uid < 0))) {
                    if (app.setAdj >= minOomAdj) {
                        if (!doit) {
                            return true;