Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 800631af authored by Jay Civelli's avatar Jay Civelli
Browse files

Reenabling permission check for TrustAgent.

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

Change-Id: I3c05a97de965684bef460ab3e3289657f9542af3
parent 45b161d2
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;