Add settings UI for MANAGE_EXTERNAL_STORAGE
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
This commit is contained in:
@@ -20,6 +20,15 @@
|
||||
android:key="special_app_access_screen"
|
||||
android:title="@string/special_access">
|
||||
|
||||
<Preference
|
||||
android:key="manage_external_storage"
|
||||
android:title="@string/manage_external_storage_title"
|
||||
android:fragment="com.android.settings.applications.manageapplications.ManageApplications">
|
||||
<extra
|
||||
android:name="classname"
|
||||
android:value="com.android.settings.Settings$ManageExternalStorageActivity" />
|
||||
</Preference>
|
||||
|
||||
<Preference
|
||||
android:key="high_power_apps"
|
||||
android:title="@string/high_power_apps"
|
||||
|
||||
Reference in New Issue
Block a user