[Android Software Development] ciripicchio123:
I've chekeck better: dns are not ignored, main differences between captive porta with data connection OFF and ON is that with data connection set to OFF, the wifi automatically became the primary connection.

Somebody knows which check android is doing before marking a connection as "working" ?

05-11 16:04:27.825 1797 4632 D ConnectivityService: NetReassign [1149 : null → 476, 3694 : null → 476, 58 : null → 476, 8316 : null → 476, 85 : null → 476, 6723 : null → 476, 108 : null → 476, 128 : null → 476, 21 : null → 476, 7057 : null → 476, 89 : null → 476, 23 : null → 476, 463 : null → 476, 52 : null → 476, 8458 : null → 476, 31 : null → 476, 8260 : null → 476, 42 : null → 476, 8262 : null → 476, 847 : null → 476, 8427 : null → 476, 72 : null → 476, 231 : null → 476, 1485 : null → 476, 214 : null → 476, 50 : null → 476, 227 : null → 476, 148 : null → 476, 60 : null → 476, 8010 : null → 476, 8429 : null → 476, 996 : null → 476, 38 : null → 476, 2203 : null → 476, 137 : null → 476, 54 : null → 476, 6780 : null → 476, 68 : null → 476, 8251 : null → 476, 7509 : null → 476, 44 : null → 476, 458 : null → 476, 210 : null → 476, 8265 : null → 476, 123 : null → 476, 98 : null → 476, 84 : null → 476, 92 : null → 476, 618 : null → 476, 197 : null → 476, 56 : null → 476, 7633 : null → 476, 132 : null → 476, 8460 : null → 476, 82 : null → 476, 8007 : null → 476, 7628 : null → 476, 116 : null → 476, 1 : null → 476, 36 : null → 476, 27 : null → 476, 775 : null → 476, 111 : null → 476, 7068 : null → 476, 7271 : null → 476, 25 : null → 476, 8105 : null → 476, 317 : null → 476, 64 : null → 476, 7 : null → 476, 62 : null → 476, 851 : null → 476, 7033 : null → 476, 34 : null → 476, 171 : null → 476, 6754 : null → 476, 103 : null → 476, 212 : null → 476, 78 : null → 476, 145 : null → 476, 326 : null → 476, 6714 : null → 476, 19 : null → 476, 772 : null → 476, 8267 : null → 476, 150 : null → 476, 6719 : null → 476, 7412 : null → 476, 8005 : null → 476, 7060 : null → 476, 48 : null → 476, 7696 : null → 476, 17 : null → 476, 596 : null → 476, 15 : null → 476, 95 : null → 476, 29 : null → 476, 46 : null → 476, 385 : null → 476, 444 : null → 476, 80 : null → 476, 74 : null → 476, 40 : null → 476, 139 : null → 476, 2183 : null → 476, 70 : null → 476, 76 : null → 476, 66 : null → 476]
05-11 16:04:27.826 1797 4632 D ConnectivityService: Switching to new default network for: uid/pid:1000/1797 activeRequest: 1 callbackRequest: 1 [NetworkRequest [ REQUEST id=1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_VCN_MANAGED RequestorUid: 1000 RequestorPkg: android UnderlyingNetworks: Null] ]] callback flags: 1 order: 2147483647 using NetworkAgentInfo{network{476} handle{2047810129933} ni{WIFI CONNECTED extra: } Score(60 ; KeepConnected : 0 ; Policies : TRANSPORT_PRIMARY&IS_UNMETERED&EVER_USER_SELECTED) explicitlySelected lp{{InterfaceName: wlan0 LinkAddresses: [ fe80::489e:24ff:fe68:55be/64,192.168.4.2/24 ] DnsAddresses: [ /192.168.4.1 ] Domains: null MTU: 1500 ServerAddress: /192.168.4.1 TcpBufferSizes: 524288,1048576,8808040,262144,524288,6710886 Routes: [ fe80::/64 -> :: wlan0 mtu 0,192.168.4.0/24 -> 0.0.0.0 wlan0 mtu 0,0.0.0.0/0 -> 192.168.4.1 wlan0 mtu 0 ]}} nc{[ Transports: WIFI Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED&NOT_VCN_MANAGED LinkUpBandwidth>=12000Kbps LinkDnBandwidth>=30000Kbps Specifier: <WifiNetworkAgentSpecifier [WifiConfiguration=, SSID="xxx0F3DA8", BSSID=24:d7:eb:0f:3d:a9, band=1, mMatchLocalOnlySpecifiers=false]> TransportInfo: <SSID: "xxx0F3DA8", BSSID: 24:d7:eb:0f:3d:a9, MAC: 4a:9e:24:68:55:be, Security type: 0, Supplicant state: COMPLETED, Wi-Fi standard: 4, RSSI: -37, Link speed: 150Mbps, Tx Link speed: 150Mbps, Max Supported Tx Link speed: 150Mbps, Rx Link speed: 150Mbps, Max Supported Rx Link speed: 150Mbps, Frequency: 2412MHz, Net ID: 62, Metered hint: false, score: 60, CarrierMerged: false, SubscriptionId: -1, IsPrimary: 1> SignalStrength: -37 OwnerUid: 1000 AdminUids: [1000] SSID: "xxx0F3DA8" UnderlyingNetworks: Null]} factorySerialNumber=5}
05-11 16:04:27.829 963 25327 W resolv : validateDnsTlsServer returned 0 for 192.168.4.1
05-11 16:04:27.842 5397 5422 D UpstreamNetworkMonitor: New default Internet network: 476