From d0fe35e8b43af4992b69e5e2700f0152f5a16bf0 Mon Sep 17 00:00:00 2001 From: kholoud mohamed Date: Mon, 8 Nov 2021 22:28:17 +0000 Subject: [PATCH] Create new QUERY_USERS permission This new permission allows the holder to query information of all users on the device. Bug: 188410712 Bug: 205707885 Bug: 206106797 Test: N/A Change-Id: I7c8bba963d18994e9750af9ba9ca4524a9fe3b54 --- core/api/system-current.txt | 1 + core/res/AndroidManifest.xml | 5 +++++ packages/Shell/AndroidManifest.xml | 1 + 3 files changed, 7 insertions(+) diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 992789bbbb75f..1437ab6af7043 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -219,6 +219,7 @@ package android { field public static final String PROVIDE_TRUST_AGENT = "android.permission.PROVIDE_TRUST_AGENT"; field public static final String QUERY_ADMIN_POLICY = "android.permission.QUERY_ADMIN_POLICY"; field public static final String QUERY_TIME_ZONE_RULES = "android.permission.QUERY_TIME_ZONE_RULES"; + field public static final String QUERY_USERS = "android.permission.QUERY_USERS"; field public static final String RADIO_SCAN_WITHOUT_LOCATION = "android.permission.RADIO_SCAN_WITHOUT_LOCATION"; field public static final String READ_ACTIVE_EMERGENCY_SESSION = "android.permission.READ_ACTIVE_EMERGENCY_SESSION"; field public static final String READ_APP_SPECIFIC_LOCALES = "android.permission.READ_APP_SPECIFIC_LOCALES"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 04d6171d05cd6..d5407fe0db803 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -2791,6 +2791,11 @@ + + + diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index 262cf536eff55..bb6fd59cf5f11 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -200,6 +200,7 @@ +