OSDN Git Service

Get compatibility immediately on initialization
authorPatrick Baumann <patb@google.com>
Tue, 8 Oct 2019 15:28:45 +0000 (08:28 -0700)
committerPatrick Baumann <patb@google.com>
Wed, 9 Oct 2019 19:42:10 +0000 (12:42 -0700)
commit5127b31dc13cdadfd404ddd26c01906c773efab9
tree09569503d331d1d9008b10a01c00467854aa9fb9
parent9d9e19c5d3a53e28bdb65fce2e756906ef3c841a
Get compatibility immediately on initialization

This change acquires the CompatConfig directly. This cuts down on
unnecessary logging and more importantly, gets access to platform config
values earlier during initialization than it would having to wait for
the PlatformCompat instance to be registered in SystemService.

Bug: 142281062
Test: Device boots
Test: atest AppEnumerationTests
Change-Id: I236dde7d897869633eadd2830a9930be0aec0129
services/core/java/com/android/server/pm/AppsFilter.java
services/core/java/com/android/server/pm/PackageManagerService.java