From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: renlord Date: Fri, 15 Oct 2021 20:02:51 +0530 Subject: [PATCH] add option to always randomize MAC RANDOMIZATION_ALWAYS is set as the default option --- res/layout/wifi_network_config.xml | 2 +- res/values/arrays.xml | 7 +++++ res/xml/wifi_network_details_fragment2.xml | 2 +- .../WifiDetailPreferenceController2.java | 2 +- .../WifiPrivacyPreferenceController2.java | 28 +++++++++++++++---- 5 files changed, 32 insertions(+), 9 deletions(-) diff --git a/res/layout/wifi_network_config.xml b/res/layout/wifi_network_config.xml index f91f7385c1..c0907b19ee 100644 --- a/res/layout/wifi_network_config.xml +++ b/res/layout/wifi_network_config.xml @@ -675,7 +675,7 @@ android:layout_height="wrap_content" style="@style/wifi_item_spinner" android:prompt="@string/wifi_privacy_settings" - android:entries="@array/wifi_privacy_entries"/> + android:entries="@array/wifi_privacy_entries_extended"/> Treat as unmetered + + Use per-connection randomized MAC (default) + Use per-network randomized MAC + Use device MAC + + Use randomized MAC (default) Use device MAC @@ -1429,6 +1435,7 @@ + 100 1 0 diff --git a/res/xml/wifi_network_details_fragment2.xml b/res/xml/wifi_network_details_fragment2.xml index eb9add14f6..2079ef1675 100644 --- a/res/xml/wifi_network_details_fragment2.xml +++ b/res/xml/wifi_network_details_fragment2.xml @@ -69,7 +69,7 @@ android:key="privacy" android:icon="@drawable/ic_wifi_privacy_24dp" android:title="@string/wifi_privacy_settings" - android:entries="@array/wifi_privacy_entries" + android:entries="@array/wifi_privacy_entries_extended" android:entryValues="@array/wifi_privacy_values"/>