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

Commit 4bd7efbe authored by Jeff Davidson's avatar Jeff Davidson
Browse files

Restrict SCORE_NETWORKS permission to signature|system.

As long as the APIs aren't ready to be un-hidden, there's no need to
allow non-system apps to access them. This can be reverted when the
APIs are finalized and we have mechanisms in place for selecting
between scorers installed on the device, rather than only a
preselected scorer bundled with the system.

Change-Id: I745b4c691eccfb526014d4cb71639db2119e4fdb
parent 08cfaf67
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -834,9 +834,10 @@
        android:label="@string/permlab_changeWimaxState" />

    <!-- Allows applications to act as network scorers. @hide @SystemApi-->
    <!-- TODO: Change protection level to normal when unhiding this API. -->
    <permission android:name="android.permission.SCORE_NETWORKS"
        android:permissionGroup="android.permission-group.NETWORK"
        android:protectionLevel="normal"
        android:protectionLevel="signature|system"
        android:description="@string/permdesc_scoreNetworks"
        android:label="@string/permlab_scoreNetworks" />