android_packages_modules_Co.../tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lorenzo Colitti 4bc9fa6b8c Always disconnect agents immediately.
Currently, various codepaths in ConnectivityService disconnect
networks using NetworkAgentInfo#disconnect. This posts a message
to the NetworkAgent to disconnect and also posts a message to
ConnectivityService to call disconnectAndDestroyNetwork, which
performs all cleanup in ConnectivityService. These two messages
race and the order is non-deterministic.

Instead, always disconnect using disconnectAndDestroyNetwork,
and have disconnectAndDestroyNetwork post the message to the
agent to disconnect.

This fixes a bug where if wifi uses unregisterAfterReplacement
twice in quick succession, when the third agent connects it
doesn't work because the interface is still being used by the
second network.

Also remove the import of IllegalArgumentException to keep the
linter happy (java.lang.* never needs to be imported).

Bug: 286649301
Test: covered by existing tests
Change-Id: Ie01f5589d6839ac6db25f0ba98fc929fbb5b0a96
2023-06-14 18:03:02 +09:00
..
common Add helper method to generate a v6 NAT-T keepalive packet 2023-06-13 11:50:13 +00:00
cts Always disconnect agents immediately. 2023-06-14 18:03:02 +09:00
deflake DO NOT MERGE: Disable FrameworksNetTests 2021-10-04 18:59:14 +08:00
integration Move ConnectivityResources to service-connectivity 2023-04-28 19:18:39 +09:00
mts bpf_existence_test - add U support 2022-12-18 12:58:36 +00:00
native wire bpf_base_test into netd_updatable_unit_test 2022-12-20 00:41:05 +00:00
smoketest Workaround prebuilt name conflict for service-connectivity 2022-05-26 09:37:05 +00:00
unit Always disconnect agents immediately. 2023-06-14 18:03:02 +09:00