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

Commit e5e6e52f authored by Patrick Baumann's avatar Patrick Baumann
Browse files

Permission protect receipt of QUERY_PACKAGE_RESTART

This change adds a signature permission to the system manifest intended
to guard receipt of the QUERY_PACKAGE_RESTART ordered broadcast so that
arbitrary apps cannot receive or inject bad data into the response.

Bug: 230755401
Test: manual - settings force stop works
Change-Id: Idffc0c1af702da9cb06747c800266efc48592b02
parent d59f2a46
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -6532,6 +6532,12 @@
    <permission android:name="android.permission.MAKE_UID_VISIBLE"
                android:protectionLevel="signature" />

    <!-- Limits the system as the only handler of the QUERY_PACKAGE_RESTART broadcast
         @hide -->
    <permission android:name="android.permission.HANDLE_QUERY_PACKAGE_RESTART"
                android:protectionLevel="signature" />
    <uses-permission android:name="android.permission.HANDLE_QUERY_PACKAGE_RESTART" />

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