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

Commit 5a365379 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "Check when trust agents do not declare a settings activity."...

Merge "Merge "Check when trust agents do not declare a settings activity." into qt-dev am: 782e511f am: 23ee4f93" into qt-r1-dev-plus-aosp
parents 9c052a03 eb237f73
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -518,8 +518,11 @@ public class TrustManagerService extends SystemService {
                    agentInfo = mActiveAgents.valueAt(index);
                }

                boolean directUnlock = resolveInfo.serviceInfo.directBootAware
                boolean directUnlock = false;
                if (agentInfo.settings != null) {
                    directUnlock = resolveInfo.serviceInfo.directBootAware
                        && agentInfo.settings.canUnlockProfile;
                }

                if (directUnlock) {
                    if (DEBUG) Slog.d(TAG, "refreshAgentList: trustagent " + name