From 5d1a7b146461b80a67002a1c9c8e194f273bdc5d Mon Sep 17 00:00:00 2001 From: kholoud mohamed Date: Mon, 8 Feb 2021 17:40:18 +0000 Subject: [PATCH] Add new permission KEEP_UNINSTALLED_PACKAGES Created a new permission KEEP_UNINSTALLED_PACKAGES and granted it to shell, this new permission will be used to expose PM#setKeepUninstalledPackages as a testAPI, this is needed to enable the new testing infrastructure to reinstall removed packages between test runs as part of the state resetting. Bug: 179682115 Test: atest PermissionPolicyTest#platformPermissionPolicyIsUnaltered Change-Id: I2b262f3694478631d657cdbf088b6511072d4ff3 --- core/api/test-current.txt | 1 + core/res/AndroidManifest.xml | 5 +++++ packages/Shell/AndroidManifest.xml | 1 + 3 files changed, 7 insertions(+) diff --git a/core/api/test-current.txt b/core/api/test-current.txt index e39b2b8566619..72ab59dae4811 100644 --- a/core/api/test-current.txt +++ b/core/api/test-current.txt @@ -14,6 +14,7 @@ package android { field public static final String CONTROL_DEVICE_LIGHTS = "android.permission.CONTROL_DEVICE_LIGHTS"; field public static final String CONTROL_DEVICE_STATE = "android.permission.CONTROL_DEVICE_STATE"; field public static final String FORCE_STOP_PACKAGES = "android.permission.FORCE_STOP_PACKAGES"; + field public static final String KEEP_UNINSTALLED_PACKAGES = "android.permission.KEEP_UNINSTALLED_PACKAGES"; field @Deprecated public static final String MANAGE_ACTIVITY_STACKS = "android.permission.MANAGE_ACTIVITY_STACKS"; field public static final String MANAGE_ACTIVITY_TASKS = "android.permission.MANAGE_ACTIVITY_TASKS"; field public static final String MANAGE_CRATES = "android.permission.MANAGE_CRATES"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 827bf7b70cbc9..56babe5e8a528 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -3994,6 +3994,11 @@ + + + diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index eab0990bb8680..1432544da9bd5 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -87,6 +87,7 @@ +