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
Jimi Chen 92e23acebb Introduce carrier-aware avoid bad Wi-Fi APIs
This commit introduces new system APIs to manage "avoid bad Wi-Fi" settings,
leveraging both global system settings and carrier configurations. This
enhancement allows for more granular control and visibility into how Wi-Fi
networks are managed, especially in multi-SIM environments.

The new `setNetworkAvoidBadWifi(Context, int subId)` method provides
the ability to programmatically control this setting based on carrier-specific
policies or user preferences. This complements `getNetworkAvoidBadWifi(Context, int subId)`,
which allows querying the setting for a specific subscription ID, ensuring the
system can accurately determine the avoid bad Wi-Fi status.

Additionally, `shouldShowAvoidBadWifiToggle(Context, int subId)` is introduced.
This method determines whether the 'Avoid Bad Wi-Fi' user interface toggle
should be displayed. It considers both global settings and carrier configurations,
allowing for dynamic UI adjustments based on carrier requirements or user preferences.

These changes provide greater flexibility for managing Wi-Fi network selection
and improve the user experience by offering more context-aware control over
cellular behavior.

Deprecated APIs:
- `setNetworkAvoidBadWifi(Context, int value)`
- `getNetworkAvoidBadWifi(Context)`
New APIs:
- `setNetworkAvoidBadWifi(Context, int subId, int value)`
- `getNetworkAvoidBadWifi(Context, int subId)`
- `shouldShowAvoidBadWifiToggle(Context, int subId)`

Flag: com.android.net.flags.carrier_aware_avoid_bad_wifi
Bug: 410976315
Test: atest ConnectivityCoverageTests:android.net.connectivity.android.net.ConnectivitySettingsManagerTest
Change-Id: I79469cfe865a585593219d226c8198206c06b589
2025-06-10 12:18:35 +00:00
bpf bpf/progs/netd.c: increase per uid map sizes 2025-06-09 15:17:01 -07:00
clatd clatd: disable seccomp 2025-06-04 00:54:30 -07:00
common Introduce carrier-aware avoid bad Wi-Fi APIs 2025-06-10 12:18:35 +00:00
framework Introduce carrier-aware avoid bad Wi-Fi APIs 2025-06-10 12:18:35 +00:00
framework-t Expose NetworkTemplate get/set transport type APIs 2025-06-08 23:14:07 -07:00
nearby Replace .toList() with .collect() am: 725078a6bd am: 6586d080f6 2025-02-03 17:40:50 -08:00
networksecurity Remove v1 compatibility version 2025-05-14 13:18:27 +10:00
remoteauth [owners] Remove derekjedral@google.com from remoteauth/OWNERS 2025-05-25 09:49:50 -07:00
service Add NetworkTemplate get/set transport type methods 2025-06-09 14:09:46 +08:00
service-b Conditionally include VCN in Tethering module 2024-12-09 12:04:12 -08:00
service-t Make function void and remove outdated TODOs 2025-06-09 19:43:36 -07:00
staticlibs Introduce carrier-aware avoid bad Wi-Fi APIs 2025-06-10 12:18:35 +00:00
tests Introduce carrier-aware avoid bad Wi-Fi APIs 2025-06-10 12:18:35 +00:00
Tethering Merge "Increase WAIT_RA_TIMEOUT_MS" into main 2025-06-04 16:17:57 -07:00
thread Remove RecorderCallback. 2025-05-19 16:35:53 +09:00
tools Remove dependencies on the 1-variant fallback 2024-10-22 16:31:00 -07:00
.clang-format Add .clang-format 2025-03-23 19:59:10 -07:00
.gitignore Ignores vim temporary files from git 2023-12-23 17:45:32 +08:00
OWNERS Move the owner of xfrm netlink source code to its own directory. 2023-11-22 18:50:00 +09:00
OWNERS_core_networking Add jimictw@ to core networking OWNERS. 2025-01-24 01:06:33 -08:00
OWNERS_core_networking_xts Add yuyanghuang@ to OWNERS_core_networking_xts for APF firmware tests 2025-03-14 13:16:04 +09:00
PREUPLOAD.cfg Add alint hook to Connectivity repo 2025-05-30 11:36:49 +00:00
preupload_hook_script.py Refactor: apply pyformat for coding style consistency 2025-05-28 12:44:57 +00:00
rustfmt.toml Add rustfmt to p/m/C 2025-03-28 10:06:13 -07:00
TEST_MAPPING Add connectivity tests for presubmit on tv 2025-04-03 09:13:40 -07:00