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

Commit 0fe3c256 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #17574819: Chrome browser process is killed in background...

...due to dying renderer process

Don't kill processes if they are bound to a service but not impacting
oom adjustment.

Change-Id: I1cc44e633feaeaad6e996b79a6cfd7b386c04095
parent 3540c462
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2116,7 +2116,8 @@ public final class ActiveServices {
                    boolean hasCreate = false;
                    for (int conni=abind.connections.size()-1; conni>=0; conni--) {
                        ConnectionRecord conn = abind.connections.valueAt(conni);
                        if ((conn.flags&Context.BIND_AUTO_CREATE) != 0) {
                        if ((conn.flags&(Context.BIND_AUTO_CREATE|Context.BIND_ALLOW_OOM_MANAGEMENT
                                |Context.BIND_WAIVE_PRIORITY)) == Context.BIND_AUTO_CREATE) {
                            hasCreate = true;
                            break;
                        }