summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/TrustAgentUtils.java
diff options
context:
space:
mode:
authorJay Civelli <jcivelli@google.com>2014-06-10 16:09:00 -0700
committerJay Civelli <jcivelli@google.com>2014-06-11 09:17:46 -0700
commit382a9b9780e911e822e5cacc76bca226244c1398 (patch)
tree6c017c68a5f7bd1d1792908e8d2b974fbde99e4d /src/com/android/settings/TrustAgentUtils.java
parent51d898fd0223a4b7c728980ab987dd985c02df5f (diff)
downloadpackages_apps_Settings-382a9b9780e911e822e5cacc76bca226244c1398.zip
packages_apps_Settings-382a9b9780e911e822e5cacc76bca226244c1398.tar.gz
packages_apps_Settings-382a9b9780e911e822e5cacc76bca226244c1398.tar.bz2
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
Diffstat (limited to 'src/com/android/settings/TrustAgentUtils.java')
-rw-r--r--src/com/android/settings/TrustAgentUtils.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/settings/TrustAgentUtils.java b/src/com/android/settings/TrustAgentUtils.java
index 31a073c..b08feff 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;
}