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

Commit 782e511f authored by Vishwath Mohan's avatar Vishwath Mohan Committed by Android (Google) Code Review
Browse files

Merge "Check when trust agents do not declare a settings activity." into qt-dev

parents 060c29e9 60ea5534
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