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

am: 23ee4f9370

Change-Id: I4aa2418d2d9cdd7b77bcf6b0957955c88a003c51
This commit is contained in:
Vishwath Mohan
2019-05-28 14:18:29 -07:00
committed by android-build-merger

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