Give SetupWizard permission to set macRandomizationSetting

Bug: 121108389
Test: unit tests
Test: flash new build, try connecting to network with setup wizard
Change-Id: Ie4143c82f1104e2bccb153342c5e04c9f48b6a0e
(cherry picked from commit db73d6cc00fb498ae58662eed3b24ed28d02444a)
diff --git a/service/java/com/android/server/wifi/WifiConfigManager.java b/service/java/com/android/server/wifi/WifiConfigManager.java
index a145fde..df27d16 100644
--- a/service/java/com/android/server/wifi/WifiConfigManager.java
+++ b/service/java/com/android/server/wifi/WifiConfigManager.java
@@ -1100,9 +1100,11 @@
         }
 
         if (WifiConfigurationUtil.hasMacRandomizationSettingsChanged(existingInternalConfig,
-                newInternalConfig) && !mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)) {
+                newInternalConfig) && !mWifiPermissionsUtil.checkNetworkSettingsPermission(uid)
+                && !mWifiPermissionsUtil.checkNetworkSetupWizardPermission(uid)) {
             Log.e(TAG, "UID " + uid + " does not have permission to modify MAC randomization "
-                    + "Settings " + config.configKey() + ". Must have NETWORK_SETTINGS");
+                    + "Settings " + config.configKey() + ". Must have NETWORK_SETTINGS or"
+                    + "NETWORK_SETUP_WIZARD.");
             return new NetworkUpdateResult(WifiConfiguration.INVALID_NETWORK_ID);
         }