This CL adds a setting for each VPN - When no_config_vpn user restriction is applied, user can't change anything in the page - Launch the subsetting activity in the corresponding user to unlock keystore and force work challenge - Show dialog when user replace always-on-VPN package - When forget VPN, unset always-on-vpn TODO: show per-VPN status in VPN list Change-Id: Ica360ea44117db6a4ecfaed1eec6c188189c246c
39 lines
1.6 KiB
XML
39 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2016 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"
|
|
android:title="@string/vpn_title">
|
|
|
|
<Preference
|
|
android:key="version"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:selectable="false"/>
|
|
|
|
<com.android.settingslib.RestrictedSwitchPreference
|
|
android:key="always_on_vpn"
|
|
android:title="@string/vpn_menu_lockdown"
|
|
android:defaultValue="false"
|
|
settings:userRestriction="no_config_vpn"/>
|
|
|
|
<com.android.settings.DimmableIconPreference
|
|
android:key="forget_vpn"
|
|
android:title="@string/vpn_forget_long"
|
|
android:icon="@drawable/ic_menu_delete"
|
|
settings:userRestriction="no_config_vpn"
|
|
settings:useAdminDisabledSummary="true" />
|
|
</PreferenceScreen>
|