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

Commit e630f7b3 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Clear identity when updating network stats.

Bug: 5945461
Change-Id: Ie51ea3f107a705c395b65684f21bf4c28c7f4d33
parent 4d6da864
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);
        }
    }

    /**