summaryrefslogtreecommitdiff
path: root/api/api.go
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-05-26 15:16:30 -0700
commit6f7d92c926c327b209afebbe75cd64eacd24ea83 (patch)
tree4f54166273f60a06b8437ee157bd204f9cb7817b /api/api.go
parent6b7ebbfd26617edc5cca30ae878299663b237cd2 (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 Merged-In: I31506a07406dee424546bfe4927e069280a7b011 Change-Id: I31506a07406dee424546bfe4927e069280a7b011 (cherry picked from commit 80b47e83f631b37cc72fbefc3686714672e1ef04)
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions