From 4d62bdba9772a38a13a9e63ea310914adf3acc33 Mon Sep 17 00:00:00 2001 From: Bernardo Rufino Date: Thu, 14 Jan 2021 10:10:45 +0000 Subject: [PATCH] Add privileged to BROADCAST_CLOSE_SYSTEM_DIALOGS CellBroadcastReceiver, a mainline module signed with the networkstack, needs it before showing emergency alerts to the user. This is inline and ok with the rest of of the restrictions given that STATUS_BAR that allows calls to StatusBarManager.collapsePanels() also has "privileged" protection level. Also adding permission to privapp-permissions-platform for Launcher3 because of b/177506944, despite it getting it via "recents" protection level. Bug: 177346942 Bug: 159105552 Test: atest PermissionPolicyTest Change-Id: If027c6824a58c8b9a917f9995e34bf8b306cab54 --- core/res/AndroidManifest.xml | 2 +- data/etc/privapp-permissions-platform.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index ce3ed9dc8ba63..fcc665a5cea85 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -4297,7 +4297,7 @@

Not for use by third-party applications. --> + android:protectionLevel="signature|privileged|recents" />