Adds a Special App Access setting for the app-op OP_MANAGE_EXTERNAL_STORAGE. All apps requesting the corresponding permission will be displayed in the settings page. Toggling the preference switch for an app will grant/revoke the app-op. All of the external references to the permission, app-op and their corresponding activities and logic use the name "Manage External Storage". All of the external displays and strings use the name "All files access" Test: * Install app with uses-permission MANAGE_EXTERNAL_STORAGE * Observe it appearing the All files access page * Toggle the switch and observe the change in 'adb shell dumpsys appops' Bug: 146425146 Change-Id: If5c9c5daa3616a3310c090283acfda933bf9df26
30 lines
1.1 KiB
XML
30 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2020 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:key="manage_external_storage_permission_details"
|
|
android:title="@string/manage_external_storage_title">
|
|
|
|
<SwitchPreference
|
|
android:key="app_ops_settings_switch"
|
|
android:title="@string/permit_manage_external_storage"/>
|
|
|
|
<Preference
|
|
android:summary="@string/allow_manage_external_storage_description"
|
|
android:selectable="false"/>
|
|
|
|
</PreferenceScreen>
|