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

Commit 624d1552 authored by Bo Liu's avatar Bo Liu
Browse files

Use app uid for comparing isolated service group

Bug: 111434506
Test: Local manual test of group of bindIsolatedService are coutned as
one cached process.

Change-Id: I68b29f87c9813ff261981626c83997e518816081
parent 4260098e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -392,14 +392,14 @@ public final class OomAdjuster {
                        mNumCachedHiddenProcs++;
                        numCached++;
                        if (app.connectionGroup != 0) {
                            if (lastCachedGroupUid == app.uid
                            if (lastCachedGroupUid == app.info.uid
                                    && lastCachedGroup == app.connectionGroup) {
                                // If this process is the next in the same group, we don't
                                // want it to count against our limit of the number of cached
                                // processes, so bump up the group count to account for it.
                                numCachedExtraGroup++;
                            } else {
                                lastCachedGroupUid = app.uid;
                                lastCachedGroupUid = app.info.uid;
                                lastCachedGroup = app.connectionGroup;
                            }
                        } else {