diff options
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiLastResortWatchdog.java | 5 | ||||
-rw-r--r-- | service/res/values/config.xml | 3 | ||||
-rw-r--r-- | service/res/values/overlayable.xml | 1 |
3 files changed, 8 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiLastResortWatchdog.java b/service/java/com/android/server/wifi/WifiLastResortWatchdog.java index efc59e64b..5dc799d65 100644 --- a/service/java/com/android/server/wifi/WifiLastResortWatchdog.java +++ b/service/java/com/android/server/wifi/WifiLastResortWatchdog.java @@ -28,6 +28,7 @@ import android.util.Log; import android.util.Pair; import com.android.internal.annotations.VisibleForTesting; +import com.android.wifi.R; import java.io.FileDescriptor; import java.io.PrintWriter; @@ -119,7 +120,7 @@ public class WifiLastResortWatchdog { private final Handler mHandler; private final WifiThreadRunner mWifiThreadRunner; - private boolean mWatchdogFeatureEnabled = true; + private boolean mWatchdogFeatureEnabled; /** * Local log used for debugging any WifiLastResortWatchdog issues. @@ -142,6 +143,8 @@ public class WifiLastResortWatchdog { processMessage(msg); } }; + mWatchdogFeatureEnabled = mContext.getResources() + .getBoolean(R.bool.config_wifi_watchdog_enabled); } /** diff --git a/service/res/values/config.xml b/service/res/values/config.xml index 0b3623229..3cc44babe 100644 --- a/service/res/values/config.xml +++ b/service/res/values/config.xml @@ -225,4 +225,7 @@ <!-- Indicates that a full bugreport should be triggered when wifi diagnostics detects an error on non-user (i.e debug) builds --> <bool translatable="false" name="config_wifi_diagnostics_bugreport_enabled">false</bool> + + <!-- Indicates that wifi watchdog is enabled on this device --> + <bool translatable="false" name="config_wifi_watchdog_enabled">true</bool> </resources> diff --git a/service/res/values/overlayable.xml b/service/res/values/overlayable.xml index 909a669eb..c42212dff 100644 --- a/service/res/values/overlayable.xml +++ b/service/res/values/overlayable.xml @@ -98,6 +98,7 @@ <item type="string" name="wifi_tether_configure_ssid_default" /> <item type="string" name="wifi_localhotspot_configure_ssid_default" /> <item type="bool" name="config_wifi_diagnostics_bugreport_enabled" /> + <item type="bool" name="config_wifi_watchdog_enabled" /> <!-- Params from config.xml that can be overlayed --> <!-- Params from strings.xml that can be overlayed --> |