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

Commit 3ad584f1 authored by lpeter's avatar lpeter
Browse files

Add a new feature flag and a new permission

Add a feature flag to limit sending of the PACKAGE_CHANGED
broadcast to only the system and the application itself
during component state changes.

Flag: android.content.pm.reduce_broadcasts_for_component_state_changes

Bug: 292261144
Test: Presubmit
Change-Id: I049293abd25f6622a94de00e093029882c85133f
parent 793fafec
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -334,3 +334,11 @@ flag {
    bug: "364771256"
    is_fixed_read_only: true
}

flag {
    name: "reduce_broadcasts_for_component_state_changes"
    namespace: "package_manager_service"
    description: "Feature flag to limit sending of the PACKAGE_CHANGED broadcast to only the system and the application itself during component state changes."
    bug: "292261144"
    is_fixed_read_only: true
}
+12 −0
Original line number Diff line number Diff line
@@ -8479,6 +8479,18 @@
        android:protectionLevel="internal"
        android:featureFlag="android.content.pm.verification_service" />

    <!--
        This permission allows the system to receive PACKAGE_CHANGED broadcasts when the component
        state of a non-exported component has been changed.
        <p>Not for use by third-party applications. </p>
        <p>Protection level: internal
        @hide
    -->
    <permission
        android:name="android.permission.RECEIVE_PACKAGE_CHANGED_BROADCAST_ON_COMPONENT_STATE_CHANGED"
        android:protectionLevel="internal"
        android:featureFlag="android.content.pm.reduce_broadcasts_for_component_state_changes"/>

    <!-- Attribution for Geofencing service. -->
    <attribution android:tag="GeofencingService" android:label="@string/geofencing_service"/>
    <!-- Attribution for Country Detector. -->