From 999aa2af59f7b5bdf4517cbaef4dfb566e773fb9 Mon Sep 17 00:00:00 2001 From: Etan Cohen Date: Thu, 17 Jan 2019 13:19:46 -0800 Subject: [PATCH] [WIFI] Clarify getConfiguredNetworks behavior for Carrier Apps Carrier privileged apps will have a partial exemption post-Q to receive a set of configurations which they created (but no others). Clarify documentation. Bug: 112205095 Test: N/A Change-Id: I0d5e44155f0db40de0c2ca554d29cb6cd1e40f3d --- wifi/java/android/net/wifi/WifiManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index 559f4ad8264e6..f7725f0543175 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -1174,7 +1174,9 @@ public class WifiManager { * {@link #removeNetworkSuggestions(List)} for new API to add Wi-Fi networks for consideration * when auto-connecting to wifi. * Compatibility Note: For applications targeting - * {@link android.os.Build.VERSION_CODES#Q} or above, this API will always return an empty list. + * {@link android.os.Build.VERSION_CODES#Q} or above, this API will return an empty list, + * except to callers with Carrier privilege which will receive a restricted list only + * containing configurations which they created. */ @Deprecated @RequiresPermission(allOf = {ACCESS_COARSE_LOCATION, ACCESS_WIFI_STATE})