diff options
| author | 2022-07-12 13:38:26 -0700 | |
|---|---|---|
| committer | 2022-07-13 16:49:04 -0700 | |
| commit | 06ab24c0908822a62d981b49bca98265f096b334 (patch) | |
| tree | d3e28ab8da4925ddcb951676eee4953caa3c6e20 /libs/androidfw/AssetsProvider.cpp | |
| parent | c01cce03133cbdd26452be0f5fa1d0b07c1d28f0 (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