We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81d9433 commit 49c1d17Copy full SHA for 49c1d17
services/java/com/android/server/net/NetworkStatsService.java
@@ -1050,11 +1050,14 @@ private void assertBandwidthControlEnabled() {
1050
}
1051
1052
private boolean isBandwidthControlEnabled() {
1053
+ final long token = Binder.clearCallingIdentity();
1054
try {
1055
return mNetworkManager.isBandwidthControlEnabled();
1056
} catch (RemoteException e) {
1057
// ignored; service lives in system_server
1058
return false;
1059
+ } finally {
1060
+ Binder.restoreCallingIdentity(token);
1061
1062
1063
0 commit comments