wear proxy behind portal

Do not avoid captive portal on wear proxy network; keep network agent
after detecting portal.

Bug: 291112432
Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.ConnectivityServiceTest
Change-Id: I8f6669da62ebd76b6a46d2aec9b3ea563a08cb5e
This commit is contained in:
Andriy Naborskyy
2023-09-26 02:03:18 +00:00
parent d196fab898
commit d032dd42ea
4 changed files with 45 additions and 3 deletions

View File

@@ -176,7 +176,9 @@ public class ConnectivitySettingsManager {
/**
* When detecting a captive portal, immediately disconnect from the
* network and do not reconnect to that network in the future.
* network and do not reconnect to that network in the future; except
* on Wear platform companion proxy networks (transport BLUETOOTH)
* will stay behind captive portal.
*/
public static final int CAPTIVE_PORTAL_MODE_AVOID = 2;