Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 927ab42c authored by Winson Chiu's avatar Winson Chiu Committed by Automerger Merge Worker
Browse files

Merge "Hook onUserUnlocked to verify no response packages" into sc-dev am: 7d55b225

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13445302

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I19370b4cefb126de5703855520fddb21cd09b049
parents 351d6d58 7d55b225
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -177,6 +177,21 @@ public class DomainVerificationService extends SystemService
        verifyPackages(null, false);
    }

    @Override
    public void onUserUnlocked(@NonNull TargetUser user) {
        super.onUserUnlocked(user);

        // Package verification is sent at both boot and user unlock. The latter will allow v1
        // verification agents to respond to the request, since they will not be directBootAware.
        // However, ideally v2 implementations are boot aware and can handle the initial boot
        // broadcast, to start verifying packages as soon as possible. It's possible this causes
        // unnecessary duplication at device start up, but the implementation is responsible for
        // de-duplicating.
        // TODO: This can be improved by checking if the broadcast was received by the
        //  verification agent in the initial boot broadcast
        verifyPackages(null, false);
    }

    @Override
    public void setProxy(@NonNull DomainVerificationProxy proxy) {
        mProxy = proxy;