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
Lorenzo Colitti 2139fcf345 Fix mobile data preferred on multi-user devices.
The mobile data preferred feature stores the list of UIDs in
Settings.Secure, which is per-user. But the code only sets, reads
and observes the setting for the current user instead of for all
users. This does not work on HSUM or automotive.

Fix this as follows:
- Register the ContentObserver on UserHandle.ALL
- Any time the observer fires, read the setting on all current
  users, and operate on the merged result.
- Ensure that the code gets called on ACTION_USER_ADDED and
  ACTION_USER_REMOVED.

Because the code now aggregates the setting for all UIDs, it
should just work on single-user devices. It should also work if
there are OEM devices that store all UIDs (for all users) in
Settings.Secure for user 0.

Because the bug is fixed, re-enable the test on automotive.

Also fix style nits.

Fix: 404186833
Flag: EXEMPT bug fix
Test: covered by existing CTS tests
Change-Id: I69ad789f1c7c7f3bab04ab8789dfb93ee0de553d
2025-08-08 15:36:55 +09:00
bpf bpf: remove spurious/unused {offload,test}@mainline.c 2025-08-04 18:00:47 -07:00
clatd clatd: disable seccomp 2025-06-04 00:54:30 -07:00
common Add beta flag for lnp developer opt in 2025-07-17 21:37:37 +00:00
framework Merge "Prepare to move VCN: Add visibilities for tests" into main 2025-07-15 13:09:27 -07:00
framework-t Merge changes I12e4d492,I4c787e9c,I52a36ebb into main 2025-07-23 14:16:42 -07:00
nearby Revert "Introduce BLE advertiser wrapper for unit tests." 2025-07-31 14:49:58 -07:00
networksecurity Propagate system broadcast after log list install 2025-07-24 11:14:28 +00:00
remoteauth [owners] Remove derekjedral@google.com from remoteauth/OWNERS 2025-05-25 09:49:50 -07:00
service Fix mobile data preferred on multi-user devices. 2025-08-08 15:36:55 +09:00
service-b Conditionally include VCN in Tethering module 2024-12-09 12:04:12 -08:00
service-t Merge "Add proto to store network configuration" into main 2025-07-25 16:48:31 -07:00
staticlibs Don't call ContentObserver#onChange(..., UserHandle) on S. 2025-08-05 18:02:02 +09:00
tests Fix mobile data preferred on multi-user devices. 2025-08-08 15:36:55 +09:00
Tethering Lower tethering IPv6 MTU to 1400 (to match newly clamped RA) 2025-08-01 16:34:16 -07:00
thread Split framework component 2025-07-30 14:01:24 +08:00
tools Add a tool to generate hidden module API lists 2025-04-24 09:05:08 +09: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 Wear TEST_MAPPING for Connectivity module 2025-07-15 23:05:13 -07:00