Merge "Private DNS: Do not apply user restriction to system"

This commit is contained in:
TreeHugger Robot
2019-02-09 21:01:27 +00:00
committed by Android (Google) Code Review

View File

@@ -743,6 +743,9 @@ public class UserRestrictionsUtils {
case android.provider.Settings.Global.PRIVATE_DNS_MODE:
case android.provider.Settings.Global.PRIVATE_DNS_SPECIFIER:
if (callingUid == Process.SYSTEM_UID) {
return false;
}
restriction = UserManager.DISALLOW_CONFIG_PRIVATE_DNS;
break;
default: