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);
}
boolean directUnlock = resolveInfo.serviceInfo.directBootAware
&& agentInfo.settings.canUnlockProfile;
boolean directUnlock = false;
if (agentInfo.settings != null) {
directUnlock = resolveInfo.serviceInfo.directBootAware
&& agentInfo.settings.canUnlockProfile;
}
if (directUnlock) {
if (DEBUG) Slog.d(TAG, "refreshAgentList: trustagent " + name