Rename READ_MEDIA_IMAGE to READ_MEDIA_IMAGES
This permission was only created very recently, and it is unlikely that any apps are using it yet. After its creation, it was decided that it should be renamed. Bug: 223691971 Test: atest CtsPermissionTestCases CtsPermission3TestCases Change-Id: I9c171161e2c60d38c14e167ea7b7b87bf1235e1b
This commit is contained in:
@@ -142,7 +142,7 @@ package android {
|
||||
field @Deprecated public static final String READ_INPUT_STATE = "android.permission.READ_INPUT_STATE";
|
||||
field public static final String READ_LOGS = "android.permission.READ_LOGS";
|
||||
field public static final String READ_MEDIA_AUDIO = "android.permission.READ_MEDIA_AUDIO";
|
||||
field public static final String READ_MEDIA_IMAGE = "android.permission.READ_MEDIA_IMAGE";
|
||||
field public static final String READ_MEDIA_IMAGES = "android.permission.READ_MEDIA_IMAGES";
|
||||
field public static final String READ_MEDIA_VIDEO = "android.permission.READ_MEDIA_VIDEO";
|
||||
field public static final String READ_NEARBY_STREAMING_POLICY = "android.permission.READ_NEARBY_STREAMING_POLICY";
|
||||
field public static final String READ_PHONE_NUMBERS = "android.permission.READ_PHONE_NUMBERS";
|
||||
|
||||
@@ -2367,7 +2367,7 @@ public class AppOpsManager {
|
||||
null, // no permission for OP_WRITE_MEDIA_AUDIO
|
||||
Manifest.permission.READ_MEDIA_VIDEO,
|
||||
null, // no permission for OP_WRITE_MEDIA_VIDEO
|
||||
Manifest.permission.READ_MEDIA_IMAGE,
|
||||
Manifest.permission.READ_MEDIA_IMAGES,
|
||||
null, // no permission for OP_WRITE_MEDIA_IMAGES
|
||||
null, // no permission for OP_LEGACY_STORAGE
|
||||
null, // no permission for OP_ACCESS_ACCESSIBILITY
|
||||
|
||||
@@ -1030,10 +1030,10 @@
|
||||
targetSdkVersion}</a> of {@link android.os.Build.VERSION_CODES#S} or lower, this permission
|
||||
must not be used and the READ_EXTERNAL_STORAGE permission must be used instead.
|
||||
<p>Protection level: dangerous -->
|
||||
<permission android:name="android.permission.READ_MEDIA_IMAGE"
|
||||
<permission android:name="android.permission.READ_MEDIA_IMAGES"
|
||||
android:permissionGroup="android.permission-group.UNDEFINED"
|
||||
android:label="@string/permlab_readMediaImage"
|
||||
android:description="@string/permdesc_readMediaImage"
|
||||
android:label="@string/permlab_readMediaImages"
|
||||
android:description="@string/permdesc_readMediaImages"
|
||||
android:protectionLevel="dangerous" />
|
||||
|
||||
<!-- Allows an application to write to external storage.
|
||||
|
||||
@@ -1918,9 +1918,9 @@
|
||||
<string name="permdesc_readMediaVideo">Allows the app to read video files from your shared storage.</string>
|
||||
|
||||
<!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. "shared storage" refers to a storage space on the device that all apps with this permission can read from. [CHAR LIMIT=none] -->
|
||||
<string name="permlab_readMediaImage">read image files from shared storage</string>
|
||||
<string name="permlab_readMediaImages">read image files from shared storage</string>
|
||||
<!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. "shared storage" refers to a storage space on the device that all apps with this permission can read from. [CHAR LIMIT=none] -->
|
||||
<string name="permdesc_readMediaImage">Allows the app to read image files from your shared storage.</string>
|
||||
<string name="permdesc_readMediaImages">Allows the app to read image files from your shared storage.</string>
|
||||
|
||||
<!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. "shared storage" refers to a storage space on the device that all apps with this permission can write to. [CHAR LIMIT=none] -->
|
||||
<string name="permlab_sdcardWrite">modify or delete the contents of your shared storage</string>
|
||||
|
||||
@@ -241,7 +241,7 @@
|
||||
</split-permission>
|
||||
<split-permission name="android.permission.READ_EXTERNAL_STORAGE"
|
||||
targetSdk="33">
|
||||
<new-permission name="android.permission.READ_MEDIA_IMAGE" />
|
||||
<new-permission name="android.permission.READ_MEDIA_IMAGES" />
|
||||
</split-permission>
|
||||
<split-permission name="android.permission.BLUETOOTH"
|
||||
targetSdk="31">
|
||||
|
||||
Reference in New Issue
Block a user