diff options
author | 2024-10-31 15:05:35 +0000 | |
---|---|---|
committer | 2024-11-05 18:11:21 +0000 | |
commit | fd0184f144e6e660fbbde06c62d57db22af5b39b (patch) | |
tree | 3d358571f261e5149e1b121d77d90910e72ba30f /api/api.go | |
parent | 5eb9df5102c8d8ea01c0d3d80ae3201b3710a3f5 (diff) |
Fix multiuser race in FeatureFlagsClassicDebug constructor.
Under HSUM, the constructor may be called while the system is still
running as user 0. In this case, we register the iGET_FLAGS receiver
under user 0. However, the flippin app runs as user 10 so will then
see an empty response to it's GET_FLAGS ordered broadcast and crash.
This change installs a callback to capture the system switching
from user 0 to user 10 (or indeed, any subsequent user switch) and
ensure re-registers the receiver so it's running in the correct user.
Bug: 345443431
Flag: com.android.systemui.classic_flags_multi_user
Test: Manually verified; atest -c com.android.systemui.flags.FeatureFlagsClassicDebugTest
Change-Id: If8b5273963e67ab23fb10a9ad930fa9fa7b09590
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions