Add Media Management Apps activity in Special App Access
Add a settings page to control the permission MANAGE_MEDIA in Special App Access. Apps can launch it by ACTION_REQUEST_MANAGE_MEDIA. Test: m -j RunSettingsRoboTests ROBOTEST_FILTER=MediaManagementAppsDetailsTest Test: m -j RunSettingsRoboTests Test: manual Bug: 181112025 Change-Id: Id7587cf179b8c5adbfd6477ca9c2d4a20a9852bb
This commit is contained in:
30
res/xml/media_management_apps.xml
Normal file
30
res/xml/media_management_apps.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
~ Copyright (C) 2021 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"
|
||||
android:title="@string/media_management_apps_title">
|
||||
|
||||
<com.android.settings.widget.FilterTouchesSwitchPreference
|
||||
android:key="media_management_apps_toggle"
|
||||
android:title="@string/media_management_apps_toggle_label" />
|
||||
|
||||
<com.android.settingslib.widget.FooterPreference
|
||||
android:key="media_management_apps_description"
|
||||
android:title="@string/media_management_apps_description"
|
||||
android:selectable="false" />
|
||||
|
||||
</PreferenceScreen>
|
||||
@@ -60,6 +60,16 @@
|
||||
android:fragment="com.android.settings.notification.zen.ZenAccessSettings"
|
||||
settings:controller="com.android.settings.applications.specialaccess.zenaccess.ZenAccessController" />
|
||||
|
||||
<Preference
|
||||
android:key="media_management_apps"
|
||||
android:title="@string/media_management_apps_title"
|
||||
android:fragment="com.android.settings.applications.manageapplications.ManageApplications"
|
||||
settings:keywords="@string/keywords_media_management_apps">
|
||||
<extra
|
||||
android:name="classname"
|
||||
android:value="com.android.settings.Settings$MediaManagementAppsActivity" />
|
||||
</Preference>
|
||||
|
||||
<Preference
|
||||
android:key="write_settings_apps"
|
||||
android:title="@string/write_settings"
|
||||
|
||||
Reference in New Issue
Block a user