From 215c5e9115d608ef81aacc424f68bec6b238a653 Mon Sep 17 00:00:00 2001 From: Brad Ebinger Date: Tue, 16 Feb 2021 03:51:57 +0000 Subject: [PATCH] Define new ACCESS_RCS_USER_CAPABILITY_EXCHANGE permission Defines a new ACCESS_RCS_USER_CAPABILITY_EXCHANGE permission and integrate it into role manager to be granted to system apps holding the SMS, Dialer, and (newly defined) contacts role. Adds permissions to new shell role for CTS testing. Bug: 174861641 Bug: 154764486 Test: set TestRcsApp as each role and ensure the permission is granted Change-Id: I863f2e6e1afffce5e8ea103790cf368c59734029 --- core/api/system-current.txt | 2 ++ core/res/AndroidManifest.xml | 15 ++++++++++++++- core/res/res/values/config.xml | 2 ++ core/res/res/values/public.xml | 2 ++ packages/Shell/AndroidManifest.xml | 6 ++++++ 5 files changed, 26 insertions(+), 1 deletion(-) diff --git a/core/api/system-current.txt b/core/api/system-current.txt index f330a9355cfba..cbdca8f15c75e 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -14,6 +14,7 @@ package android { field public static final String ACCESS_MTP = "android.permission.ACCESS_MTP"; field public static final String ACCESS_NETWORK_CONDITIONS = "android.permission.ACCESS_NETWORK_CONDITIONS"; field public static final String ACCESS_NOTIFICATIONS = "android.permission.ACCESS_NOTIFICATIONS"; + field public static final String ACCESS_RCS_USER_CAPABILITY_EXCHANGE = "android.permission.ACCESS_RCS_USER_CAPABILITY_EXCHANGE"; field public static final String ACCESS_SHARED_LIBRARIES = "android.permission.ACCESS_SHARED_LIBRARIES"; field public static final String ACCESS_SHORTCUTS = "android.permission.ACCESS_SHORTCUTS"; field public static final String ACCESS_SURFACE_FLINGER = "android.permission.ACCESS_SURFACE_FLINGER"; @@ -343,6 +344,7 @@ package android { field public static final int config_helpPackageNameValue = 17039388; // 0x104001c field public static final int config_systemAutomotiveCluster = 17039400; // 0x1040028 field public static final int config_systemAutomotiveProjection = 17039401; // 0x1040029 + field public static final int config_systemContacts = 17039403; // 0x104002b field public static final int config_systemGallery = 17039399; // 0x1040027 field public static final int config_systemShell = 17039402; // 0x104002a } diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index fbc1d4fe0ea2e..4a2d3f3946d52 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1313,11 +1313,13 @@ android:protectionLevel="dangerous|instant" /> - + Protection level: signature|privileged + @deprecated Framework should no longer use this permission to access the vendor UCE service + using AIDL, it is instead implemented by RcsCapabilityExchangeImplBase --> + + + diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index dd048f3e09932..cc23f77a7929a 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -1948,6 +1948,8 @@ com.android.shell + + com.android.contacts diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index fdef08bc5faab..f2e752b6d1f4c 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -3134,6 +3134,8 @@ + + diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index 539a81bf43a03..a0678366eea28 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -345,6 +345,12 @@ + + + + + +