Skip to content

Commit 191310b

Browse files
Amith YamasaniAndroid (Google) Code Review
authored andcommitted
Merge "Fix a regression in activity manager regarding killing stopped processes."
2 parents 8d56b0e + 34db3d6 commit 191310b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

services/java/com/android/server/am/ActivityManagerService.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3587,11 +3587,9 @@ private final boolean killPackageProcessesLocked(String packageName, int uid,
35873587
// If uid is specified and the uid and process name match
35883588
// Or, the uid is not specified and the process name matches
35893589
} else if (((uid > 0 && uid != Process.SYSTEM_UID && app.info.uid == uid)
3590-
&& (app.processName.equals(packageName)
3591-
|| app.processName.startsWith(procNamePrefix)))
3592-
|| (uid < 0
3593-
&& (app.processName.equals(packageName)
3594-
|| app.processName.startsWith(procNamePrefix)))) {
3590+
|| ((app.processName.equals(packageName)
3591+
|| app.processName.startsWith(procNamePrefix))
3592+
&& uid < 0))) {
35953593
if (app.setAdj >= minOomAdj) {
35963594
if (!doit) {
35973595
return true;

0 commit comments

Comments
 (0)