summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Pinyao Ting <pinyaoting@google.com> 2022-07-12 13:38:26 -0700
committer Pinyao Ting <pinyaoting@google.com> 2022-07-13 16:49:04 -0700
commit06ab24c0908822a62d981b49bca98265f096b334 (patch)
treed3e28ab8da4925ddcb951676eee4953caa3c6e20 /libs/androidfw/AssetsProvider.cpp
parentc01cce03133cbdd26452be0f5fa1d0b07c1d28f0 (diff)
Refrain from blocking main thread while handling package broadcast
AppWidgetService loads widget provider info at boot time in a background thread while holding the synchronization lock, which is required to ensure data integrity. However, an unfortunate-timed package braodcast could be sent before said info are loaded, eventually causing ANR. This CL added the logic to handle package broadcast at a different thread to prevent the ANR. Bug: 235681846 Test: manual Change-Id: Iade39ed8db8d4c578f3d239a0b679f65dc295080
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions