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

Commit 2e2fb655 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

Change-Id: I8529957b0e8bd7cc6d2ea97ec13795bd32f9f969
parents ab819de1 ac18a847
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();