Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22d9e7e3 authored by George Chan's avatar George Chan
Browse files

Add GET_BACKGROUND_INSTALLED_PACKAGES permission and added to

com.android.shell for testing and BTS adb shell API.

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: I3c3f9d9dc1d746fedc27bbb6e500f19bae9e72e2
parent b55243ae
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -133,6 +133,7 @@ package android {
    field public static final String FORCE_STOP_PACKAGES = "android.permission.FORCE_STOP_PACKAGES";
    field public static final String FORCE_STOP_PACKAGES = "android.permission.FORCE_STOP_PACKAGES";
    field public static final String GET_APP_METADATA = "android.permission.GET_APP_METADATA";
    field public static final String GET_APP_METADATA = "android.permission.GET_APP_METADATA";
    field public static final String GET_APP_OPS_STATS = "android.permission.GET_APP_OPS_STATS";
    field public static final String GET_APP_OPS_STATS = "android.permission.GET_APP_OPS_STATS";
    field @FlaggedApi("android.app.bic_client") public static final String GET_BACKGROUND_INSTALLED_PACKAGES = "android.permission.GET_BACKGROUND_INSTALLED_PACKAGES";
    field @FlaggedApi("android.app.get_binding_uid_importance") public static final String GET_BINDING_UID_IMPORTANCE = "android.permission.GET_BINDING_UID_IMPORTANCE";
    field @FlaggedApi("android.app.get_binding_uid_importance") public static final String GET_BINDING_UID_IMPORTANCE = "android.permission.GET_BINDING_UID_IMPORTANCE";
    field public static final String GET_HISTORICAL_APP_OPS_STATS = "android.permission.GET_HISTORICAL_APP_OPS_STATS";
    field public static final String GET_HISTORICAL_APP_OPS_STATS = "android.permission.GET_HISTORICAL_APP_OPS_STATS";
    field public static final String GET_PROCESS_STATE_AND_OOM_SCORE = "android.permission.GET_PROCESS_STATE_AND_OOM_SCORE";
    field public static final String GET_PROCESS_STATE_AND_OOM_SCORE = "android.permission.GET_PROCESS_STATE_AND_OOM_SCORE";
+12 −0
Original line number Original line Diff line number Diff line
@@ -7869,6 +7869,18 @@
    <permission android:name="android.permission.RECEIVE_SENSITIVE_NOTIFICATIONS"
    <permission android:name="android.permission.RECEIVE_SENSITIVE_NOTIFICATIONS"
        android:protectionLevel="signature|role" />
        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 for Geofencing service. -->
    <attribution android:tag="GeofencingService" android:label="@string/geofencing_service"/>
    <attribution android:tag="GeofencingService" android:label="@string/geofencing_service"/>
    <!-- Attribution for Country Detector. -->
    <!-- Attribution for Country Detector. -->
+2 −0
Original line number Original line Diff line number Diff line
@@ -539,6 +539,8 @@ applications that come with the platform
        <permission name="android.permission.GET_BINDING_UID_IMPORTANCE"/>
        <permission name="android.permission.GET_BINDING_UID_IMPORTANCE"/>
        <!-- Permission required for CTS test NotificationManagerZenTest -->
        <!-- Permission required for CTS test NotificationManagerZenTest -->
        <permission name="android.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS" />
        <permission name="android.permission.CONTROL_DISPLAY_COLOR_TRANSFORMS" />
        <!-- Permission required for BinaryTransparencyService shell API and host test -->
        <permission name="android.permission.GET_BACKGROUND_INSTALLED_PACKAGES" />
    </privapp-permissions>
    </privapp-permissions>


    <privapp-permissions package="com.android.statementservice">
    <privapp-permissions package="com.android.statementservice">
+3 −0
Original line number Original line Diff line number Diff line
@@ -888,6 +888,9 @@
    <!-- Permission required for Cts test - CtsNotificationTestCases -->
    <!-- Permission required for Cts test - CtsNotificationTestCases -->
    <uses-permission android:name="android.permission.RECEIVE_SENSITIVE_NOTIFICATIONS" />
    <uses-permission android:name="android.permission.RECEIVE_SENSITIVE_NOTIFICATIONS" />


    <!-- Permission required for BinaryTransparencyService shell API and host test -->
    <uses-permission android:name="android.permission.GET_BACKGROUND_INSTALLED_PACKAGES" />

    <application
    <application
        android:label="@string/app_label"
        android:label="@string/app_label"
        android:theme="@android:style/Theme.DeviceDefault.DayNight"
        android:theme="@android:style/Theme.DeviceDefault.DayNight"