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

Commit 96321890 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Clear identity when snoozing limit." into jb-dev

parents d772c487 6c0b4f39
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1407,7 +1407,13 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
    @Override
    public void snoozeLimit(NetworkTemplate template) {
        mContext.enforceCallingOrSelfPermission(MANAGE_NETWORK_POLICY, TAG);

        final long token = Binder.clearCallingIdentity();
        try {
            performSnooze(template, TYPE_LIMIT);
        } finally {
            Binder.restoreCallingIdentity(token);
        }
    }

    private void performSnooze(NetworkTemplate template, int type) {