diff options
| author | 2021-02-10 22:23:37 +0000 | |
|---|---|---|
| committer | 2021-02-10 22:23:37 +0000 | |
| commit | 3b96b5cb0df501e71601212446a6ce758dc90961 (patch) | |
| tree | f06d879ece8f30a74863f0bec6ee3cc5ba1e1476 | |
| parent | a3f211f409cf95cb48f42a8c8d7da26b252017ef (diff) | |
| parent | b185d3d0240c0be58e1c6c2678ee12a379c38157 (diff) | |
Merge "Add new permission KEEP_UNINSTALLED_PACKAGES" am: 141033c6cc am: b185d3d024
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1580528
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Id55a2dc25a0537635606a286d9d197e7bc7e5960
| -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 668b5883cbfb..786eab212aed 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 3565908535be..146c37f75845 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -3804,6 +3804,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 90f6a4a2983d..c3fc019c6787 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" /> |