Skip to content
Commit 112a64a6 authored by Patrick Baumann's avatar Patrick Baumann
Browse files

Run appsFilter.systemReady() last

This change moves the appsFilter systemReady call to the end of the PMS
systemReady method to avoid it acquiring the package lock on a
background thread as the lock is required by several other blocks in the
method.

Before: MakePackageMangerServiceReady timing was 300-500ms, most of that
time spent setting up preferred activities as it waited for mLock to
become available
After: MakePackageManagerSerivceReady timing is ~130ms.

Test: atest AppEnumerationTests
Fixes: 162347084
Fixes: 163613646
Change-Id: Iac2948fb2ad66e45161627f637f039a5f4faf88c
parent 5be7e288
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