Attach domain verification states during package scan/install

Handles adding a new package (either from a brand new install or a boot
scan) and migrating between packages when installing an update.

Will merge the package states in the update case to preserve successful
verifications while removing failed domains so that they can be
re-requested by the verification agent.

Exempt-From-Owner-Approval: Already approved by owners on main branch

Bug: 163565712

Test: manual, device boots, will be tested as part of later changes

Change-Id: I54dc8415e10544e618905e269ab95ec0a2af0fb0
This commit is contained in:
Winson
2020-12-16 17:14:00 -08:00
parent 39ef1f3fb3
commit 96694aa7bd
6 changed files with 303 additions and 5 deletions

View File

@@ -1064,7 +1064,8 @@ public final class SystemServer implements Dumpable {
t.traceBegin("StartDomainVerificationService");
DomainVerificationService domainVerificationService = new DomainVerificationService(
mSystemContext, new Singleton<DomainVerificationService.Connection>() {
mSystemContext, SystemConfig.getInstance(), platformCompat,
new Singleton<DomainVerificationService.Connection>() {
@Override
protected DomainVerificationService.Connection create() {
// Deferred retrieval from PackageManagerService, since PMS is initialized after