commit | 2108f19b49b2050bc26f13081eccf8174ab5a748 | [log] [tgz] |
---|---|---|
author | Rubin Xu <rubinxu@google.com> | Tue Feb 18 17:49:06 2020 +0000 |
committer | Rubin Xu <rubinxu@google.com> | Wed Feb 19 10:11:23 2020 +0000 |
tree | 0a5001f048decec41bf8f6f4e2b0dc139a2ee98a | |
parent | 003dedcc7dfc8cf9ed6dc60df8e95654827f9930 [diff] |
Disable Settings toggle if admin has set always-on VPN If the admin has turned on always-on VPN, do not allow the user to modify it. In order to distinguish between a user-initiated always-on request and an admin-initiated one, DevicePolicyManager needs to track what the admin has set, and provide getter to be consumed by Settings code. Bug: 137938969 Test: manually set always-on VPN and check Settings is disabled Change-Id: Ief7454a2b66c487c23d06c2b4486a7107f8a385a