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

Commit 514081cb authored by Ray Essick's avatar Ray Essick Committed by android-build-merger
Browse files

Merge "Blur media.metrics timestamps for privacy" into oc-mr1-dev am: ac18a847

am: 2e2fb655

Change-Id: Iec2e7cff838593fc72cf19baaade50e0d01c4d62
parents fe628c5c 2e2fb655
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -222,6 +222,8 @@ MediaAnalyticsItem::SessionID_t MediaAnalyticsService::submit(MediaAnalyticsItem

    // we control these, generally not trusting user input
    nsecs_t now = systemTime(SYSTEM_TIME_REALTIME);
    // round nsecs to seconds
    now = ((now + 500000000) / 1000000000) * 1000000000;
    item->setTimestamp(now);
    int pid = IPCThreadState::self()->getCallingPid();
    int uid = IPCThreadState::self()->getCallingUid();