From 72eb3f94027f2a64c27157cb9bb1ea675e77c4d5 Mon Sep 17 00:00:00 2001 From: Evan Severson Date: Wed, 29 Nov 2023 22:48:26 +0000 Subject: Remove WRITE_MEDIA_* appops from runtime permission ops These don't have any associated permissions today so they don't belong on this list. Luckily today the only reference to the list is in the static {} block where they have been getting skipped, but that might not be true in the future. Change-Id: Ie81d3611495102e7ec05447c4e3645971654361e Test: Boot device Fixes: 313993729 --- core/java/android/app/AppOpsManager.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/java/android/app/AppOpsManager.java b/core/java/android/app/AppOpsManager.java index c5e132fc0c4b..aec042739c0d 100644 --- a/core/java/android/app/AppOpsManager.java +++ b/core/java/android/app/AppOpsManager.java @@ -2391,12 +2391,9 @@ public class AppOpsManager { OP_ACTIVITY_RECOGNITION, // Aural OP_READ_MEDIA_AUDIO, - OP_WRITE_MEDIA_AUDIO, // Visual OP_READ_MEDIA_VIDEO, - OP_WRITE_MEDIA_VIDEO, OP_READ_MEDIA_IMAGES, - OP_WRITE_MEDIA_IMAGES, OP_READ_MEDIA_VISUAL_USER_SELECTED, // Nearby devices OP_BLUETOOTH_SCAN, -- cgit v1.2.3-59-g8ed1b