From aea3cf40d61d5ecdbec729ff1e6ca06dcd7c3534 Mon Sep 17 00:00:00 2001 From: Adam Lesinski Date: Thu, 23 Feb 2017 18:17:11 -0800 Subject: [PATCH] Whitelist new CHANGE_OVERLAY_PACKAGES permission The Shell application needs access to change which overlays are enabled in OverlayManagerService. Test: Manual: invoke adb exec-out cmd overlay enable some.package.name when shell is not root (adb unroot on eng builds). Change-Id: I1849f68e244cfc9b1e13eb0e673dde7be03cba6d --- 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 64759ff61be96..b3ae891f43255 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -2138,7 +2138,7 @@ runtime resource overlays. @hide --> + android:protectionLevel="signature|privileged" /> diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml index 5226fe5e39094..bf3e793c0bdf3 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -253,6 +253,7 @@ applications that come with the platform +