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

Commit 999aa2af authored by Etan Cohen's avatar Etan Cohen
Browse files

[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
parent ca42e48c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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})