OSDN Git Service

Don't auto-connect to networks that have no/limited connectivity.
authorLorenzo Colitti <lorenzo@google.com>
Thu, 30 May 2019 07:24:31 +0000 (16:24 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Thu, 30 May 2019 07:33:42 +0000 (16:33 +0900)
commitc0e461f2d9a0e9d0133a49f0877a400603bbfc28
tree81c05fd4cc1bb44a72b73304577afca0936687b6
parentdaf8086aa0f5e53597656ab9071c7499c82ee9a4
Don't auto-connect to networks that have no/limited connectivity.

Auto-reconnecting to a network with no or limited Internet
connectivity is not useful. This is because such networks cannot
be used unless the user taps the notification and interacts with
the resulting dialog. But the notification is only shown if the
user manually connects to the network, not if the system
auto-connects to it.

Bug: 130683832
Bug: 130766237
Test: atest FrameworksNetTests
Change-Id: I5413393529c4bad3a707df229307542486bcff33
services/core/java/com/android/server/ConnectivityService.java