diff options
author | Weilun Du <wdu@google.com> | 2021-07-23 15:34:18 -0700 |
---|---|---|
committer | Weilun Du <wdu@google.com> | 2021-07-23 15:34:18 -0700 |
commit | a266323eea0c2c0ab8b96a06a763522d7721e807 (patch) | |
tree | 7faca0c209eee606a5d628f49608a71eb1acec0a | |
parent | ae2aaa5f77109d5470f2413d803b6a76f3c407a6 (diff) | |
download | car-a266323eea0c2c0ab8b96a06a763522d7721e807.tar.gz |
[AAOS emulator] Disable Ethernet by default
VirtioWifi exposes network interface as eth0 in Android
guest system and will therefore turn on Ethernet for AAOS
once the usb_host hardware feature is turned on. By design,
Wi-Fi will not be kept as the default network if Ethernet
is present. To workaround the issue, set ethernet_iface_regex
to a value that will never be matched and therefore Ethernet
won't be running.
Bug: 192710732
Signed-off-by: Weilun Du <wdu@google.com>
Change-Id: I34f5ba2160af996801b48e8bf3d658bf00c9c652
-rw-r--r-- | common/overlay/frameworks/base/core/res/res/values/config.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/overlay/frameworks/base/core/res/res/values/config.xml b/common/overlay/frameworks/base/core/res/res/values/config.xml index 6933a49..0bc32d4 100644 --- a/common/overlay/frameworks/base/core/res/res/values/config.xml +++ b/common/overlay/frameworks/base/core/res/res/values/config.xml @@ -25,4 +25,9 @@ <!-- AAOS doesn't support fingerprint and face --> <string-array name="config_biometric_sensors" translatable="false" > </string-array> + <!-- Regex of wired ethernet ifaces --> + <!-- To avoid having Ethernet running and taking over Wi-Fi as the default network, + force the builtin EthernetTracker to use a pattern that will never match anything. + --> + <string translatable="false" name="config_ethernet_iface_regex">do_not_match</string> </resources> |