From ad907740755ee40e2fbfb74235fec344a6d56e23 Mon Sep 17 00:00:00 2001 From: Jay Civelli Date: Thu, 19 Jun 2014 08:34:18 -0700 Subject: [PATCH] Reenabling permission check for TrustAgent. Now that master is using the latest Manchego, we can reenable the permission check for TrustAgent. Change-Id: Icec3be998eb1f6db67e99d29859a593d7ddcc60a --- src/com/android/settings/TrustAgentUtils.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/com/android/settings/TrustAgentUtils.java b/src/com/android/settings/TrustAgentUtils.java index b08feff855d..31a073c15ae 100644 --- a/src/com/android/settings/TrustAgentUtils.java +++ b/src/com/android/settings/TrustAgentUtils.java @@ -43,8 +43,6 @@ 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) { @@ -52,7 +50,6 @@ public class TrustAgentUtils { + " does not have permission " + PERMISSION_PROVIDE_AGENT + "."); return false; } - */ return true; }