1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2019 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15--> 16 17<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:settings="http://schemas.android.com/apk/res-auto"> 19 20 <Preference 21 android:key="version" 22 android:textColor="?android:attr/textColorSecondary" 23 android:selectable="false"/> 24 25 <com.android.settingslib.RestrictedSwitchPreference 26 android:key="always_on_vpn" 27 android:title="@string/vpn_menu_lockdown" 28 android:defaultValue="false" 29 android:summary="@string/vpn_always_on_summary" 30 settings:userRestriction="no_config_vpn" 31 settings:useAdditionalSummary="true" 32 settings:restrictedSwitchSummary="@string/disabled_by_admin_summary_text" /> 33 34 <com.android.settingslib.RestrictedSwitchPreference 35 android:key="lockdown_vpn" 36 android:title="@string/vpn_require_connection" 37 android:defaultValue="false" 38 android:dependency="always_on_vpn" 39 settings:userRestriction="no_config_vpn" 40 settings:useAdditionalSummary="true" 41 settings:restrictedSwitchSummary="@string/disabled_by_admin_summary_text" /> 42 43 <com.android.settingslib.RestrictedPreference 44 android:key="forget_vpn" 45 android:title="@string/vpn_forget_long" 46 android:icon="@drawable/ic_delete" 47 settings:userRestriction="no_config_vpn" 48 settings:useAdminDisabledSummary="true" /> 49</PreferenceScreen> 50