diff options
author | Roshan Pius <rpius@google.com> | 2019-10-30 13:41:56 -0700 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2019-11-07 11:08:35 -0800 |
commit | edd9332616700a2de9e2403fe30b1f39358a3323 (patch) | |
tree | cc91fb139e30a4630350914b78ebcf2dc4c33ab1 /service | |
parent | 497d9fc7c3c8ff23993a9767d6027ebef513fb69 (diff) |
WifiStack: Expose all wifi resources to be overlayed
All of the wifi resources have been added to overlayable.xml. So, OEMs
can customize all the wifi config values.
Also, added a sample overlay app to demonstrate how OEMs can customize
these overlayable configs.
Bug: 143464763
Test: Verified that the sample overlay app can override configs.
Change-Id: I1a37d346ebf695055b088b7a11b8e5fa12c256b5
Diffstat (limited to 'service')
-rw-r--r-- | service/res/values/overlayable.xml | 162 |
1 files changed, 162 insertions, 0 deletions
diff --git a/service/res/values/overlayable.xml b/service/res/values/overlayable.xml new file mode 100644 index 000000000..093aa8f14 --- /dev/null +++ b/service/res/values/overlayable.xml @@ -0,0 +1,162 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2019 The Android Open Source Project + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<!-- These values can be used to control wifi stack behavior/features on individual devices. + These can be overridden by OEM's by using an RRO overlay app. + There is a sample RRO overlay app under frameworks/opt/net/wifi/RROOverlaySampleApp --> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <overlayable name="WifiCustomization"> + <!-- START VENDOR CUSTOMIZATION --> + <policy type="product|system|vendor"> + + <!-- Params from config.xml that can be overlayed --> + <item type="bool" name="config_wifi_dual_band_support" /> + <item type="integer" name="config_wifi_max_ap_interfaces" /> + <item type="bool" name="config_wifi_convert_apband_5ghz_to_any" /> + <item type="bool" name="config_wifi_fast_bss_transition_enabled" /> + <item type="string" name="config_wifi_p2p_device_type" /> + <item type="bool" name="config_wifi_background_scan_support" /> + <item type="bool" name="config_wifi_enable_disconnection_debounce" /> + <item type="bool" name="config_wifi_revert_country_code_on_cellular_loss" /> + <item type="integer" name="config_wifi_logger_ring_buffer_default_size_limit_kb" /> + <item type="integer" name="config_wifi_logger_ring_buffer_verbose_size_limit_kb" /> + <item type="array" name="config_wifi_fatal_firmware_alert_error_code_list" /> + <item type="bool" name="config_wifi_turn_off_during_emergency_call" /> + <item type="integer" name="config_wifi_framework_5GHz_preference_boost_threshold" /> + <item type="integer" name="config_wifi_framework_5GHz_preference_boost_factor" /> + <item type="integer" name="config_wifi_framework_5GHz_preference_penalty_threshold" /> + <item type="integer" name="config_wifi_framework_RSSI_SCORE_OFFSET" /> + <item type="integer" name="config_wifi_framework_RSSI_SCORE_SLOPE" /> + <item type="integer" name="config_wifi_framework_SAME_BSSID_AWARD" /> + <item type="integer" name="config_wifi_framework_LAST_SELECTION_AWARD" /> + <item type="integer" name="config_wifi_framework_PASSPOINT_SECURITY_AWARD" /> + <item type="integer" name="config_wifi_framework_SECURITY_AWARD" /> + <item type="integer" name="config_wifi_framework_exponential_backoff_scan_base_interval" /> + <item type="integer" name="config_wifi_framework_max_tx_rate_for_full_scan" /> + <item type="integer" name="config_wifi_framework_max_rx_rate_for_full_scan" /> + <item type="integer" name="config_wifi_framework_min_tx_rate_for_staying_on_network" /> + <item type="integer" name="config_wifi_framework_min_rx_rate_for_staying_on_network" /> + <item type="integer" name="config_wifi_framework_wifi_score_bad_rssi_threshold_5GHz" /> + <item type="integer" name="config_wifi_framework_wifi_score_entry_rssi_threshold_5GHz" /> + <item type="integer" name="config_wifi_framework_wifi_score_low_rssi_threshold_5GHz" /> + <item type="integer" name="config_wifi_framework_wifi_score_good_rssi_threshold_5GHz" /> + <item type="integer" name="config_wifi_framework_wifi_score_bad_rssi_threshold_24GHz" /> + <item type="integer" name="config_wifi_framework_wifi_score_entry_rssi_threshold_24GHz" /> + <item type="integer" name="config_wifi_framework_wifi_score_low_rssi_threshold_24GHz" /> + <item type="integer" name="config_wifi_framework_wifi_score_good_rssi_threshold_24GHz" /> + <item type="integer" name="config_wifi_framework_soft_ap_timeout_delay" /> + <item type="string" name="config_wifi_random_mac_oui" /> + <item type="string" name="config_wifi_framework_sap_2G_channel_list" /> + <item type="bool" name="config_wifi_framework_cellular_handover_enable_user_triggered_adjustment" /> + <item type="integer" name="config_wifi_framework_associated_full_scan_tx_packet_threshold" /> + <item type="integer" name="config_wifi_framework_associated_full_scan_rx_packet_threshold" /> + <item type="integer" name="config_wifi_framework_associated_partial_scan_tx_packet_threshold" /> + <item type="integer" name="config_wifi_framework_associated_partial_scan_rx_packet_threshold" /> + <item type="integer" name="config_wifi_framework_network_switch_tx_packet_threshold" /> + <item type="integer" name="config_wifi_framework_network_switch_rx_packet_threshold" /> + <item type="integer" name="config_wifi_supplicant_scan_interval" /> + <item type="integer" name="config_wifi_network_switching_blacklist_time" /> + <item type="integer" name="config_wifi_scan_interval_p2p_connected" /> + <item type="integer" name="config_wifi_disconnected_short_scan_interval" /> + <item type="integer" name="config_wifi_associated_short_scan_interval" /> + <item type="integer" name="config_wifi_framework_associated_full_scan_backoff" /> + <item type="integer" name="config_wifi_framework_associated_full_scan_max_interval" /> + <item type="integer" name="config_wifi_framework_associated_full_scan_max_total_dwell_time" /> + <item type="integer" name="config_wifi_framework_associated_partial_scan_max_num_active_channels" /> + <item type="integer" name="config_wifi_framework_current_network_boost" /> + <item type="integer" name="config_wifi_framework_recovery_timeout_delay" /> + <item type="integer" name="config_wifi_framework_scan_result_rssi_level_patchup_value" /> + <item type="bool" name="config_wifi_framework_enable_associated_network_selection" /> + <item type="bool" name="config_wifi_framework_use_single_radio_chain_scan_results_network_selection" /> + <item type="bool" name="config_wifi_only_link_same_credential_configurations" /> + <item type="bool" name="config_wifi_framework_enable_sar_tx_power_limit" /> + <item type="bool" name="config_wifi_framework_enable_soft_ap_sar_tx_power_limit" /> + <item type="bool" name="config_wifi_framework_enable_body_proximity_sar_tx_power_limit" /> + <item type="string" name="config_wifi_sar_sensor_type" /> + <item type="integer" name="config_wifi_framework_sar_free_space_event_id" /> + <item type="integer" name="config_wifi_framework_sar_near_hand_event_id" /> + <item type="integer" name="config_wifi_framework_sar_near_head_event_id" /> + <item type="integer" name="config_wifi_framework_sar_near_body_event_id" /> + <item type="bool" name="config_wifi_batched_scan_supported" /> + <item type="bool" name="config_wifi_softap_acs_supported" /> + <item type="string" name="config_wifi_softap_acs_supported_channel_list" /> + <item type="bool" name="config_wifi_softap_ieee80211ac_supported" /> + <item type="bool" name="config_wifi_local_only_hotspot_5ghz" /> + <item type="bool" name="config_wifi_connected_mac_randomization_supported" /> + <item type="bool" name="config_wifi_p2p_mac_randomization_supported" /> + <item type="bool" name="config_wifi_ap_mac_randomization_supported" /> + <item type="bool" name="config_wifi_aggressive_randomization_ssid_whitelist_enabled" /> + <item type="bool" name="config_wifi_link_probing_supported" /> + <item type="string" name="config_wifi_tcp_buffers" /> + <item type="string" name="wifi_tether_configure_ssid_default" /> + <item type="string" name="wifi_localhotspot_configure_ssid_default" /> + <!-- Params from config.xml that can be overlayed --> + + <!-- Params from strings.xml that can be overlayed --> + <!-- Not supported by compiler. + <item type="plurals" name="wifi_available" /> + <item type="plurals" name="wifi_available_detailed" /> + --> + <item type="string" name="wifi_available_title" /> + <item type="string" name="wifi_available_title_connecting" /> + <item type="string" name="wifi_available_title_connected" /> + <item type="string" name="wifi_available_title_failed_to_connect" /> + <item type="string" name="wifi_available_content_failed_to_connect" /> + <item type="string" name="wifi_available_action_connect" /> + <item type="string" name="wifi_available_action_all_networks" /> + <item type="string" name="wifi_suggestion_title" /> + <item type="string" name="wifi_suggestion_content" /> + <item type="string" name="wifi_suggestion_action_allow_app" /> + <item type="string" name="wifi_suggestion_action_disallow_app" /> + <item type="string" name="wifi_wakeup_onboarding_title" /> + <item type="string" name="wifi_wakeup_onboarding_subtext" /> + <item type="string" name="wifi_wakeup_onboarding_action_disable" /> + <item type="string" name="wifi_wakeup_enabled_title" /> + <item type="string" name="wifi_wakeup_enabled_content" /> + <item type="string" name="wifi_softap_config_change" /> + <item type="string" name="wifi_softap_config_change_summary" /> + <item type="string" name="wifi_softap_config_change_detailed" /> + <item type="string" name="wifi_watchdog_network_disabled" /> + <item type="string" name="wifi_watchdog_network_disabled_detailed" /> + <item type="string" name="wifi_connect_alert_title" /> + <item type="string" name="wifi_connect_alert_message" /> + <item type="string" name="wifi_connect_default_application" /> + <item type="string" name="wifi_p2p_dialog_title" /> + <item type="string" name="wifi_p2p_turnon_message" /> + <item type="string" name="wifi_p2p_failed_message" /> + <item type="string" name="wifi_p2p_enabled_notification_title" /> + <item type="string" name="wifi_p2p_enabled_notification_message" /> + <item type="string" name="accept" /> + <item type="string" name="decline" /> + <item type="string" name="ok" /> + <item type="string" name="wifi_p2p_invitation_sent_title" /> + <item type="string" name="wifi_p2p_invitation_to_connect_title" /> + <item type="string" name="wifi_p2p_from_message" /> + <item type="string" name="wifi_p2p_to_message" /> + <item type="string" name="wifi_p2p_enter_pin_message" /> + <item type="string" name="wifi_p2p_show_pin_message" /> + <item type="string" name="wifi_p2p_frequency_conflict_message" /> + <item type="string" name="dlg_ok" /> + <!-- Params from strings.xml that can be overlayed --> + + <!-- Params from styles.xml that can be overlayed --> + <item type="style" name="wifi_item" /> + <item type="style" name="wifi_item_label" /> + <item type="style" name="wifi_item_content" /> + <item type="style" name="wifi_section" /> + <!-- Params from styles.xml that can be overlayed --> + + </policy> + <!-- END VENDOR CUSTOMIZATION --> + </overlayable> +</resources> |