Add the new content protection preference option and subpage in Settings -> Security & privacy -> More security & privacy settings.

Bug: 302189945
Test: robotests
m -j256 Settings
atest SettingsRoboTests:ContentProtectionPreferenceControllerTest
atest SettingsRoboTests:ContentProtectionPreferenceFragmentTest

Change-Id: I620d73f8674c1340f9b11cd910620f1d5afb0ec1
This commit is contained in:
Wa Gao
2023-10-07 00:15:17 +00:00
parent db679c9100
commit c80dfbccb6
8 changed files with 511 additions and 1 deletions

View File

@@ -119,6 +119,15 @@
android:key="security_category"
android:title="@string/security_header" />
<Preference
android:order="230"
android:key="content_protection_preference"
android:title="@string/content_protection_preference_title"
android:summary="@string/content_protection_preference_summary"
android:fragment="com.android.settings.security.ContentProtectionPreferenceFragment"
settings:keywords="@string/content_protection_preference_title"
settings:controller="com.android.settings.security.ContentProtectionPreferenceController" />
<PreferenceCategory
android:order="240"
android:key="security_settings_device_admin_category"
@@ -213,4 +222,4 @@
</PreferenceScreen>
</PreferenceScreen>