android_packages_modules_Co.../common
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
..
src/com/android/net/module/util/bpf LocalNetAccessKey - improve toString 2025-03-19 20:34:48 -07:00
Android.bp Extend QosFilter address matching function 2025-05-08 22:37:32 -07:00
flags.aconfig Introduce carrier-aware avoid bad Wi-Fi APIs 2025-06-10 12:18:35 +00:00
nearby_flags.aconfig Make com.android.tethering the flag container instead of system 2024-04-25 09:46:33 +01:00
networksecurity_flags.aconfig Add daily CertificateTransparencyJob 2024-11-21 14:54:50 +00:00
OWNERS Specify is_fixed_read_only: true for net security mainline trunk stable flag 2024-08-23 08:32:24 +00:00
thread_flags.aconfig [Thread] add private API for disabling border router 2024-10-31 14:30:25 +08:00