From dab68dcd4d9aa1886c300c73c02d4bc5ad524ec9 Mon Sep 17 00:00:00 2001 From: Joanne Date: Wed, 11 Jan 2023 19:14:58 +0800 Subject: [PATCH] Define a new permission to guard role-based application executing action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The system would like to enable Assistant to perform actions on behalf of users inside of applications. We introduce a permission that will be automatically granted to the assistant role. The application exposes some services that allow only the assistant to use the service, so application can use this permission to check the caller that calls app’s service is the Assistant Bug: 264324827 Test: atest PermissionPolicyTest#platformPermissionPolicyIsUnaltered Change-Id: Ib0ad7a865e2bd89a32b4b2df955baeea293ff7dc --- core/api/current.txt | 1 + core/res/AndroidManifest.xml | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/core/api/current.txt b/core/api/current.txt index 3cc5631d4be9a..0627709f704f7 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -89,6 +89,7 @@ package android { field public static final String DISABLE_KEYGUARD = "android.permission.DISABLE_KEYGUARD"; field public static final String DUMP = "android.permission.DUMP"; field public static final String ENFORCE_UPDATE_OWNERSHIP = "android.permission.ENFORCE_UPDATE_OWNERSHIP"; + field public static final String EXECUTE_APP_ACTION = "android.permission.EXECUTE_APP_ACTION"; field public static final String EXPAND_STATUS_BAR = "android.permission.EXPAND_STATUS_BAR"; field public static final String FACTORY_TEST = "android.permission.FACTORY_TEST"; field public static final String FOREGROUND_SERVICE = "android.permission.FOREGROUND_SERVICE"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 81b3af0e0e60e..7d5be4805ab04 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -6862,6 +6862,15 @@ + + +