[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
This commit is contained in:
Etan Cohen
2019-01-17 13:19:46 -08:00
parent ca42e48c2f
commit 999aa2af59

View File

@@ -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.
* <b>Compatibility Note:</b> 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})