To protect user privacy, manual configuration of the list of Wi-Fi networks is now restricted to system apps and device policy controllers (DPCs). A given DPC can be either the device owner or the profile owner.
If your app doesn't fall into one of these categories and targets Android 10 (Q), the following methods no longer return useful data:
The getConfiguredNetworks() method always returns an empty list.
Android 10 (Q)
Android 10 (Q) privacy: Changes to connectivity
Android Reference
Fine location permission needed for Wi-Fi
Unless your app has the ACCESS_FINE_LOCATION permission, your app cannot use several methods within the Wi-Fi when running on Android 10 (Q).
Restriction on enabling and disabling Wi-Fi
Apps targeting Android 10 (Q) cannot enable or disable Wi-Fi. The WifiManager.setWifiEnabled() method always returns false.
If needed, use a settings panel to prompt users to enable and disable Wi-Fi.
Restrictions to background activity starts
Wi-Fi network configuration restrictions
To protect user privacy, manual configuration of the list of Wi-Fi networks is now restricted to system apps and device policy controllers (DPCs). A given DPC can be either the device owner or the profile owner.
If your app doesn't fall into one of these categories and targets Android 10 (Q), the following methods no longer return useful data: