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

Commit 7b0a22dc authored by Roshan Pius's avatar Roshan Pius
Browse files

Shell: Allow usage of wifi usability score APIs

This permission is needed for wifi CTS tests.

Is the minimally scoped permission that needs to be added?
- Yes, this only allows the app to influnce wifi vs lte network
selection algorithm.

What options did you explore that did not need this permission?
- Without this permission, it would be impossible to test these API's:
WifiManager.setWifiConnectedNetworkScorer()
WifiManager.clearWifiConnectedNetworkScorer()
WifiManager.clearWifiConnectedNetworkScorer()
WifiManager.addOnWifiUsabilityStatsListener()

Bug: 150236894
Test: Device boots up.
Change-Id: Ic173e44ab818cdfecebde80715ddaec347019db6
Merged-In: Ic173e44ab818cdfecebde80715ddaec347019db6
parent 0a7c66bc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -328,6 +328,7 @@ applications that come with the platform
        <permission name="android.permission.SUSPEND_APPS" />
        <permission name="android.permission.UPDATE_APP_OPS_STATS"/>
        <permission name="android.permission.USE_RESERVED_DISK"/>
        <permission name="android.permission.WIFI_UPDATE_USABILITY_STATS_SCORE"/>
        <permission name="android.permission.WRITE_MEDIA_STORAGE"/>
        <permission name="android.permission.WRITE_SECURE_SETTINGS"/>
        <permission name="android.permission.STATUS_BAR_SERVICE"/>
+3 −0
Original line number Diff line number Diff line
@@ -241,6 +241,9 @@
    <!-- Permission needed to read wifi network credentials for CtsNetTestCases -->
    <uses-permission android:name="android.permission.READ_WIFI_CREDENTIAL" />

    <!-- Permission needed to use wifi usability API's for CtsNetTestCases -->
    <uses-permission android:name="android.permission.WIFI_UPDATE_USABILITY_STATS_SCORE" />

    <!-- Permission required for testing system audio effect APIs. -->
    <uses-permission android:name="android.permission.MODIFY_DEFAULT_AUDIO_EFFECTS"/>