summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author George Chan <georgechan@google.com> 2023-12-21 19:48:07 +0000
committer George Chan <georgechan@google.com> 2024-01-12 18:02:57 +0000
commit7e3828a120f4b741d71c3edf896eae28a7a3dd8d (patch)
tree32aebda64584b0f69f869d894368014f8831db97
parent1a42a9ee5e87c1d90b9feecf9d2a96203ba551a3 (diff)
Add CTS permissionpolicy for GET_BACKGROUND_INSTALLED_PACKAGES.
Edit: Removed adding role change, as feature flags is not in a consistent state. Will add role change later. New permission enables BICS to provide caller with all silently installed apps for all users on a device without needing caller to be granted overly permissive access. For more info: go/bic-v Bug: 296060433 Test: m Change-Id: I4c5c0d5a7b60edcc53d3098d3125a7654846d608
-rw-r--r--tests/cts/permissionpolicy/res/raw/android_manifest.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/cts/permissionpolicy/res/raw/android_manifest.xml b/tests/cts/permissionpolicy/res/raw/android_manifest.xml
index 13cccb975..c66a534ad 100644
--- a/tests/cts/permissionpolicy/res/raw/android_manifest.xml
+++ b/tests/cts/permissionpolicy/res/raw/android_manifest.xml
@@ -7692,6 +7692,18 @@
<permission android:name="android.permission.RECEIVE_SENSITIVE_NOTIFICATIONS"
android:protectionLevel="signature|role" />
+ <!-- @SystemApi
+ @FlaggedApi("android.app.bic_client")
+ Allows app to call BackgroundInstallControlManager API to retrieve silently installed apps
+ for all users on device.
+ <p>Apps with a BackgroundInstallControlManager client will not be able to call any API without
+ this permission.
+ <p>Protection level: signature|role
+ @hide
+ -->
+ <permission android:name="android.permission.GET_BACKGROUND_INSTALLED_PACKAGES"
+ android:protectionLevel="signature|role" />
+
<!-- Attribution for Geofencing service. -->
<attribution android:tag="GeofencingService" android:label="@string/geofencing_service"/>
<!-- Attribution for Country Detector. -->