From 382a9b9780e911e822e5cacc76bca226244c1398 Mon Sep 17 00:00:00 2001 From: Jay Civelli Date: Tue, 10 Jun 2014 16:09:00 -0700 Subject: [PATCH] Temporary removing the Trust Agent permission change. Removing the permission check for Trust Agents, until the GMS core prebuilt has that permission. BUG: 15546358 Change-Id: Ie0a68fcc313b835a8f5e87570fd248612c837bd3 --- src/com/android/settings/TrustAgentUtils.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/android/settings/TrustAgentUtils.java b/src/com/android/settings/TrustAgentUtils.java index 31a073c15ae..b08feff855d 100644 --- a/src/com/android/settings/TrustAgentUtils.java +++ b/src/com/android/settings/TrustAgentUtils.java @@ -43,6 +43,8 @@ public class TrustAgentUtils { * @return true, if the service in resolveInfo has the permission to provide a trust agent. */ public static boolean checkProvidePermission(ResolveInfo resolveInfo, PackageManager pm) { + // STOPSHIP Reenable this check once the GMS Core prebuild library has the permission. + /* String packageName = resolveInfo.serviceInfo.packageName; if (pm.checkPermission(PERMISSION_PROVIDE_AGENT, packageName) != PackageManager.PERMISSION_GRANTED) { @@ -50,6 +52,7 @@ public class TrustAgentUtils { + " does not have permission " + PERMISSION_PROVIDE_AGENT + "."); return false; } + */ return true; }