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

Commit 02f134aa authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Clear identity when updating network stats."

parents dcaf1adc e630f7b3
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -510,7 +510,13 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
    @Override
    public void forceUpdate() {
        mContext.enforceCallingOrSelfPermission(READ_NETWORK_USAGE_HISTORY, TAG);

        final long token = Binder.clearCallingIdentity();
        try {
            performPoll(FLAG_PERSIST_ALL);
        } finally {
            Binder.restoreCallingIdentity(token);
        }
    }

    /**