From 7b0a22dcad85c4582ff5c3bf4b990130771606c0 Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Thu, 19 Mar 2020 12:28:55 -0700 Subject: [PATCH] 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 --- data/etc/privapp-permissions-platform.xml | 1 + packages/Shell/AndroidManifest.xml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml index 8a25914a66409..a1c8e13668030 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -328,6 +328,7 @@ applications that come with the platform + diff --git a/packages/Shell/AndroidManifest.xml b/packages/Shell/AndroidManifest.xml index d1d080c7a466c..ff91c797e9b10 100644 --- a/packages/Shell/AndroidManifest.xml +++ b/packages/Shell/AndroidManifest.xml @@ -241,6 +241,9 @@ + + +