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

Commit 49c1d176 authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Clear identity when checking if bandwidth enabled.

Change-Id: I0f10f86dc14483e29609057c671454b322da4826
parent 81d94335
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1050,11 +1050,14 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
    }
    }


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