Change MANAGE_EXTERNAL_STORAGE to signature|appop|preinstalled.

Will grant it to all preinstalled packages that request it. The set
of packages that may request it will be controlled by a GTS test.

Test: manual: request the permission from com.google.android.documentsui
      and check that the grant state == granted.
Test: make
Test: atest CtsPermission2TestCases

Bug: 146999779

Change-Id: Ife7f878898c329363e5f6c4a00209f0741db93eb
This commit is contained in:
Narayan Kamath
2020-01-09 10:51:28 +00:00
parent bde15c3c9a
commit 08cff4b60c

View File

@@ -934,11 +934,10 @@
<!-- Allows an application a broad access to external storage in scoped storage.
Intended to be used by few apps that need to manage files on behalf of the users.
<p>Protection level: signature|appop
<p>This protection level is temporary and will most likely be changed to |preinstalled -->
<p>Protection level: signature|appop|preinstalled -->
<permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE"
android:permissionGroup="android.permission-group.UNDEFINED"
android:protectionLevel="signature|appop" />
android:protectionLevel="signature|appop|preinstalled" />
<!-- ====================================================================== -->
<!-- Permissions for accessing the device location -->