This change refactors common biometric settings code as well to minimize
duplicated code in areas such as:
    Preference Controller
    EnrollBase
    EnrollIntro
This change also updates ChooseLock to have Face + Pin/Pattern/Pass
Bug: 110589286
Test: Fingerprint settings/enrollment still works
Test: make -j56 RunSettingsRoboTests
Change-Id: Ie35406a01b85617423beece42683ac086e9bc4a7
		
	
		
			
				
	
	
		
			164 lines
		
	
	
		
			6.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			164 lines
		
	
	
		
			6.5 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <!--
 | |
|   Copyright (C) 2018 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-auto"
 | |
|     android:key="security_dashboard_page"
 | |
|     android:title="@string/security_settings_title"
 | |
|     settings:initialExpandedChildrenCount="9">
 | |
| 
 | |
|     <!-- security_settings_status.xml -->
 | |
|     <PreferenceCategory
 | |
|         android:order="-10"
 | |
|         android:key="security_status"
 | |
|         android:title="@string/security_status_title" />
 | |
| 
 | |
|     <PreferenceCategory
 | |
|         android:order="1"
 | |
|         android:key="dashboard_tile_placeholder" />
 | |
| 
 | |
|     <!-- security section -->
 | |
|     <PreferenceCategory
 | |
|         android:order="10"
 | |
|         android:key="security_category"
 | |
|         android:title="@string/lock_settings_title">
 | |
| 
 | |
|         <com.android.settings.widget.GearPreference
 | |
|             android:key="unlock_set_or_change"
 | |
|             android:title="@string/unlock_set_unlock_launch_picker_title"
 | |
|             android:summary="@string/summary_placeholder"
 | |
|             settings:keywords="@string/keywords_lockscreen" />
 | |
| 
 | |
|         <Preference
 | |
|             android:key="fingerprint_settings"
 | |
|             android:title="@string/security_settings_fingerprint_preference_title"
 | |
|             android:summary="@string/summary_placeholder"
 | |
|             settings:keywords="@string/keywords_fingerprint_settings" />
 | |
| 
 | |
|         <Preference
 | |
|             android:key="face_settings"
 | |
|             android:title="@string/security_settings_face_preference_title"
 | |
|             android:summary="@string/summary_placeholder"
 | |
|             settings:keywords="@string/keywords_face_settings" />
 | |
|     </PreferenceCategory>
 | |
| 
 | |
|     <!-- work profile security section -->
 | |
|     <PreferenceCategory
 | |
|         android:order="20"
 | |
|         android:key="security_category_profile"
 | |
|         android:title="@string/lock_settings_profile_title">
 | |
| 
 | |
|         <!-- security_settings_unification -->
 | |
|         <com.android.settingslib.RestrictedSwitchPreference
 | |
|             android:key="unification"
 | |
|             android:title="@string/lock_settings_profile_unification_title"
 | |
|             android:summary="@string/lock_settings_profile_unification_summary"
 | |
|             settings:keywords="@string/keywords_unification" />
 | |
| 
 | |
|         <com.android.settingslib.RestrictedPreference
 | |
|             android:key="unlock_set_or_change_profile"
 | |
|             android:title="@string/unlock_set_unlock_launch_picker_title_profile"
 | |
|             android:summary="@string/unlock_set_unlock_mode_pattern"
 | |
|             settings:keywords="@string/keywords_lockscreen" />
 | |
| 
 | |
|         <SwitchPreference
 | |
|             android:key="visiblepattern_profile"
 | |
|             android:summary="@string/summary_placeholder"
 | |
|             android:title="@string/lockpattern_settings_enable_visible_pattern_title_profile"
 | |
|             settings:controller="com.android.settings.security.VisiblePatternProfilePreferenceController" />
 | |
| 
 | |
|         <Preference
 | |
|             android:key="fingerprint_settings_profile"
 | |
|             android:title="@string/security_settings_fingerprint_preference_title"
 | |
|             android:summary="@string/summary_placeholder" />
 | |
| 
 | |
|     </PreferenceCategory>
 | |
| 
 | |
|     <!-- security_settings_misc.xml -->
 | |
|     <PreferenceCategory
 | |
|         android:order="30"
 | |
|         android:key="security_settings_misc_category"
 | |
|         android:title="@string/security_passwords_title">
 | |
| 
 | |
|         <Preference
 | |
|             android:key="location"
 | |
|             android:title="@string/location_settings_title"
 | |
|             android:summary="@string/summary_placeholder"
 | |
|             android:fragment="com.android.settings.location.LocationSettings" />
 | |
| 
 | |
|         <SwitchPreference
 | |
|             android:key="show_password"
 | |
|             android:title="@string/show_password"
 | |
|             android:summary="@string/show_password_summary"
 | |
|             settings:controller="com.android.settings.security.ShowPasswordPreferenceController" />
 | |
| 
 | |
|     </PreferenceCategory>
 | |
| 
 | |
|     <PreferenceCategory
 | |
|         android:order="40"
 | |
|         android:key="security_settings_device_admin_category">
 | |
| 
 | |
|         <Preference
 | |
|             android:key="manage_device_admin"
 | |
|             android:title="@string/manage_device_admin"
 | |
|             android:summary="@string/summary_placeholder"
 | |
|             android:fragment="com.android.settings.applications.specialaccess.deviceadmin.DeviceAdminSettings"
 | |
|             settings:controller="com.android.settings.enterprise.ManageDeviceAdminPreferenceController" />
 | |
| 
 | |
|         <Preference
 | |
|             android:key="enterprise_privacy"
 | |
|             android:title="@string/enterprise_privacy_settings"
 | |
|             android:summary="@string/summary_placeholder"
 | |
|             android:fragment="com.android.settings.enterprise.EnterprisePrivacySettings" />
 | |
| 
 | |
|     </PreferenceCategory>
 | |
| 
 | |
|     <Preference
 | |
|         android:order="50"
 | |
|         android:key="sim_lock_settings"
 | |
|         android:title="@string/sim_lock_settings_category">
 | |
| 
 | |
|         <intent
 | |
|             android:action="android.intent.action.MAIN"
 | |
|             android:targetPackage="com.android.settings"
 | |
|             android:targetClass="com.android.settings.Settings$IccLockSettingsActivity" />
 | |
| 
 | |
|     </Preference>
 | |
| 
 | |
|     <Preference
 | |
|         android:order="60"
 | |
|         android:key="encryption_and_credential"
 | |
|         android:title="@string/encryption_and_credential_settings_title"
 | |
|         android:summary="@string/encryption_and_credential_settings_summary"
 | |
|         android:fragment="com.android.settings.security.EncryptionAndCredential" />
 | |
| 
 | |
|     <Preference
 | |
|         android:order="70"
 | |
|         android:key="manage_trust_agents"
 | |
|         android:title="@string/manage_trust_agents"
 | |
|         android:summary="@string/summary_placeholder"
 | |
|         android:fragment="com.android.settings.security.trustagent.TrustAgentSettings" />
 | |
| 
 | |
|     <Preference
 | |
|         android:order="80"
 | |
|         android:key="screen_pinning_settings"
 | |
|         android:title="@string/screen_pinning_title"
 | |
|         android:summary="@string/summary_placeholder"
 | |
|         android:fragment="com.android.settings.security.ScreenPinningSettings" />
 | |
| 
 | |
| </PreferenceScreen> |