OSDN Git Service

Update logic for resolving verifiers.
authorJeff Sharkey <jsharkey@android.com>
Wed, 6 Jan 2016 19:26:11 +0000 (12:26 -0700)
committerJeff Sharkey <jsharkey@android.com>
Wed, 6 Jan 2016 20:49:55 +0000 (13:49 -0700)
commit2a90f673f5819e05ea72f6aba3e75956e0f807dc
tree7534e4a8fbebeea6547182d1c18b6777a96cb86a
parent4efb8b4030157dd7445bed37538044949b0641af
Update logic for resolving verifiers.

Verifiers or installers may not be encryption-aware, or the user may
have disabled them, so we probe pretty deeply during system boot to
resolve them.  Use the new MATCH_SYSTEM_ONLY flag to limit results to
packages on the system image.

When there are multiple matches, pick the one with highest priority
instead of crashing the system.

Switch to updated MATCH_ constants in more places.

Bug: 26250295
Change-Id: Ia7a3b1fb74da6c3b9d2c2edbf1deaa9fb52fc40a
core/java/android/content/pm/ResolveInfo.java
services/core/java/com/android/server/pm/PackageManagerService.java
services/core/java/com/android/server/pm/Settings.java