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: Id42d3820d8d772b7788ea1f7431944bf13d4cc92
This commit is contained in:
Jay Civelli
2014-06-10 16:10:48 -07:00
parent f914a89073
commit abc40bbeeb

View File

@@ -186,12 +186,16 @@ 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;