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

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

Merge "Clear identity when checking if bandwidth enabled."

parents 9ae1b69f 49c1d176
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1050,11 +1050,14 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
    }

    private boolean isBandwidthControlEnabled() {
        final long token = Binder.clearCallingIdentity();
        try {
            return mNetworkManager.isBandwidthControlEnabled();
        } catch (RemoteException e) {
            // ignored; service lives in system_server
            return false;
        } finally {
            Binder.restoreCallingIdentity(token);
        }
    }