No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
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
bpf_progs Merge "netd.c: simplify impossible code path" 2023-05-22 17:44:16 +00:00
common Fix errorprone warnings that should be errors 2022-11-02 10:13:14 -07:00
Cronet Merge "cronet tests: Do not run integration tests on R" 2023-06-06 03:03:12 +00:00
framework Add helper method to generate a v6 NAT-T keepalive packet 2023-06-13 11:50:13 +00:00
framework-t Remove the ServiceTypeClient after socket destroyed 2023-05-11 15:17:21 +08:00
nearby Merge "Update the instructions for configuring Fast Pair provider simulator." 2023-04-25 09:05:35 +00:00
netd Merge "Added additional logging to bpf handler" 2023-06-05 21:39:41 +00:00
service Always disconnect agents immediately. 2023-06-14 18:03:02 +09:00
service-t Merge "Enable useSessionIdToScheduleMdnsTask" 2023-06-08 10:41:58 +00:00
tests Always disconnect agents immediately. 2023-06-14 18:03:02 +09:00
Tethering Merge "Import translations. DO NOT MERGE ANYWHERE" 2023-06-08 03:11:48 +00:00
tools gn2bp: delete obsolete version in p/m/C 2023-03-29 16:23:45 -07:00
.gitignore Add a .gitignore in packages/modules/Connectivity. 2020-11-27 18:09:21 +09:00
OWNERS Add additional IPsec owners 2021-12-08 06:57:51 +00:00
OWNERS_core_networking Cleanup OWNERS 2023-01-23 15:55:23 +00:00
OWNERS_core_networking_xts Allow jchalard@, maze@ and reminv@ to approve fixes for flaky tests. 2022-10-06 09:06:20 +00:00
PREUPLOAD.cfg Enable tethering to perform its own hidden API processing 2021-06-28 23:41:38 +01:00
TEST_MAPPING Add NetworkStackModuleTest annotation on the specific test case. 2023-06-01 18:16:24 +09:00