Symptoms
On Android 10 and 11 devices where Location Services is disabled, Workspace ONE UEM is unable to remove or update WiFi configurations. As such, if:
A WiFi profile is uninstalled from the device, Workspace ONE UEM will be unable to remove the WiFi configuration from the device. A new version is added to an existing, installed WiFi profile, Workspace ONE UEM will be unable to update the WiFi configuration on the device with any settings changes in the new profile version.
When updating or removing a network fails, the following is seen in Android device logs (some values in the snippet below replaced dummy characters):E/WifiService: Permission violation - getConfiguredNetworks not allowed for uid=####, packageName=com.xxx.xxx, reason=java.lang.SecurityException: Location mode is disabled for the device
Cause
If an Android device management client attempts to view managed networks on the device, Android will block this operation if Location Services is disabled on the device.
Resolution
While this seems to be expected behavior in Android 10 and 11, we are actively working with Google to obtain confirmation.
Workaround
On Android 10 and 11 devices enrolled in Work Managed mode, enable Location Services by pushing a Restrictions profile with Allow Location Service Configuration set to any value other than None.Note: On Android 11, this feature is deprecated in Android. Setting Allow Location Service Config to any value will only enable Location Services - not set the location accuracy.