Ensure trust agents are only provided by platform packages
Ensures that Settings only shows TrustAgentServices from platform packages. Bug: 15287044 Change-Id: I62c131d99c7266f8617ec32a50a4f5549a07b4b7
This commit is contained in:
@@ -317,6 +317,7 @@ public class SecuritySettings extends RestrictedSettingsFragment
|
||||
PackageManager.GET_META_DATA);
|
||||
for (ResolveInfo resolveInfo : resolveInfos) {
|
||||
if (resolveInfo.serviceInfo == null) continue;
|
||||
if (!TrustAgentUtils.checkProvidePermission(resolveInfo, pm)) continue;
|
||||
TrustAgentUtils.TrustAgentComponentInfo trustAgentComponentInfo =
|
||||
TrustAgentUtils.getSettingsComponent(pm, resolveInfo);
|
||||
if (trustAgentComponentInfo.componentName == null ||
|
||||
|
Reference in New Issue
Block a user