Android 12 WIFI连接默认使用设备Mac地址

--- a/packages/apps/Settings/src/com/android/settings/wifi/WifiConfigController2.java
+++ b/packages/apps/Settings/src/com/android/settings/wifi/WifiConfigController2.java
@@ -322,6 +322,7 @@ public class WifiConfigController2 implements TextWatcher,
         if (mWifiManager.isConnectedMacRandomizationSupported()) {
             View privacySettingsLayout = mView.findViewById(R.id.privacy_settings_fields);
             privacySettingsLayout.setVisibility(View.VISIBLE);
+                       mPrivacySettingsSpinner.setSelection(1);
         }
         mHiddenSettingsSpinner.setOnItemSelectedListener(this);
         mHiddenWarningView = mView.findViewById(R.id.hidden_settings_warning);

你可能感兴趣的:(SPRD,Android,12,/,13,源码修改,android)