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

Commit bc9e0700 authored by Kathy Chen's avatar Kathy Chen
Browse files

Change ACCESS_AMBIENT_CONTEXT_EVENT permission protection level from...

Change ACCESS_AMBIENT_CONTEXT_EVENT permission protection level from "internal|role" to "signature|privileged|role". Add ACCESS_AMBIENT_CONTEXT_EVENT to the privapp-permissions allowlist for shell and systemui.

Bug: 194238130
Test: build in master and flash to device
Change-Id: I439e337515632b43f4c20d2fe4d1274b347a0bb1
parent 0fd74657
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6907,7 +6907,7 @@
         @hide
    -->
    <permission android:name="android.permission.ACCESS_AMBIENT_CONTEXT_EVENT"
                android:protectionLevel="internal|role"/>
                android:protectionLevel="signature|privileged|role"/>

    <!-- @SystemApi Required by a AmbientContextEventDetectionService
         to ensure that only the service with this permission can bind to it.
+1 −0
Original line number Diff line number Diff line
@@ -83,5 +83,6 @@
        <permission name="android.permission.READ_SAFETY_CENTER_STATUS" />
        <permission name="android.permission.SET_UNRESTRICTED_KEEP_CLEAR_AREAS" />
        <permission name="android.permission.READ_SEARCH_INDEXABLES" />
        <permission name="android.permission.ACCESS_AMBIENT_CONTEXT_EVENT"/>
    </privapp-permissions>
</permissions>
+2 −0
Original line number Diff line number Diff line
@@ -500,6 +500,8 @@ applications that come with the platform
        <permission name="android.permission.MODIFY_CELL_BROADCASTS" />
        <!-- Permission required for CTS test - CtsBroadcastRadioTestCases -->
        <permission name="android.permission.ACCESS_BROADCAST_RADIO"/>
        <!-- Permission required for CTS test - CtsAmbientContextServiceTestCases -->
        <permission name="android.permission.ACCESS_AMBIENT_CONTEXT_EVENT"/>
    </privapp-permissions>

    <privapp-permissions package="com.android.statementservice">