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
Chalard Jean e9332c4bdf Add the notification for actively prefer bad wifi
With this patch and "config_activelyPreferBadWifi=1"
(or SDK level >= U) and bad wifi avoidance turned off,
when the device connects to a bad wifi, after 20
seconds of the wifi not validating the device will
pop up a head-up notification with text
"<SSID> has no internet access".

When tapped, the notification will bring up the existing
Settings dialog :
*Wifi not connected to the internet*
You can switch to mobile whenever Wi-Fi is bad
 □ Never show again
 <Stay on Wi-Fi> <Switch to Mobile>

If the wifi validates and loses access again, the same
notification/dialog are shown if Settings.Global.
NETWORK_AVOID_BAD_WIFI=PROMPT ; if IGNORE, the device
stays stuck on wifi.
If AVOID, then bad wifi avoidance is turned on in the
first place, so none of this happens.

Behavior in other cases :
- If config_activelyPreferBadWifi=0, then upon connecting
  to a wifi without internet, the behavior is unchanged :
  the device stays on mobile and after 8 seconds a
  notification pops up asking whether to stay connected.
  If the network validates, then loses access, the behavior
  depends on a few things :
  - If config_networkAvoidBadWifi is 0 and Settings.Global.
    NETWORK_AVOID_BAD_WIFI = IGNORE, then the device stays
    on wifi and says nothing.
  - If config_networkAvoidBadWifi is 0 and Settings.Global.
    NETWORK_AVOID_BAD_WIFI = PROMPT, then
    notification pops up asking whether to switch to mobile.
  - If config_networkAvoidBadWifi is 1 (regardless of the
    value of Settings.Global.NETWORK_AVOID_BAD_WIFI), or if
    Settings.Global.NETWORK_AVOID_BAD_WIFI = AVOID, then
    the device switches back to mobile.

- If Mobile is not connected, all the above applies. This
  is not great for the messages including "switch to mobile"
  but this patch doesn't change it.

Test: manual
Change-Id: Idb05b6a6e5c085f5ef72435d462e14bfd1341f87
2022-09-24 11:11:51 +09:00
bpf_progs dscpPolicy.c - old/new_first_u32 is actually be32 2022-08-22 09:12:26 +00:00
common CookieTagMapValue.java - uid U32 -> S32 2022-09-17 01:53:47 +00:00
framework Implement the "actively prefer bad wifi" feature 2022-09-22 16:59:30 +09:00
framework-t Make the hiddenapi*-tiramisu.txt files part of framework-connectivity-t 2022-09-13 15:13:15 +00:00
nearby Merge "[CTS] Fix CTS failure in mainline train" into android13-tests-dev am: 2d3df1b225 2022-09-21 21:34:10 +00:00
netd BpfHandler - eliminate mutex 2022-09-01 12:36:17 +00:00
service Add the notification for actively prefer bad wifi 2022-09-24 11:11:51 +09:00
service-t Merge changes I0b88bc8b,I60d884db,I436858e7,Iaaace0e6,Ie7ee84c3, ... 2022-09-21 19:08:02 +00:00
tests Clear notif upon bad wifi off + tests for bad wifi notif 2022-09-24 11:11:51 +09:00
Tethering Merge "Revert^2 "[ST02.2] Use the getters of DnsHeader"" 2022-09-22 02:39:42 +00:00
tools Remove Python enables identical to global defaults. 2022-09-20 00:49:23 +00: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 owners: add motomuman to core networking owners 2022-09-15 18:24:48 +00:00
OWNERS_core_networking_xts Move prohr@'s temp EthernetManagerTest.kt ownership so it will work. 2022-09-21 19:01:02 +00:00
PREUPLOAD.cfg Enable tethering to perform its own hidden API processing 2021-06-28 23:41:38 +01:00
TEST_MAPPING Run networkstack hostside GTS tests on module changes. 2022-08-10 11:10:25 +09:00