Add Widevine developer option to settings

Bug: 301669353
Change-Id: Idcca4cc6ce2e614a79a0ac95eb8c39cf05b91f56
This commit is contained in:
Kyle Zhang
2023-10-03 23:25:01 +00:00
parent a1903353da
commit 061cf714f8
4 changed files with 153 additions and 0 deletions

View File

@@ -619,6 +619,11 @@
android:title="@string/transcode_settings_title"
android:fragment="com.android.settings.development.transcode.TranscodeSettingsFragment" />
<Preference
android:key="widevine_settings"
android:title="@string/widevine_settings_title"
android:fragment="com.android.settings.development.widevine.WidevineSettingsFragment" />
</PreferenceCategory>
<PreferenceCategory

View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2023 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:title="@string/widevine_settings_title"
settings:searchable="false">
<SwitchPreference
android:key="force_l3_fallback"
android:title="@string/force_l3_fallback_title"
android:summary="@string/force_l3_fallback_summary"
settings:controller="com.android.settings.development.widevine.ForceL3FallbackPreferenceController" />
</PreferenceScreen>