From 9b6b3d94456b82146d1641b3fcc8639a0172e288 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 Merged-In: I2b262f3694478631d657cdbf088b6511072d4ff3 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 668b5883cbfbb..786eab212aed0 100644 --- a/core/api/test-current.txt +++ b/core/api/test-current.txt @@ -12,6 +12,7 @@ package android { field public static final String CONFIGURE_DISPLAY_BRIGHTNESS = "android.permission.CONFIGURE_DISPLAY_BRIGHTNESS"; field public static final String CONTROL_DEVICE_LIGHTS = "android.permission.CONTROL_DEVICE_LIGHTS"; 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 public static final String MANAGE_ACTIVITY_STACKS = "android.permission.MANAGE_ACTIVITY_STACKS"; field public static final String MANAGE_CRATES = "android.permission.MANAGE_CRATES"; field public static final String MANAGE_ROLLBACKS = "android.permission.MANAGE_ROLLBACKS"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index af6b97318103e..43c87892c97b8 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -3797,6 +3797,11 @@ + + + diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index 39be9cbff40d7..e6f726a76302d 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -87,6 +87,7 @@ +