Reenabling permission check for TrustAgent.

Now that master is using Manchego, the permission check for TrustAgent can
be reenabled.

Change-Id: I3c05a97de965684bef460ab3e3289657f9542af3
This commit is contained in:
Jay Civelli
2014-06-19 08:32:18 -07:00
parent 45b161d24d
commit 800631affd

View File

@@ -186,16 +186,12 @@ public class TrustManagerService extends SystemService {
if (resolveInfo.serviceInfo == null) continue;
String packageName = resolveInfo.serviceInfo.packageName;
// STOPSHIP Reenable this check once the GMS Core prebuild library has the
// permission.
/*
if (pm.checkPermission(PERMISSION_PROVIDE_AGENT, packageName)
!= PackageManager.PERMISSION_GRANTED) {
Log.w(TAG, "Skipping agent because package " + packageName
+ " does not have permission " + PERMISSION_PROVIDE_AGENT + ".");
continue;
}
*/
ComponentName name = getComponentName(resolveInfo);
if (!enabledAgents.contains(name)) continue;