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

Commit 0ebd7a71 authored by Rafal Slawik's avatar Rafal Slawik
Browse files

Combine CpuTimePerUidFreq uids using base uids

http://ag/13181177 normalized uids to their base uids only for apps.
However, other processes (e.g. settings) run under multiple uids in some
cases too. So we need to normalize all uids.

Bug: 157535126
Test: cmd stats pull-source 10010
Change-Id: I427d84203ed97ab0b17890f06304cd4ff8a5c3b0
parent 5f092e38
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1532,8 +1532,8 @@ public class StatsPullAtomService extends SystemService {
                // All shared app gids are accounted together.
                uid = LAST_SHARED_APPLICATION_GID;
                mutateInPlace = true;
            } else if (UserHandle.isApp(uid)) {
                // Apps are accounted under their app id.
            } else {
                // Everything else is accounted under their base uid.
                uid = UserHandle.getAppId(uid);
            }