summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Rambo Wang <rambowang@google.com> 2022-04-29 03:55:50 +0000
committer Rambo Wang <rambowang@google.com> 2022-04-29 17:21:53 +0000
commit80b47e83f631b37cc72fbefc3686714672e1ef04 (patch)
tree10f66f767f052da078d74baf076991b30187f7b1 /libs/androidfw/StringPool.cpp
parentc49ba33ac0d3a0f867d0845b6c17d2e13906ca96 (diff)
Fix race condition when TelephonyRegistry handles multi-SIM config change
TelephonyRegistry only updates some internal statuses related to active modem count after receiving ACTION_MULTI_SIM_CONFIG_CHANGED. If another component receives the same intent firstly and calls TelephonyRegistryManager to either register or notify an event, the internal status related to active modem count may not be able to update yet, causing IAE saying e.g. phoneId is invalid. To fix the issue, onMultiSimConfigChanged will be called to update the internal statuses firstly before accessing them. Bug: 230799289 Fix: 230773760 Test: atest TelephonyRegistryTest Test: manual DS<->SS switching test Change-Id: I31506a07406dee424546bfe4927e069280a7b011
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions