From 63a2278e0b7d0063a77e566710a87d2b214002e8 Mon Sep 17 00:00:00 2001 From: kholoud mohamed Date: Mon, 15 Mar 2021 16:46:58 +0000 Subject: [PATCH] Create new permission QUERY_AUDIO_STATE Created a new permission to allow access to device audio state and granted it to shell. Test: N/A Bug: 182260585 Change-Id: If1bfcb1341402717fec74cc704caa7e1eb18fa2e --- core/api/test-current.txt | 1 + core/res/AndroidManifest.xml | 5 +++++ packages/Shell/AndroidManifest.xml | 1 + 3 files changed, 7 insertions(+) diff --git a/core/api/test-current.txt b/core/api/test-current.txt index a7ca44cd4a5ca..7b6f8947f9c97 100644 --- a/core/api/test-current.txt +++ b/core/api/test-current.txt @@ -28,6 +28,7 @@ package android { field public static final String NETWORK_SETTINGS = "android.permission.NETWORK_SETTINGS"; field public static final String NETWORK_STACK = "android.permission.NETWORK_STACK"; field public static final String OVERRIDE_DISPLAY_MODE_REQUESTS = "android.permission.OVERRIDE_DISPLAY_MODE_REQUESTS"; + field public static final String QUERY_AUDIO_STATE = "android.permission.QUERY_AUDIO_STATE"; field public static final String QUERY_USERS = "android.permission.QUERY_USERS"; field public static final String READ_CELL_BROADCASTS = "android.permission.READ_CELL_BROADCASTS"; field public static final String READ_PRIVILEGED_PHONE_STATE = "android.permission.READ_PRIVILEGED_PHONE_STATE"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 99ad6d100e556..5d638184f0e66 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -4365,6 +4365,11 @@ + + +