Merge "Check when trust agents do not declare a settings activity." into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
782e511f49
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user