Loading cmds/statsd/src/metrics/MetricsManager.cpp +8 −5 Original line number Original line Diff line number Diff line Loading @@ -391,7 +391,10 @@ bool MetricsManager::eventSanityCheck(const LogEvent& event) { VLOG("APP_BREADCRUMB_REPORTED had error when parsing the uid"); VLOG("APP_BREADCRUMB_REPORTED had error when parsing the uid"); return false; 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) { if (loggerUid != appHookUid && loggerUid != AID_STATSD) { VLOG("APP_BREADCRUMB_REPORTED has invalid uid: claimed %ld but caller is %d", VLOG("APP_BREADCRUMB_REPORTED has invalid uid: claimed %ld but caller is %d", appHookUid, loggerUid); appHookUid, loggerUid); Loading Loading
cmds/statsd/src/metrics/MetricsManager.cpp +8 −5 Original line number Original line Diff line number Diff line Loading @@ -391,7 +391,10 @@ bool MetricsManager::eventSanityCheck(const LogEvent& event) { VLOG("APP_BREADCRUMB_REPORTED had error when parsing the uid"); VLOG("APP_BREADCRUMB_REPORTED had error when parsing the uid"); return false; 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) { if (loggerUid != appHookUid && loggerUid != AID_STATSD) { VLOG("APP_BREADCRUMB_REPORTED has invalid uid: claimed %ld but caller is %d", VLOG("APP_BREADCRUMB_REPORTED has invalid uid: claimed %ld but caller is %d", appHookUid, loggerUid); appHookUid, loggerUid); Loading