Clear identity when checking if bandwidth enabled.
Change-Id: I0f10f86dc14483e29609057c671454b322da4826
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user