commit | 16d588c11a738d24704688b3bad58bcfe17a20c8 | [log] [tgz] |
---|---|---|
author | Pavel Grafov <pgrafov@google.com> | Thu Mar 18 22:46:08 2021 +0000 |
committer | Pavel Grafov <pgrafov@google.com> | Wed Mar 31 15:20:11 2021 +0000 |
tree | 4901446e93ad6148eebe7e3cae7edf51a2842025 | |
parent | 7d9233302ffa5877bd5923a28bab4d9e423da7b9 [diff] |
Prevent disconnecting admin-configured VPN First, if the VPN is configured by an admin, the preference is disabled and tapping on it will results in a policy disclouser dialog. In addition restriction checks in the dialog also check if the VPN is admin-configured. Bug: 179975048 Test: Manual, setting VPN in profile and primary user and via DPM API. Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.vpn2 Change-Id: Id59d2ac2782e83601bc3093d3a092faea36ff5d9