diff options
| author | 2022-02-23 14:40:48 -0800 | |
|---|---|---|
| committer | 2022-02-23 22:59:08 +0000 | |
| commit | 869dc9cb1ca63c1ebfed1cbc5db2e508edbe2992 (patch) | |
| tree | f107a0620148b0b065cff64c8d09f8b8a395467f /libs/androidfw/AttributeResolution.cpp | |
| parent | 12dd1d6747c8d5e3b99f5b1821012b92db4dab98 (diff) | |
Synchronize onMultiSimConfigChanged with callback registrations.
TelephonyRegistry is susceptible to race conditions around
MULTI_SIM_CONFIG_CHANGED broadcast. When broadcast received, we'll
executing onMultiSimConfigChanged which may cause mNumPhones changed.
However, callback registrations at the same times might try to access
an already non-exist phoneId. Synchronize the whole
onMultiSimConfigChanged with callback registrations to avoid potential
race conditions.
Bug: 221080521
Test: TelephonyRegistryTest
Change-Id: I36a3d2a3d153cd68dd3ec18774d457dc32b00c82
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions