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

Commit 76f0cd02 authored by Ruchir Rastogi's avatar Ruchir Rastogi Committed by Automerger Merge Worker
Browse files

Merge "Fix AppBreadcrumbReported bug with isolated uid" into rvc-dev am:...

Merge "Fix AppBreadcrumbReported bug with isolated uid" into rvc-dev am: 62a2b602 am: f7952e93 am: 7a06576a am: 55750b24

Change-Id: I1fe6d14f7ed1f73af70555fbb526d68ae8e1933f
parents 19b22d41 55750b24
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -391,7 +391,10 @@ bool MetricsManager::eventSanityCheck(const LogEvent& event) {
            VLOG("APP_BREADCRUMB_REPORTED had error when parsing the uid");
            return false;
        }
        int32_t loggerUid = event.GetUid();

        // Because the uid within the LogEvent may have been mapped from
        // isolated to host, map the loggerUid similarly before comparing.
        int32_t loggerUid = mUidMap->getHostUidOrSelf(event.GetUid());
        if (loggerUid != appHookUid && loggerUid != AID_STATSD) {
            VLOG("APP_BREADCRUMB_REPORTED has invalid uid: claimed %ld but caller is %d",
                 appHookUid, loggerUid);