We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d772c48 + 6c0b4f3 commit 9632189Copy full SHA for 9632189
services/java/com/android/server/net/NetworkPolicyManagerService.java
@@ -1407,7 +1407,13 @@ public NetworkPolicy[] getNetworkPolicies() {
1407
@Override
1408
public void snoozeLimit(NetworkTemplate template) {
1409
mContext.enforceCallingOrSelfPermission(MANAGE_NETWORK_POLICY, TAG);
1410
- performSnooze(template, TYPE_LIMIT);
+
1411
+ final long token = Binder.clearCallingIdentity();
1412
+ try {
1413
+ performSnooze(template, TYPE_LIMIT);
1414
+ } finally {
1415
+ Binder.restoreCallingIdentity(token);
1416
+ }
1417
}
1418
1419
private void performSnooze(NetworkTemplate template, int type) {
0 commit comments