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

This commit is contained in:
Vishwath Mohan
2019-05-28 21:00:20 +00:00
committed by Android (Google) Code Review

View File

@@ -518,8 +518,11 @@ public class TrustManagerService extends SystemService {
agentInfo = mActiveAgents.valueAt(index); agentInfo = mActiveAgents.valueAt(index);
} }
boolean directUnlock = resolveInfo.serviceInfo.directBootAware boolean directUnlock = false;
&& agentInfo.settings.canUnlockProfile; if (agentInfo.settings != null) {
directUnlock = resolveInfo.serviceInfo.directBootAware
&& agentInfo.settings.canUnlockProfile;
}
if (directUnlock) { if (directUnlock) {
if (DEBUG) Slog.d(TAG, "refreshAgentList: trustagent " + name if (DEBUG) Slog.d(TAG, "refreshAgentList: trustagent " + name