Skip to content
Commit 9a2ded7e authored by Nikita Ioffe's avatar Nikita Ioffe Committed by Bill Lin
Browse files

ApexManager: Post populateAllPackagesCacheIfNeeded to a background thread

populateAllPackagesCacheIfNeeded is rather expensive method and
shouldn't be run in broadcast handler thread (it was my mistake to
suggest this in ag/9204784).

It's fine to use background thread to execute
populateAllPackagesCacheIfNeeded because components that need
to match APEX are not doing it on user critical path.

Bug: 138460874
Test: adb shell pm list packages --apex-only --show-versioncode
Change-Id: I738e932d94e86e897cee2b82f658d0e89328c6d3
Merged-In: Ib17fadb978f112c26c113e3bc42b9edaeeefca8a
parent 86e53119
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment