commit | 6f535a5c7b3456eae21a0f688e8041add0709c09 | [log] [tgz] |
---|---|---|
author | Chris Desir <cdesir@google.com> | Wed Mar 26 15:25:11 2025 -0700 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon Apr 07 19:57:46 2025 -0700 |
tree | 4dcc100fb902ac5643f8479af8cda18e6916d989 | |
parent | 25cc809406bac41620f8abb1803167a0fbe768d0 [diff] |
Fix transport override The EthernetConfigParser was adding the transportType on top of the TRANSPORT_ETHERNET of DEFAULT_CAPABILITIES, causing multiple transport types to be added. This was causing an IllegalStateException when trying to set the NetworkSpecifier within the EthernetNetworkFactory. This only applies for when isAtLeastB && capabilitiesString.equals("*") is true (as the parsed capability is equal to DEFAULT_CAPABILITIES). Flag: TEST_ONLY Bug: 405172885 Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.ethernet.EthernetTrackerTest (cherry picked from https://android-review.googlesource.com/q/commit:65a26519c00bfb9b45bec30153cb2306577d2fc1) Merged-In: I6678a52ddc87b8ad66c602c68335f3e2073d7231 Change-Id: I6678a52ddc87b8ad66c602c68335f3e2073d7231