diff options
Diffstat (limited to 'services/java/com/android/server/net')
-rw-r--r-- | services/java/com/android/server/net/NetworkPolicyManagerService.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/services/java/com/android/server/net/NetworkPolicyManagerService.java b/services/java/com/android/server/net/NetworkPolicyManagerService.java index c4abac9..d4e9cbc 100644 --- a/services/java/com/android/server/net/NetworkPolicyManagerService.java +++ b/services/java/com/android/server/net/NetworkPolicyManagerService.java @@ -1407,7 +1407,13 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub { @Override public void snoozeLimit(NetworkTemplate template) { mContext.enforceCallingOrSelfPermission(MANAGE_NETWORK_POLICY, TAG); - performSnooze(template, TYPE_LIMIT); + + final long token = Binder.clearCallingIdentity(); + try { + performSnooze(template, TYPE_LIMIT); + } finally { + Binder.restoreCallingIdentity(token); + } } private void performSnooze(NetworkTemplate template, int type) { |