diff options
| author | 2021-02-10 17:57:26 +0000 | |
|---|---|---|
| committer | 2021-02-10 17:57:26 +0000 | |
| commit | 61d138aca2079574a0c9aa7af7dba3ec1b7d3d07 (patch) | |
| tree | 716e0a84830084f86ea2d5ac9117da4dc58c87ef | |
| parent | 20d37aa1333b48fd6e6e5aee7a9be06f8530025f (diff) | |
| parent | 5d1a7b146461b80a67002a1c9c8e194f273bdc5d (diff) | |
Merge "Add new permission KEEP_UNINSTALLED_PACKAGES" into sc-dev
| -rw-r--r-- | core/api/test-current.txt | 1 | ||||
| -rw-r--r-- | core/res/AndroidManifest.xml | 5 | ||||
| -rw-r--r-- | packages/Shell/AndroidManifest.xml | 1 | 
3 files changed, 7 insertions, 0 deletions
| diff --git a/core/api/test-current.txt b/core/api/test-current.txt index 661379bad1fe..5d0cea56a2d4 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 856657ad8b56..dc1cc329d460 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -3994,6 +3994,11 @@      <permission android:name="android.permission.MOVE_PACKAGE"          android:protectionLevel="signature|privileged" /> +    <!-- @TestApi Allows an application to keep uninstalled packages as apks. +         @hide --> +    <permission android:name="android.permission.KEEP_UNINSTALLED_PACKAGES" +        android:protectionLevel="signature" /> +      <!-- Allows an application to change whether an application component (other than its own) is           enabled or not.           <p>Not for use by third-party applications. --> diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index eab0990bb868..1432544da9bd 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -87,6 +87,7 @@      <!--  TODO(b/152310230): remove once APIs are confirmed to be sufficient -->      <uses-permission android:name="com.android.permission.USE_INSTALLER_V2" />      <uses-permission android:name="android.permission.MOVE_PACKAGE" /> +    <uses-permission android:name="android.permission.KEEP_UNINSTALLED_PACKAGES" />      <uses-permission android:name="android.permission.CLEAR_APP_USER_DATA" />      <uses-permission android:name="android.permission.CLEAR_APP_CACHE" />      <uses-permission android:name="android.permission.ACCESS_INSTANT_APPS" /> |