Add Wi-Fi hotspot > Security Settings page
- Restrict low security type when 6 GHz band is selected - Disable "WPA2/WPA3-Personal" security type - Disable "WPA2-Personal" security type - Disable "None" security type - Automatically updated security type to WPA3 when 6 GHz band is selected - Regenerate password when security type is changed from None Bug: 245258763 Test: manual test atest -c WifiTetherSettingsTest atest -c WifiTetherViewModelTest \ WifiHotspotSecuritySettingsTest \ WifiHotspotSecurityViewModelTest \ WifiHotspotRepositoryTest Change-Id: I31b08795419baed10dc40b876aeec175f6f41e69
This commit is contained in:
@@ -26,6 +26,7 @@ import androidx.lifecycle.ViewModelProvider;
|
||||
import androidx.lifecycle.ViewModelStoreOwner;
|
||||
|
||||
import com.android.settings.wifi.repository.WifiHotspotRepository;
|
||||
import com.android.settings.wifi.tether.WifiHotspotSecurityViewModel;
|
||||
import com.android.settings.wifi.tether.WifiHotspotSpeedViewModel;
|
||||
import com.android.settings.wifi.tether.WifiTetherViewModel;
|
||||
|
||||
@@ -84,6 +85,17 @@ public class WifiFeatureProvider {
|
||||
return new ViewModelProvider(owner).get(WifiTetherViewModel.class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get WifiHotspotSecurityViewModel
|
||||
*/
|
||||
public WifiHotspotSecurityViewModel getWifiHotspotSecurityViewModel(
|
||||
@NotNull ViewModelStoreOwner owner) {
|
||||
WifiHotspotSecurityViewModel viewModel =
|
||||
new ViewModelProvider(owner).get(WifiHotspotSecurityViewModel.class);
|
||||
verboseLog(TAG, "getWifiHotspotSecurityViewModel():" + viewModel);
|
||||
return viewModel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get WifiHotspotSpeedViewModel
|
||||
*/
|
||||
|
Reference in New Issue
Block a user