Allow Settings to set background data restrict on secondary users.
Bug: 22721091 Change-Id: Iadfbd25f75f233f2c3c080e0de05b0244572b6cd
This commit is contained in:
@@ -1520,9 +1520,14 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
|
||||
}
|
||||
|
||||
synchronized (mRulesLock) {
|
||||
final int oldPolicy = mUidPolicy.get(uid, POLICY_NONE);
|
||||
if (oldPolicy != policy) {
|
||||
setUidPolicyUncheckedLocked(uid, policy, true);
|
||||
final long token = Binder.clearCallingIdentity();
|
||||
try {
|
||||
final int oldPolicy = mUidPolicy.get(uid, POLICY_NONE);
|
||||
if (oldPolicy != policy) {
|
||||
setUidPolicyUncheckedLocked(uid, policy, true);
|
||||
}
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(token);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user