configureWifi property

String? configureWifi
getter/setter pair

Controls Wi-Fi configuring privileges.

Based on the option set, user will have either full or limited or no control in configuring Wi-Fi networks. Possible string values are:

  • "CONFIGURE_WIFI_UNSPECIFIED" : Unspecified. Defaults to ALLOW_CONFIGURING_WIFI unless wifiConfigDisabled is set to true. If wifiConfigDisabled is set to true, this is equivalent to DISALLOW_CONFIGURING_WIFI.
  • "ALLOW_CONFIGURING_WIFI" : The user is allowed to configure Wi-Fi. wifiConfigDisabled is ignored.
  • "DISALLOW_ADD_WIFI_CONFIG" : Adding new Wi-Fi configurations is disallowed. The user is only able to switch between already configured networks. Supported on Android 13 and above, on fully managed devices and work profiles on company-owned devices. If the setting is not supported, ALLOW_CONFIGURING_WIFI is set. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 13. wifiConfigDisabled is ignored.
  • "DISALLOW_CONFIGURING_WIFI" : Disallows configuring Wi-Fi networks. The setting wifiConfigDisabled is ignored when this value is set. Supported on fully managed devices and work profile on company-owned devices, on all supported API levels. For fully managed devices, setting this removes all configured networks and retains only the networks configured using openNetworkConfiguration policy. For work profiles on company-owned devices, existing configured networks are not affected and the user is not allowed to add, remove, or modify Wi-Fi networks. Note: If a network connection can't be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled).

Implementation

core.String? configureWifi;